How can I plot matrix from a text file in App Designer ?
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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 Center 和 File 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!