Creating a function that returns a graph
古いコメントを表示
Hello.
I have to study the displacement of a sheet pile. At end of computation, I have matrices of size (N_ELEMENTS,N_TIME), for each degree of freedom and for time. I'm making a plot animation (with a plot into a loop). But this plot will be used in other codes, so instead of copy/paste I would like a function []animation = (...) that gives the plot.
In my code I will then have :
. . . animation(t,water_height,disp_nodes,N,NDoF,size_el,1); . . .
But I have this error : ??? Subscript indices must either be real positive integers or logicals.
Maybe someone know how to call this function properly ? Thanks !
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Animation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!