Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
save For matrix

Subject: save For matrix

From: Rubi

Date: 5 Feb, 2009 22:34:01

Message: 1 of 2

Hi again,,

 Now that i have this an generates the list of my data in the command window

for i=1:5
  for r=1:3
         entrenados.input(1,i).mf(1,r).params
     end
end

I got this

ans =
   -0.0195 0.1204 0.3303 0.4708
ans =
    0.3304 0.4703 0.6801 0.8201
ans =
    0.6755 0.8201 1.0301 1.1700
etc..
If i take ans it gives me the last line ... the thing i want to do is to save all the info in excel or .tmp

save a.tmp -ascii
saves the last line =(

thnks

Subject: save For matrix

From: Matt Fig

Date: 6 Feb, 2009 01:05:19

Message: 2 of 2

You need to assign the outputs to a variable. For example:


for ii = 10:-1:1
g(ii) = ii;
end

Now you can save g. In your case you will want to use a cell array as your variable.




sY[bU`VWh9cYs\_saUUWc]"sUVhis\MbUYds`.Ucd]hzmY4asszc\cUAcij

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us