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 Comment

Adam Danz
Adam Danz on 9 Dec 2020
Edited: Adam Danz on 9 Dec 2020
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.

Sign in to comment.

Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Asked:

on 9 Dec 2020

Edited:

on 9 Dec 2020

Community Treasure Hunt

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

Start Hunting!