App Designerの「​座標軸」上に、fim​plicitをプロッ​トを行う方法

3 vues (au cours des 30 derniers jours)
高木 範明
高木 範明 le 29 Sep 2023
Commenté : 高木 範明 le 29 Sep 2023
App Designerで「ボタン」と「座標軸」を配置し、「ボタン」をクリックすると、fimplicitをプロットする方法をおしえていただけないでしょうか?普通にfimplicitを、function drawRedrawButtonPushed(app, event)に記載すると、新たなfigureが立ち上がって、そちらにプロットされてしまいます。ご教示をよろしくお願いいたします。

Réponse acceptée

Kojiro Saito
Kojiro Saito le 29 Sep 2023
fimplicit のドキュメントに座標軸 (ax)を指定する方法が書いてありますので、
ボタンを押したときのコールバックの中に、座標軸を指定してみてください。
たとえば下記のように座標軸 (app.UIAxes)がある場合に、
ボタンのコールバックに下記のようにすればキャンバスに置いた座標軸にプロットされます。
% Button pushed function: Button
function ButtonPushed(app, event)
fimplicit(app.UIAxes, @(x,y) x.^2 - y.^2 - 1)
end
  1 commentaire
高木 範明
高木 範明 le 29 Sep 2023
早々のご教示をありがとうございました。
おしえて頂いた方法で、うまくいきました。
重ねて御礼申し上げます。

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur アプリの作成 dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!