Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

Help me make a 3D plot in Matlab

Status
Not open for further replies.

rosaeidi

Full Member level 2
Joined
Dec 19, 2006
Messages
143
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,298
Activity points
2,129
Hi, I have 3 vectors of the same dimensions and want to plot a graph in 3D as surface or volume. I tried but I couldn't. Any body knows?
Vectors arr:
A=[2 5 15 25 30]
B=[0.1 0.2 0.5 0.9 1.0]
C=[1870 1890 1920 2000 2050]

thanks,
Rosa
 

Re: 3D plot in matlab

Hi ! I can't rememer it exactly right now, but there is a way for sure.
at the command line write :

A=[2 5 15 25 30];
B=[0.1 0.2 0.5 0.9 1.0] ;
C=[1870 1890 1920 2000 2050] ;

mesh(A,B,C);

There are a lot of functions to plot a 3D, for example surf, meshgrid.. but each has its use.Try the one mentioned above.
I'm sorry I can't check it right now, cause I have uninstalled matlab for 8 months...
But matlab help is very helpful tool, and I've done this before. Try "3D graphs ", "3D plots" at the search engine of help, and you'll find something. And some good examples too.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top