Plotting using MATLAB appdesigner

% I am using MATLAB appdesigner to plot graph. This graph basically is a Rate of creep Vs Velocity graph, where Rate of Creep depends on many factors besides velocity. I have used the below code to plot the graph, but I am failing to get the required output
%Plotting
for f=75:10:405;
qsp=s*0.5*d*f^2;
cd0qsp=cd0*qsp;
clp=w/(qsp);
cdip=qsp*k*clp^2;
prp=(cd0qsp*cdip)*f;
pap=tsl*f;
rocp=(pap-prp)/w;
plot(app.UIAxes,f,rocp)
hold(app.UIAxes)
end
% The required graph is as follows
% Any help to get the required output is highly commendable.

1 件のコメント

Adam Danz
Adam Danz 2020 年 12 月 9 日
編集済み: Adam Danz 2020 年 12 月 9 日
We can't run your code so we don't know what's wrong with it.
Addendum: what we need to understand is 1) a description (or better yet, a screenshot) of the figure you're producing and why it's not as expected and 2) the values of d, cd0, qsp, and all variables in the snippet you provided above so we can run a small section of code in order to see what's happening.
The idea is to provide us with everything we need to reproduce, or at least see, the probem while also reducing the amount of work we need to do.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

質問済み:

2020 年 12 月 9 日

編集済み:

2020 年 12 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by