Hi,(adsbygoogle = window.adsbygoogle || []).push({});

I have a sample date which is a 1000*8 matrix. i want to extract some information and assign them from y data to a some matrices, i want to assign the name of those new matrices automatically, how can i do that? i used the following codes but it gave me an error!

data=load('case1.dat');

for i=1:20;

for j=1:length(data)

if data(j,1)==i;

eval['s' num2str(i)(j,:)]=data(j,:);

end

end

end

Thank you very much.

Best regards,

Mathias

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

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

# Need some help in matlab!

Loading...

Similar Threads - Need help matlab | Date |
---|---|

Matlab Help needed to fix a matlab code | Nov 8, 2017 |

Need help with integral | Dec 23, 2015 |

Need help in MATLAB | Oct 10, 2013 |

Need help plotting Fourier series in matlab | Sep 24, 2013 |

Need help with Matlab's Mapping Toolbox | Feb 10, 2013 |

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