I need a Matlab program code that will produce these two gra
I need a Matlab program code that will produce these two graphs above. the problem is worked I just need to get Matlab to do the problem and produce the graphs in one plot window with 2 graphs for the two different situations above.
Solution
clc
clear;
m=750;
M=32;
g=9.81;
h=1:1:10;
V=sqrt(2*g*h*(m/M));
subplot(2,1,1)
plot(V);
xlabel(\'height(m)\');
ylabel(\'V(m/s) \"heavy wheel and light body\"\');
m=8;
M=750;
g=9.81;
h=1:1:10;
V=sqrt(2*g*h*(m/M));
subplot(2,1,2)
plot(V);
xlabel(\'height(m)\');
ylabel(\'V(m/s) \"light wheel and heavy body\"\');
result:
