Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

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
 

handoctor

Newbie level 5
Joined
May 18, 2006
Messages
8
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,283
Activity points
1,315
matlab polar mesh

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

    cyprus

    points: 2
    Helpful Answer Positive Rating

echo47

Advanced Member level 5
Joined
Apr 7, 2002
Messages
3,942
Helped
637
Reputation
1,272
Reaction score
88
Trophy points
1,328
Location
USA
Activity points
33,183
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top