Plotting in app designer doesn´t shows anything

Hello people i have this problem of plotting on app designer and i don´t know what the problem could be. When i run the program the graph doesn´t shows anything. I have this code
function Plot_BVButtonPushed(app, event)
m = app.masa.Value;
d = app.delta.Value;
v = 0:5:60;
lf = 1.11;
lr = 1.6;
l = lf + lr;
Kr = 55000;
Kf = 60000;
beta = ((1-((m*lf)/(2*l*lr*Kr))*v.^2)/(1-(m/(2*l^2))*((lf*Kf-lr*Kr)/(Kr*Kf))*v.^2))*(lr/l)*d;
plot(app.BV,v,beta, 'r');
If anyone could help i will apreciate it, please.

 채택된 답변

VBBV
VBBV 2020년 12월 6일

0 개 추천

%if true
beta = ((1-((m*lf)/(2*l*lr*Kr))*v.^2)./(1-(m/(2*l^2))*((lf*Kf-lr*Kr)./(Kr*Kf))*v.^2))*(lr/l)*d
Do element wise division for v.^2 as above

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

2020년 12월 6일

댓글:

2020년 12월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by