Surface plot dimension errors
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm having trouble plotting surfaces that are not perfect squares. I have an 8000x1 array that I need to plot. I keep getting the error "data dimensions must agree", but I'm not sure what I need to do to fix that. If you have any insight, please let me know. Below are two codes; the first code runs correctly and the second code does not. The first array could be shortened to have square dimension (20x20) without losing any data, but the second array cannot. The second code is the one I keep getting an error on.
Thanks
First Code
load ('SimulationSummary20120111_k12_catGR_kcatGPX_1_28_12.mat')
load ('table_GR_GPX_vGRss_3_14_12');
figure (1) surf(linspace(1,600,20),linspace(1,300,20),reshape(table_GR_GPX_vGRss(:,3),20,20));
saveas(figure (1),'kcatGR and kcatGPX varying vGRss','fig'); saveas(figure (1),'kcatGR and kcatGPX varying vGRss','jpeg');
Second Code
load ('SimulationSummary20120111_k12_catGR_kcatGPX_1_28_12.mat')
load ('table_12_GR_ratio_3_14_12');
figure (1) surf(linspace(.1,1,100),linspace(1,600,80),reshape(table_12_GR_ratio(:,3),100,80));
saveas(figure (1),'k12 and kcatGR varying ratio','fig'); saveas(figure (1),'k12 and kcatGR varying ratio','jpeg');
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!