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

Looking for a bit of cheeky help with matlab, im stumped!

1) I have written a program that i want to cycle through different sets of data, ideally this is what i would like:

These are all xls files with columns of data

ydata = ...

xdata = ...

zdata = ...

for variable = ydata:xdata:zdata

do function to each of the variables seperatly

write function results(variable) and save data

end

Is this possible?

2) When calling a file name eg:

[FTSE] = xlsread('Normalised Smooth Data.xlsx', 'FTSE', 'A1:A300')

I want to replace 300 with a variable rather than changing many of them manually everytime i need to change that number, so i would have something like this:

numberofpoints = 300

[FTSE] = xlsread('Normalised Smooth Data.xlsx', 'FTSE', 'A1:Anumberofpoints')

Again, is this possible? Im sure it is i just dont know the key commands.

Any help would be much appretiated.

Thanks

Punit

**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!

# Matlab questions: Easy peasy for the pro's

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads - Matlab questions Easy | Date |
---|---|

MatLab function question | Sep 5, 2015 |

Contour question in matlab | Feb 9, 2015 |

Concept and subject of latex and its usage and related questions on latex | Sep 25, 2014 |

Computing question 1st year Engineering-MATLAB | Apr 22, 2014 |

Quick and Easy Matlab Question | Oct 18, 2005 |

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