New to Matlab, need help
Ältere Kommentare anzeigen
Hi,
I'm really new to Matlab and I need some help with my homework. We are supposed to write a script/program that determines the zeros of a second degree polynomial function.
All I have so far is the basic structure:
a=input('Koeffizient a: ');
b=input('Koeffizient b: ');
c=input('Koeffizient c: ');
d=b^2-4ac
if d>0
x1=(-b+d)/2a;
x2=(-b-d)/2a;
if d=0
-(b/2a)
d<0
Fehler
end
end
disp('Nullstelle ist: ')
I would appreciate any help (especially those in the form of pointers to help me solve the problem myself and not get you guys to do my homework :P )
Akzeptierte Antwort
Weitere Antworten (1)
Christopher
am 17 Dez. 2013
Bearbeitet: Christopher
am 17 Dez. 2013
1 Kommentar
kei hin
am 19 Dez. 2013
what do you want?
Kategorien
Mehr zu Properties finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!