surf matlab polar
时间:03-31
整理:3721RD
点击:
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
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
figure(1);plot(x,y);grid on;
figure(2);polar(x,y);grid on;
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.