Below is my current workspace in MATLAB.
theta = linspace(0,2*pi);for a = [10:0.1:14] c = 30-a; bt = -a.*sin(theta)+((a.^2*sin(theta).*cos(theta))/sqrt(c.^2-a.^2*sin(theta).^2)); M = [max(bt)]end
When I run this file it gives me the maximum value of 41 arrays. The answer shows like this:
M =
13.5983
M =
13.6983
M =
13.7983
M =
13.8983
M =
13.9982
I am wondering is there a way I can make my answer into a single array which I can then plot against a(10:14)?
I wish for it to look something like this:
M =
13.5983 13.6983 13.7983 13.8983 13.9982
OR
M =
13.5983
13.6983
13.7983
13.8983
13.9982
Any help would be great
Best Answer