matlab graphs (polar,mesh,surf)

Status
Not open for further replies.

cyprus

Banned
Joined
Sep 25, 2007
Messages
41
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
0
surf matlab polar

i have data and i need to draw them in matlab
x=is angles(0 30 60 90 120 ......360)
y=is results (1 6 8 4 .....)
how can i draw them in regtangular
polar
mesh
surf ... i dont know about matlab that much could any one help me in it knowing that these are for antenna half wave dipole antenna
thanks friends and plz if u have any word about the subject plz tell me i need every information
thanks alot to every one
 

matlab polar mesh

figure(1);plot(x,y);grid on;
figure(2);polar(x,y);grid on;
 

    cyprus

    Points: 2
    Helpful Answer Positive Rating
surf matlab

Search MATLAB help for "plot", "polar", "mesh", and "surf", and you will find good examples.

Here's a simple example of subplots, and a few other adjustments:
x = 0:30:360;
y = [1 6 8 4 2 1 0 1 2 3 7 5 1];
subplot(1,2,1); plot(x,y); grid on; set(gca,'XTick',0:30:360'); xlim([0 360]);
subplot(1,2,2); polar(x*pi/180,y); view(-90,90); grid on;


mesh and surf require three dimensions, but your data has only X and Y, so I don't know how to help you there.
 

    cyprus

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…