Hey! I am new to matlab and I need some help here.
Mostra commenti meno recenti
So this is the problem: Write an equation that plots the quadratic formula, linearly spaced with 100 divisions. The equation for a particular quadratic expression should be in the form ax^2 +b^x + c,with the bounds on x are x1 and x2 where i t is assumed that x1 < x2. Using the functions linspace and plot may prove to be helpful as well as the hold switch. Make sure you include a title on the plot.
ANY HELP would be really appreciated!
1 Commento
Image Analyst
il 18 Set 2014
Here's some help: http://www.mathworks.com/matlabcentral/answers/8626-how-do-i-get-help-on-homework-questions-on-matlab-answers. Basically you're supposed to at least do a little coding and ask specific, targeted questions, rather than just tell us the problem statement.
Risposta accettata
Più risposte (1)
Naeem Roshan
il 18 Set 2014
Modificato: Naeem Roshan
il 18 Set 2014
introduce x and find y=ax^2+b^x+c (put numbers you want in place of x1,x2,step,a,b,c)
x = linespace(x1,x2,step);
y = a*x.^2 + b*x + c;
plot and its title
plot(x,y)
title('your title')
I hope this would be helpful :)
1 Commento
Image Analyst
il 18 Set 2014
linspace, not linespace
Categorie
Scopri di più su Mathematics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!