Hello, Maybe a very easy question, but I am already looking for hours on the Internet for the answer but I cannot find it.
I have created the function below. In another m-file I want to use the matrix 'actual_location'. However, it is not possible to use an individual cell of the matrix (i.e. actual_location(3,45) or actual_location(1,2)). When I try to use an individual cell, I get the following error : ??? Error using ==> Actual_Location
Too many input arguments.
Can anyone please tell me what I have to change, so that I can read individual cells of the matrix?
function [actual_location] = Actual_Location(~);
actual_location=zeros(11,161);
for b=1:11
for t=1:161
actual_location(b,t) = (59/50)*(t-2-(b-1)*12)+1;
if actual_location(b,t) < 1
actual_location(b,t) =1;
end
end
actual_location(1,1)
end