Matlab mobile plot functions

조회 수: 10 (최근 30일)
Michael Thursby
Michael Thursby 2023년 4월 28일
댓글: Anudeep Kumar 2025년 2월 5일
I would like to plot some data in MATLAB Mobile, access the plot and then continue processing back in the code. It won’t allow the plot to draw and be accessed while waiting for the code to finish.
  댓글 수: 3
MATEO
MATEO 2025년 1월 13일
편집: MATEO 2025년 1월 13일
Hello,
Following this, (I am not the one who initiated this question but I found it looking for another answer), maybe you could be of help?
I'd like to know how to access characteristics of a plot such as peak response, stability margins (e.g.) on the MATLAB mobile app, I can't seem to know how to do so.
Thank you beforehand!
Anudeep Kumar
Anudeep Kumar 2025년 2월 5일
Hey MATEO,
If you're working with MATLAB Mobile and have your variables in the workspace, you can still perform detailed analyses using specific MATLAB functions. While MATLAB Mobile supports basic plot interactions, for more in-depth analysis—like determining peak response or stability margins—you'll want to use functions such as stepinfo and margin.
For example, you can use the stepinfo function on a variable from exporting Acceleration sensor:
info = stepinfo(Acceleration.X);
peakResponse = info.Peak;
Similarly, assuming you have a transfer function, for margins:
sys = tf([1], [1, 2, 1]); % Example transfer function
[GM, PM, Wcg, Wcp] = margin(sys);
I hope this helps you get the details you need from your plot.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by