From: roya olyazadeh on 21 May 2010 11:13 I have some results in my matlab program that I want to export them in text file . does any one know how I can do this : This is my data : pvariance= 1.465 ns=6 degfree= 27 L=[ 1 1 1 0 ] X= [ 10 , 11, 12, ,13 ,14 ,15 ] Qx= 1 0 0 2 3 0 4 5 6 Text file must be like this : The result for adjustment is : I 1.465 27 6 1 1 1 0 X 10 11 X 12 13 X 14 15 Q 1 Q 2 Q 3 Q 4 Q 5 Q 6 Test passed end tnx
From: David Young on 21 May 2010 12:34 Have a look at the documentation for fprintf. It's pretty straightforward, but if you have problems using it you can always come back here.
From: roya olyazadeh on 21 May 2010 15:12 "David Young" <d.s.young.notthisbit(a)sussex.ac.uk> wrote in message <ht6cmd$98r$1(a)fred.mathworks.com>... > Have a look at the documentation for fprintf. It's pretty straightforward, but if you have problems using it you can always come back here. With fprintf how can I export my data to text file ???? I am looking for a function like textread but vice versa for writing to a text file .
From: someone on 21 May 2010 15:30 "roya olyazadeh" <roya2543(a)gmail.com> wrote in message <ht6lu6$jsm$1(a)fred.mathworks.com>... > "David Young" <d.s.young.notthisbit(a)sussex.ac.uk> wrote in message <ht6cmd$98r$1(a)fred.mathworks.com>... > > Have a look at the documentation for fprintf. It's pretty straightforward, but if you have problems using it you can always come back here. > > > With fprintf how can I export my data to text file ???? I am looking for a function like textread but vice versa for writing to a text file . doc fprintf % Look at the "Examples" section.
From: omegayen on 21 May 2010 15:42 you might want to look at http://www.mathworks.com/matlabcentral/newsreader/view_thread/274020#739916
|
Next
|
Last
Pages: 1 2 Prev: Two way flow through pipe Next: how to solve a complex equation with symbolic coefficients? |