how to plot 3 different vectors without any relation, in a 3d plot
Mostra commenti meno recenti
Hi everyone,
I want to plot 3 vectors in a same 3D plot; (plot3 and meshgrid-surf are not working for my case).
let's say three vectors are as follows:
X=[1 2 3]
Y=[4 5 6]
Z=[11 22 33]
now Z(1) corresponds to X(1) and Y(1); and so on.
plot3 does not give my desired plot; and meshgrid is not applicable since there is no simple function between Z and X,Y.
for j=0:60
for i=0:60/j
R=[i, j, optmizie(fcn)]; %this one fetchs a lot of other functions so that's why I cannot use meshgrid
end
end
I want to have i and j as X and Y axises and R az the Z axis without specifying the relation among them.
Thanks in advance
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Surface and Mesh 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!
