Plot function in app designer error "Not enough input arguments."

1 回表示 (過去 30 日間)
Karol Szczech
Karol Szczech 2020 年 7 月 29 日
コメント済み: Arthur Roué 2020 年 7 月 30 日
Hello every one,
I'm working on a little project where the main goal is to read a big excel file (xlsx) and extract information which interest me.
I need to make table and plot some value from this excel.
I import the excel file with the function readtable. However, when i want to plot with the data in the table, i have the following error :
Error using plot
Not enough input arguments.
Error in app2/ButtonPushed (line 53)
plot(app.UIAxes,x,y);
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 335)
Error while evaluating Button PrivateButtonPushedFcn.
Thank you and i hope someone will help me !

採用された回答

Arthur Roué
Arthur Roué 2020 年 7 月 29 日
x and y are structures, you need to select the correct field. For instance :
plot(app.UIAXes, x.freq_MHZ, i.iLdB)
  13 件のコメント
Karol Szczech
Karol Szczech 2020 年 7 月 30 日
Thank you very much ! I understand now ! Have a nice day !
Arthur Roué
Arthur Roué 2020 年 7 月 30 日
Y a pas de quoi, tu peux maintenant fermer la question et/ou accepter la réponse !
Bonne journée ;)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by