How can I plot matrix from a text file in App Designer ?

조회 수: 1 (최근 30일)
Muhammed Çevik
Muhammed Çevik 2020년 12월 23일
댓글: Muhammed Çevik 2020년 12월 23일
Hi everyone,
I want to plot the 2nd and 3rd columns of a matrix of [5000x3 double] using Axes from the component library. However, I could not see how to plot the matrix in text file in the uiaxes documentation. How can I do that?
% Callbacks that handle component events
methods (Access = private)
% Button pushed function: Button
function ButtonPushed(app, event)
[file, path] = uigetfile('*.txt');
filename = [path file ];
A=importdata(filename);
end
end

채택된 답변

Cris LaPierre
Cris LaPierre 2020년 12월 23일
The same way you would plot it in MATLAB. Just be sure to specify the target axes.
plot(app.UIAxes,xData,yData)

추가 답변 (0개)

카테고리

Help CenterFile 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!

Translated by