New to Matlab, need help
3 次查看（过去 30 天）
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: ');
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 )
kei hin 2013-12-17
编辑：kei hin 2013-12-17
Operators can't be omitted. If 'a=2', you want '4',then you need '2*a', not '2a'. And you'd better type your code in Matlab, you will see the tips or warning message from the Matlab to correct your code.
for 'disp' help
You can also type 'doc' in matlab command window, then search something you want to know.