フィルターのクリア

Plots in app designer

2 ビュー (過去 30 日間)
Asad Elmgerbi
Asad Elmgerbi 2020 年 5 月 17 日
コメント済み: Asad Elmgerbi 2020 年 5 月 18 日
Dears ,
Have question regrading ploting in app designer ,
I have the following code for ploting a figure
figure(1);
barh(predictorImportance)
grid on
set(gca,'ytickLabel',inputNames(sortedIndex))
xlabel({'Predictor Importance for ', convertCharsToStrings(outputNames) })
........................................
How can do code change so that it fit to app. uiaxes , in other words , how I can use app. uiaxes to make the same plot .

採用された回答

Mohammad Sami
Mohammad Sami 2020 年 5 月 18 日
You can specify the handle of the uiaxes, so that matlab knows which axes to plot on.
barh(app.UIAxes,predictorImportance);
grid(app.UIAxes,'on');
set(app.UIAxes,'ytickLabel',inputNames(sortedIndex));
xlabel(app.UIAxes,{'Predictor Importance for ', convertCharsToStrings(outputNames) });
  1 件のコメント
Asad Elmgerbi
Asad Elmgerbi 2020 年 5 月 18 日
Thanks Mohammad .
It works

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by