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 个评论

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 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