24.02.2013 Views

A1 Matlab

A1 Matlab

A1 Matlab

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Konstruktor<br />

• Konstruktor se uvek izvršava kod formiranja novog objekta<br />

• U starijim verzijama (pre v7.6) postavljao se tip<br />

obj = class(p,'polynom');<br />

function obj = polynom(a)<br />

%POLYNOM Polynomial class constructor.<br />

% p = POLYNOM(v) creates a polynomial object from the vector v,<br />

% containing the coefficients of descending powers of x.<br />

if isa(a,'polynom')<br />

obj.coef = a.coef;<br />

else<br />

obj.coef = a(:).';<br />

end<br />

end

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!