Matlab function only giving me 1 output
I have a function but its only giving me 1 output as an answer.
>> theta = 0:0.01:90;
>> Vmax = sqrt((0.25.*cos(theta).*9.8.*(sin(theta)+0.2.*cos(theta)))/(cos(theta)-0.2.*sin(theta)))
Vmax =
0.1514
I want to plot this on a graph but it only interprets the function as having 1 value. I’ve done functions this way before like if i just say
>> x = 0:0.01:pi;
>> y = sin(x);
it works fine so why is my Vmax just giving me 1 value.I have a function but its only giving me 1 output as an answer.
>> theta = 0:0.01:90;
>> Vmax = sqrt((0.25.*cos(theta).*9.8.*(sin(theta)+0.2.*cos(theta)))/(cos(theta)-0.2.*sin(theta)))
Vmax =
0.1514
I want to plot this on a graph but it only interprets the function as having 1 value. I’ve done functions this way before like if i just say
>> x = 0:0.01:pi;
>> y = sin(x);
it works fine so why is my Vmax just giving me 1 value. I have a function but its only giving me 1 output as an answer.
>> theta = 0:0.01:90;
>> Vmax = sqrt((0.25.*cos(theta).*9.8.*(sin(theta)+0.2.*cos(theta)))/(cos(theta)-0.2.*sin(theta)))
Vmax =
0.1514
I want to plot this on a graph but it only interprets the function as having 1 value. I’ve done functions this way before like if i just say
>> x = 0:0.01:pi;
>> y = sin(x);
it works fine so why is my Vmax just giving me 1 value. help, function MATLAB Answers — New Questions