Problem with 3D plotting
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi!
Lets say I have these matrices: B=1x3 C=1x3 D=3x3 I want to have a 3D plot of D vs B-C plane. How can I do this? I read the help for the surface command but seems like I cant use it like this.
0 Kommentare
Akzeptierte Antwort
Youssef Khmou
am 24 Feb. 2013
Bearbeitet: Youssef Khmou
am 24 Feb. 2013
hi, 1. You can use plot3 :
>>B=rand(3,1);
>>C=rand(3,1);
>>D=rand(3,3);
>>plot3(B,C,D)
As size(D)=[3 3] then it is like you do
>>figure, plot3(B,C,D(:,1))
>>hold on, plot3(B,C,D(:,2))
>>plot3(B,C,D(:,3))
>>hold off
2.Or simply surf/mesh if D=F(B,C) :
>>mesh(D)
>>surf(D)
3.try other features :
doc surfl
doc contour
2 Kommentare
Youssef Khmou
am 24 Feb. 2013
Bearbeitet: Youssef Khmou
am 24 Feb. 2013
Its fine, try directly
>>surf(D), shading interp
>>mesh(D)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Graphics Objects finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!