Too many ouput argument
    2 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    redroses
 am 3 Apr. 2020
  
    
    
    
    
    Kommentiert: Stephen23
      
      
 am 5 Apr. 2020
            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.

Akzeptierte Antwort
  Ameer Hamza
      
      
 am 3 Apr. 2020
        Yes, you cannot function handle @ in the same array as numbers. You need to call the function with an input value like this
ws          = round(ws*fs); 
[m,n]       = size(stateS3FastAnkleAngle(input_value));
state       = [stateS3FastAnkleAngle(input_value);NaN*ones(ws,n)]; 
here input_value is the input to function stateS3FastAnkleAngle.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



