I’ve got a series of matrices
zeroingMatrix{i} % i going from 1 to 'matrixQuantity'
I need to pass these to another Callback function. So the idea was:
for i = 1:matrixQuantity
setappdata(0, 'zeroingMatrix{'i '}', zeroingMatrix{i});
end
and get it back with:
for i = 1:matrixQuantity
zeroingMatrix{i} = getappdata(0, 'zeroingMatrix{' i '}');
end
but apperantly this 'zeroingMatrix{'i '}'
is not the correct syntax and i can't figure out the right one. I tried all kinds of bracket combinationss but it won't let me do it.
When I try to start it, Matlab gives me the standard error:
Error: File: RackReader.m Line: 184 Column: 36 Unexpected MATLAB expression.
line 184 being the setappdata line.
This is not the only data I'm passing inbetween functions, but the first with a variable in it. Everything works fine exept this one.
Anyone else ever ran into this problem or has a better idea?
Thanks so much in advance
Mike