How to make a 4D graph
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I am extremely new to Matlab (downloaded approximately 10 minutes ago new). I have been looking online for some templates, but nothing seems to be quite what I am looking for. I have four data points: length (x), width (z), height (y), and CO2 concentration (c). I want the fourth data point, the CO2 concentration, however, represented by a color depending on the concentration. Say, a darker color hue for lower concentrations and a lighter color hue for higher concentrations. Is there a way I can do this where I can just insert an excel file? I just have no idea where to start or where to look. Any help is much appreciated!
0 commentaires
Réponses (2)
Lokesh Ravindranathan
le 25 Juin 2013
Technically, you cannot visualize 4d plot in MATLAB. That being said, you can 3d slices in matlab using the slice command http://www.mathworks.com/help/matlab/ref/slice.html. However, you might want to choose a syntax which allows colors in the code.
To load an excel file into MATLAB, use xlsread http://www.mathworks.com/help/matlab/ref/xlsread.html.
You will have to write your code for loading and plotting. Maybe, there are user submitted code http://www.mathworks.com/matlabcentral/fileexchange/ for this routine.
0 commentaires
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!