I am using MATLAB R2010b and I can’t understand what is wrong with matlab…
>> SSS = simpleseries_dataset;
>> [X,T] = SSS;
>> ???Too many output arguments.
but next code is good:
>> [X,T] = simpleseries_dataset;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
simpleseries_datasetis a function; functions can have multiple outputs – if you typeedit simpleseries_dataset, you can see the function definition:When you run your first line of code, you have a single output variable – so
inputsis stored inSSSandtargetsis discarded; assigning the output of a multiple output function to a single variable is equivalent to doing:so if you want to keep both of the output values from
simpleseries_dataset, you have to call the function with two outputs.