
Plot 2D vector in AppDesigner
5 ビュー (過去 30 日間)
古いコメントを表示
Hello there!
I'd like to use the command vplot in MATLAB AppDesigner, but it doesn't work.
Is it possible to use it? or is there any other option to plot a vector in 2D in AppDesigner?
0 件のコメント
回答 (1 件)
Austin M. Weber
2024 年 2 月 8 日
I could not get the vplot function to work, but there is always quiver.
For instance, if you add a button to your app and give it a callback function you can give it the following commands:
load wind
quiver(app.UIAxes,x(:,:,7),y(:,:,7),u(:,:,7),v(:,:,7));
ylim(app.UIAxes,[30 50])
xlim(app.UIAxes,[85 115])
This will produce a nice 2D vector plot in the app designer (assuming that you already have a UIAxes pane with the name UIAxes in the app):

4 件のコメント
Austin M. Weber
2024 年 2 月 10 日
@Alberto Happy to help! If the solution is working for you then you should click the green button to accept the answer.
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!