App Designerの「座標軸」上に、fimplicitをプロットを行う方法
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
App Designerで「ボタン」と「座標軸」を配置し、「ボタン」をクリックすると、fimplicitをプロットする方法をおしえていただけないでしょうか?普通にfimplicitを、function drawRedrawButtonPushed(app, event)に記載すると、新たなfigureが立ち上がって、そちらにプロットされてしまいます。ご教示をよろしくお願いいたします。
0 Commenti
Risposta accettata
Kojiro Saito
il 29 Set 2023
fimplicit のドキュメントに座標軸 (ax)を指定する方法が書いてありますので、
ボタンを押したときのコールバックの中に、座標軸を指定してみてください。
たとえば下記のように座標軸 (app.UIAxes)がある場合に、
ボタンのコールバックに下記のようにすればキャンバスに置いた座標軸にプロットされます。
% Button pushed function: Button
function ButtonPushed(app, event)
fimplicit(app.UIAxes, @(x,y) x.^2 - y.^2 - 1)
end
Più risposte (0)
Vedere anche
Categorie
Scopri di più su 2 次元および 3 次元プロット in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!