I am making an app in which I calculate the value of a length with the angle and angular velocity provided by the user, I placed a down drop for w with two options: rpm and rad / s. In order to carry out the calculations I need the unit to be in rad /s.
The error that occurs when running the app is that in the lines of the variables z3C, z4C, z1C says that it does not recognize the variable w2.
I would appreciate your help.
methods (Access = private)
function DropDownW2ValueChanged(app, event)
uniw2 = app.DropDownW2.Value;
if strcmp(uniw2,'rpm')
wa2=app.w2.Value;
w2 = (2*pi*wa2)/60;
else
w2 = app.w2.Value;
end
end
function CalcularButtonPushed(app, event)
a2 = app.a2.Value;
w3 = app.w3.Value;
a3 = app.a3.Value;
w4 = app.w4.Value;
a4 = app.a4.Value;
z2C = w4*((w3^2)*j+a3)-w3*((w4^2)*j+a4);
z3C = w2*(a4+(w4^2)*j)-w4*(a2+(w2^2)*j);
z4C = w3*((w2^2)*j+a2)-w2*((w3^2)*j+a3);
z1C = -z2C-z3C-z4C;
0 Comments
Sign in to comment.