13.07.2015 Views

INFORMATIKA II MATLAB 4. deo

INFORMATIKA II MATLAB 4. deo

INFORMATIKA II MATLAB 4. deo

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Grafik funkcije◦ Veoma često postoji potreba da se nacrta grafik nekefunkcije◦ U <strong>MATLAB</strong>-u se funkcije crtaju komandama plot i fplot◦ Da bi se komandom plot nacrtao grafik funkcije y = f(x),prvo se generiše vektor vrednosti x za interval u kome jefunkcija definisana, sa određenim korakom◦ Zatim se generiše vektor y odgovarajućih vrednosti f(x)izvršavanjem operacija nad pojedinačnim elementimavektora x◦ Kada se definišu oba vektora, može se nacrtati grafikkomandom plot

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

Saved successfully!

Ooh no, something went wrong!