<div>Hi</div>
<div>You could create a program for that.</div>
<div>First, you should get the size of the matrix with the command size: [m,n]=size(A). Now you know the number of rows and columns.</div>
<div>Second, create a zero vector with the command zeros: B=zeros(m*n,1)</div>
<div>Third, use for loops:</div>
<div>for j=1:n</div>
<div> for i=1:m</div>
<div> B( m*(j-1)+i )=A(i,j);</div>
<div> end</div>
<div>end<br><br>Raymundo</div>
<div>CIEEP-Perú</div>
<div> </div>
<div><span class="gmail_quote">2008/3/4, Maso Ricci <<a href="mailto:ricci2@unisi.it">ricci2@unisi.it</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi all,<br>I am trying to figure out how scilab works... and I was wondering<br>whether exists a way to convert a matrix data such as:<br>
1.00000000000000 0.750689539248839 0.575450038685058<br> 0.447770887731725 0.352291666599128 0.279493780281873<br> 0.223164527313716 0.179078852155991 0.144266830446559<br> 0.116583838853294 9.444665661607855E-002 7.666507867378637E-002<br>
6.233082044030214E-002 5.074212100141323E-002 4.135119889501301E-002<br> 3.372683743749021E-002 2.752720834623435E-002 2.247977865706249E-002<br> 1.836623314137826E-002 1.501100449134708E-002 1.227245029959649E-002<br>
1.003599544250727E-002 8.208760050464130E-003 6.715317087929489E-003<br> 5.494323561688932E-003 4.495830903612723E-003 3.679128994505069E-003<br> 3.011009827960343E-003 2.464368355490481E-003 2.017068214989182E-003<br>
1.651023060847658E-003 1.351450402154765E-003 1.106264213952365E-003<br> 9.055809291743580E-004 7.413163523581016E-004 6.068569673468328E-004<br> 4.967917877191485E-004 4.066930964362238E-004 3.329375168798268E-004<br>
2.725596626647907E-004 2.231324821751473E-004<br><br><br>to a column-wise data like:<br><br>1.0000000000000<br>0.750689539248839<br>0.575450038685058<br>0.447770887731725<br>0.352291666599128<br>0.279493780281873<br><br>
[ . . .]<br><br>thanks<br><br><br><br><br>--<br><br>Maso Ricci Ph.D<br>Dept. of Chemical and Biosystem Science<br>University of Siena<br>Via A. Moro, 2 53100 Siena<br>ITALY<br>Tel: +39 0577 234367<br>Fax: +39 0577 234177<br>
email: <a href="mailto:ricci2@unisi.it">ricci2@unisi.it</a><br></blockquote></div><br>