Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
The trouble with your code is that the argument in the second line is a bit off syntax-wise. Try to simplify it by breaking the calculation up into 2 lines for clarity.
Plotting example:
t = 1790:10:2000;
P = 197273000./(1+exp(-0.03134*(t-1913.25)));
plot (t,P);
there are various ways to plot this in MATLAB:
1. u can use the symbolic tool box
2. u cn use the anonymous function
it depends on the one that u want
well let use the editor by typing edit at the command prompt;
the editor opens
now type
x=10:1:20;
5*pi*(1.5^2)*[0.00333*(1.5*y/x)+0.00433*((1.5*y/x)^3)-7.26e-5*((1.5*y/x)^5)]*x^3=1250;
find or pretty u can also use feval
then u plot(x,y)
as at now i am talking a wild guess but i will solve this when i get home and resend you the correct solution.
to write this program you must forst simplify the equation to
y=[[5*pi*(1.5^2)*[0.00333*(1.5/x)+0.00433*((1.5/x)^3)-7.26e-5*((1.5/x)^5)]*x^3]/1250]^-1;
you don't have to write the step that you want to use for " x=10:1:20 "
so the program will be like this
x=10:20;
y=[[5*pi*(1.5^2)*[0.00333*(1.5/x)+0.00433*((1.5/x)^3)-7.26e-5*((1.5/x)^5)]*x^3]/1250]^-1;
plot(x,y)
I hope that this is the answer you are looking for
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.