Following a similar problem that was posted....(adsbygoogle = window.adsbygoogle || []).push({});

I have data , which consists of 3 columns related to 3 parameters H, T and E (Height, period and efficiency) and herewith, I would like to create a scatter diagram.

the name of every cell would carry the name of the H and T parameter and that 'cell' should contain different efficiencies...

So:

- I managed to create a name for all these cells e.g.: Cell_H_T

for h=1:10

for t=1:10

eval(['Cell_' num2str(h) '_' num2str(t) '=[0]']);

end

end

Now:

- how can I adress every matrix individually?

In the next example, the number '1' (appearing in t1min) should also change in between each loop.

e.g.: I analyse the data and if the data follows the requirements I would like to add that value into the cell_H_T... and also count the number of datapoints in there countCell_H_T

(this off course doesn't work)

for h=1:10

for t=1:10

for k = 1:length(H)

if (T(k)>=t1min & T(k)<=t8max) & (h1min<=H(k) & H(k)<=h10max)

Cell_ num2str(h) _ num2str(t) = [Cell_ num2str(h) _ num2str(t);E(k)]

countCell_ num2str(h) _ num2str(t) = countCell_ num2str(h) _ num2str(t) + 1;

end

end

end

end

Many thanks in advance for your help!!

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Abstracting info out of the filename and updating it

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads - Abstracting info filename | Date |
---|---|

Octave debug info randomly displayed | May 19, 2015 |

Latex: include with path, not just filename | Jan 8, 2013 |

Grabbing info from an .ndk file and making a .kml file | Jan 26, 2012 |

Mathematica: Plot using abstract variables instead of set values | Mar 9, 2011 |

MATLAB Runs Filename | Apr 26, 2010 |

**Physics Forums - The Fusion of Science and Community**