Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: meshgrid 4 dimensions short question
Replies: 1   Last Post: Aug 1, 2014 5:00 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
leo nidas

Posts: 231
Registered: 11/24/07
meshgrid 4 dimensions short question
Posted: Aug 1, 2014 3:24 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply



Hi there,

Is there any way to get the meshgrid to work for 4 dimensions?
I.e. while this works:

gridx=linspace(minx,maxx,num_pts);
gridy=linspace(miny,maxy,num_pts);
gridz=linspace(minz,maxz,num_pts);
[X Y Z]=meshgrid(gridx,gridy,gridz);

the following does not:

gridx=linspace(minx,maxx,num_pts);
gridy=linspace(miny,maxy,num_pts);
gridz=linspace(minz,maxz,num_pts);
gridq=linspace(minq,maxq,num_pts);
[X Y Z H]=meshgrid(gridx,gridy,gridz,gridq);

Thanx in advance for any answers!



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.