18.04.2013 Views

Dicas de utilização do MATLAB - Programa de Engenharia Química ...

Dicas de utilização do MATLAB - Programa de Engenharia Química ...

Dicas de utilização do MATLAB - Programa de Engenharia Química ...

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.

clear all<br />

>> X=[1 0 5 6 0 0 0; 0 0 0 0 1 0 0]<br />

X =<br />

1 0 5 6 0 0 0<br />

0 0 0 0 1 0 0<br />

>> S = sparse(X)<br />

S =<br />

(1,1) 1<br />

(1,3) 5<br />

(1,4) 6<br />

(2,5) 1<br />

>> whos<br />

Name Size Bytes Class<br />

S 2x7 80 sparse array<br />

X 2x7 112 <strong>do</strong>uble array<br />

Grand total is 18 elements using 192 bytes<br />

>> X2=full(S)<br />

X2 =<br />

1 0 5 6 0 0 0<br />

0 0 0 0 1 0 0<br />

>> whos<br />

Name Size Bytes Class<br />

S 2x7 80 sparse array<br />

X 2x7 112 <strong>do</strong>uble array<br />

X2 2x7 112 <strong>do</strong>uble array<br />

Grand total is 32 elements using 304 bytes<br />

>><br />

4. Analisan<strong>do</strong> da<strong>do</strong>s<br />

<strong>MATLAB</strong> – PEQ/COPPE/UFRJ- Janeiro <strong>de</strong> 2003<br />

costa@peq.coppe.ufrj.br<br />

A análise <strong>de</strong> da<strong>do</strong>s no <strong>MATLAB</strong> é feita utilizan<strong>do</strong>-se matrizes orientadas por<br />

coluna. As diversas variáveis são armazenadas em diferentes colunas e cada linha<br />

representa uma observação diferente <strong>de</strong> cada variável. As principais funções <strong>de</strong> análise<br />

<strong>de</strong> da<strong>do</strong>s são apresentadas na Tabela 3.11.1<br />

18

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

Saved successfully!

Ooh no, something went wrong!