Too many ouput argument
显示 更早的评论
Hi everyone, basically this is the coding that has been given to me.
%% setting up some variables
ws = round(620*100); % as ws is input in cycles, and better to have it in samples
[m,n] = size(@stateS3FastAnkleAngle);
state = [@stateS3FastAnkleAngle;NaN*ones(ws,n)]; % we extend the state space with NaN, so that we don't run into problems later
divergence = NaN*ones(m*n_neighbours,ws); % set up the output divergence matrix
but after I run the coding, it states that too many output argument. Can someone help me? I'm still newbie in Matlab and wanted to learn more.

5 个评论
Peng Li
2020-4-3
what does this stateS3FastAnkleAngle return, or what are your m and n?
redroses
2020-4-3
Ameer Hamza
2020-4-3
There are syntax issues in your code, and you cannot have function handles numeric data in the same array.
state = [@stateS3FastAnkleAngle;NaN*ones(ws,n)];
Can you explain what problem you are trying to solve?
redroses
2020-4-3
Stephen23
2020-4-5
This is very odd:
NaN*ones(ws,n)
Much better:
nan(ws,n)
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!