How can i use plot3 function in simulink ?

7 ビュー (過去 30 日間)
Larasmoyo Nugroho
Larasmoyo Nugroho 2017 年 1 月 9 日
編集済み: Larasmoyo Nugroho 2017 年 1 月 9 日
Lets say i want to draw a 3d line using ramp in x, y, z as input. I want to plot it using plot3(u,v,w)... I just got an update of the latest point, thats all...
How can i draw the growing line using plot3 in a Matlab Function Block inside a simulink .mdl?

回答 (1 件)

Larasmoyo Nugroho
Larasmoyo Nugroho 2017 年 1 月 9 日
編集済み: Larasmoyo Nugroho 2017 年 1 月 9 日
ok i got it... just paste this to the Matlab Function Block
=====================
function fcn(u,v,w)
hold on;
grid on;
plot3(u,v,w);
========================
but now i want to put stem3 function in the block, it wasnt allowed in R2014a !
==> function 'stem3' is not supported for standalone code generation....
how can i solve this...??

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by