MATLAB Answers

How to plot using equations

1 view (last 30 days)
Sir I have equation by using this equation is it possible to plot the graph.
  1 Comment
KALYAN ACHARJYA
KALYAN ACHARJYA on 11 Jul 2018
Can you clarify, which is variable in RHS and what are the values for remaining constants?

Sign in to comment.

Accepted Answer

KALYAN ACHARJYA
KALYAN ACHARJYA on 11 Jul 2018
%here I am considering n is variable
%The the valuse are random, you can change the valuse as per disirable
s=10;
e_amp=20;
e_stat=10;d_avd=100;
%here following n considering variable, you can chose the different one
%also, 1:.1:10 1 is initial, 0.1 increment, till final value 10
n=1:.1:10;
s1=s*sqrt(n*e_amp);
d1=sqrt(2*pi*(n*e_stat+e_amp*d_avd^2));
k=s1./d1
plot(k);
The output graph may vary depends on inputs values.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!