MATLAB: A simple question about undefined function error

undefined error

Hello,
Before i ask my question i want to mention that i am beginner level in matlab.
I wrote in matlab a simple program which is given below:
function [ output_args ] = Untitled( input_args )
for i=1:6
for j=1:30
k=1:24;
if 6<=k<17
if ruzgaruretimi(k,j)>sulamagider(k,j)
sebekein==sebekein
elseif ruzgaruretimi(k,j)<sulamagider(k,j)
if sdepo>0
sebekein==sebekein
sdepo==sdepo-1
elseif sdepo==0
sebekein==sebekein+15.708
end
end
end
end
end
end
I defined all veriables but i still get this error message:
Undefined function 'ruzgaruretimi' for input arguments of type 'double'.
Error in dnm (line 6)
if ruzgaruretimi(k,j)>sulamagider(k,j)
How can i solve it?
regards

Best Answer

There are so many things wrong with your function that fixing the error you are getting is going to be of little value. If you are a beginner in MATLAB, you need to read the documentation. For example these lines:
k=1:24;
if 6<=k<17
% Do something
end
are not doing what you think they are doing.
Related Question