% 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 Exchange에서 Develop 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