plot3 of multidimensional array
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
I want to plot3 a body line.
'body' is a 2*3*280 array of XYZ coordinates that correspond to:
body(1,1:3,:) is headX headY headZ
body(2,1:3,:) is tailX tailY tailZ
280 is the time.
f=[5,27,47;47,68,88;88,112,133;133,156,179;179,199,217;217,237,256];
for i = 1:size(f,1)
plot3(body(:,1,i:f(i,3)),...
body(:,2,f(i,1):f(i,3)),...
body(:,3,f(i,1):f(i,3)))
end
I keep getting an error msg:
Error using plot3
Data cannot have more than 2 dimensions.
how can I do it?
Thanks,
Ziv
4 件のコメント
madhan ravi
2019 年 4 月 11 日
Upload body as .mat file.
Ziv Kassner
2019 年 4 月 11 日
jahanzaib ahmad
2019 年 4 月 11 日
have u tried trisurf ?
Ziv Kassner
2019 年 4 月 14 日
回答 (0 件)
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!