12.07.2015 Views

Basics of MATLAB and Beyond

Basics of MATLAB and Beyond

Basics of MATLAB and Beyond

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

cols = [1 1 11 1 00 1 0];for i = 1:length(x)light(’pos’,[x(i),y(i),z(i)],...’color’,cols(i,:))endpltlightThis is the flat lighting method. Other ways <strong>of</strong> rendering light arelighting gouraudlighting phongThe default is lighting flat.Continuing the last example, we illustrate some different materialproperties:material metalmaterial shinyc○ 2000 by CRC Press LLC

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

Saved successfully!

Ooh no, something went wrong!