2D contour plot for 3 known variables
Mostra commenti meno recenti
I currently have 4 datasets with 3 variables
SPD = [37.3;37.1;4.9;165]
K = [810;2250;1311;8000]
Level = [4;4;5;1]
I want to plot SPD and K and have a contour of Level, I will obviously have more data points eventually . Level is strictly from 1-5 so I'd ideally like a noticeable change in colour between each value.
Is this possible at all?
Risposte (1)
KSSV
il 1 Set 2017
SPD = [37.3;37.1;4.9;165] ;
K = [810;2250;1311;8000] ;
Level = [4;4;5;1] ;
[X,Y] = meshgrid(SPD,K) ;
val = repmat(Level,1,size(X,1)) ;
contour(X,Y,val)
6 Commenti
Joel Babbage
il 1 Set 2017
Modificato: Joel Babbage
il 1 Set 2017
Joel Babbage
il 1 Set 2017
KSSV
il 1 Set 2017
Show us any pictorial example..
Joel Babbage
il 1 Set 2017
KSSV
il 1 Set 2017
Ohh..for this you need to have x, y and level data......do you have it?
Joel Babbage
il 1 Set 2017
Categorie
Scopri di più su Contour Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

