Prev: help
Next: fprintf['text' vector 'text' vector]???
From: mat001 on 1 Jul 2010 10:15 I want to append data only after certain interval so how to do? My code looks like that m = mean(nonzeros(A(:))); save('Data/s.mat', 's','-append','-ascii' );
From: us on 1 Jul 2010 10:26 "mat001 " <priya.biomath(a)yahoo.co.in> wrote in message <i0i7tq$eqe$1(a)fred.mathworks.com>... > I want to append data only after certain interval so how to do? > > My code looks like that > m = mean(nonzeros(A(:))); > save('Data/s.mat', 's','-append','-ascii' ); your post does not make sense at all... THINK - THINK - POST... us
From: Andy on 1 Jul 2010 10:37 "mat001 " <priya.biomath(a)yahoo.co.in> wrote in message <i0i7tq$eqe$1(a)fred.mathworks.com>... > I want to append data only after certain interval so how to do? > > My code looks like that > m = mean(nonzeros(A(:))); > save('Data/s.mat', 's','-append','-ascii' ); The easiest way: m=mean(nonzeros(A(:))); % wait about ten seconds here save('Data/s.mat','s','-append','-ascii'); But seriously, what do you mean by "only after a certain interval"? Do you have some process collecting and processing data, and you need to save data every minute (or hour, or however often)? Are you asking how to leave space after appending data? Are you asking about a way to have a script run automatically after specified time intervals? What are you actually trying to do?
From: mat001 on 1 Jul 2010 10:43 "Andy " <theorigamist(a)gmail.com> wrote in message <i0i96g$con$1(a)fred.mathworks.com>... > "mat001 " <priya.biomath(a)yahoo.co.in> wrote in message <i0i7tq$eqe$1(a)fred.mathworks.com>... > > I want to append data only after certain interval so how to do? > > > > My code looks like that > > m = mean(nonzeros(A(:))); > > save('Data/s.mat', 's','-append','-ascii' ); > > The easiest way: > > m=mean(nonzeros(A(:))); > % wait about ten seconds here > save('Data/s.mat','s','-append','-ascii'); > > But seriously, what do you mean by "only after a certain interval"? Do you have some process collecting and processing data, and you need to save data every minute (or hour, or however often)? Are you asking how to leave space after appending data? Are you asking about a way to have a script run automatically after specified time intervals? > > What are you actually trying to sorry for unclear text. time iteration = time interval actually i have a long simulation having many time step so i want to collect data after 10 or 100 time step. I think its clear.
From: us on 1 Jul 2010 10:44
"Andy " <theorigamist(a)gmail.com> wrote in message <i0i96g$con$1(a)fred.mathworks.com>... > "mat001 " <priya.biomath(a)yahoo.co.in> wrote in message <i0i7tq$eqe$1(a)fred.mathworks.com>... > > I want to append data only after certain interval so how to do? > > > > My code looks like that > > m = mean(nonzeros(A(:))); > > save('Data/s.mat', 's','-append','-ascii' ); > > The easiest way: > > m=mean(nonzeros(A(:))); > % wait about ten seconds here > save('Data/s.mat','s','-append','-ascii'); > > But seriously, what do you mean by "only after a certain interval"? Do you have some process collecting and processing data, and you need to save data every minute (or hour, or however often)? Are you asking how to leave space after appending data? Are you asking about a way to have a script run automatically after specified time intervals? > > What are you actually trying to do? well... after all this philosophical guess-work, which isn't helpful in any way - we're back to what i said above: your post does not make sense at all... THINK - THINK - POST... us |