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 | Science Articles, Homework Help, Discussion**

Dismiss Notice

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?

**Physics Forums | Science Articles, Homework Help, Discussion**