MATLAB Answers

How to solve an equation with a variable that has multiple values?

11 views (last 30 days)
KOMAL NITNAWARE
KOMAL NITNAWARE on 18 Sep 2020
Answered: Maximilian Panzik on 18 Sep 2020
I am a learner and trying to solve one problem. I have values of
w=13122.25,
s=16.16,
p=1.225 and
relation
C=2w/(p*v^2*s).
I have values of v=(20,30,40,50,60,70,75)
and wanted to plot a graph of changing values of v with C. Please help.

  0 Comments

Sign in to comment.

Answers (2)

Vasishta Bhargava
Vasishta Bhargava on 18 Sep 2020
% if true
% code
% end
W = 13122.25;
S = 16.16;
P = 1.225;
V = [20 30 40 50 60 70 75];
C = 2*W./(P*V.^2*S);
plot(V,C,'b');
xlabel('V');ylabel('C');

  0 Comments

Sign in to comment.


Maximilian Panzik
Maximilian Panzik on 18 Sep 2020
Hey, you need to use the point operator:
C=2*w./(p*v.^2*s)
link for more information.

  0 Comments

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by