- #1
pp84
- 4
- 0
Hi,
Looking for a bit of cheeky help with matlab, I am 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? I am sure it is i just don't know the key commands.
Any help would be much appretiated.
Thanks
Punit
Looking for a bit of cheeky help with matlab, I am 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? I am sure it is i just don't know the key commands.
Any help would be much appretiated.
Thanks
Punit