using c++ in mATLAB
Mostrar comentarios más antiguos
There is something wrong in script #2, The i values that must be save in the speeds array is [4 5 6 7 8 ] once five values are saved it must break, could someone help me please and figure what’s wrong with this code?
Also, I need to plot coefficient of static friction (y-axis) as a function of theta (x-axis) and each time at a angular velocity = speed [4 5 6 7 8 ] /r on the same plot, how to do this?
coefficient of static friction equation is eqn1.
and theta is provided.
4 comentarios
darova
el 15 de Abr. de 2020
What is the language and what does this line?

fatima hamad
el 15 de Abr. de 2020
darova
el 15 de Abr. de 2020
And what is this for?

fatima hamad
el 15 de Abr. de 2020
Respuestas (1)
Ayush Gupta
el 3 de Jun. de 2020
Try using with this code for section 2
g = 9.81;
r = 0.7;
theta = (0:0.04:pi);
speed = sqrt(g/r);
speeds = [0,0,0,0, 0];
noc = 1;
i =1 ;
while(noc <=5)
pause(1)
if speed < i
speeds(noc) = i;
noc = noc +1;
end
i = i+1;
end
Categorías
Más información sobre Programming en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!