Problem with defining size of a matrix
1 view (last 30 days)
Show older comments
I am trying to define the size of the matrix A, but it reports an error. I searched on Google for this algorithm, and I'm following the exact same procedure. I dont't know what happened.
Thanks in advance for your help!
0 Comments
Accepted Answer
Adam Danz
on 18 Feb 2019
Edited: Adam Danz
on 18 Feb 2019
The error is coming from a function (or m-file) named "Q2". Perhaps the "myCGS()" function is stored in an m-file named "Q2"? Your function name should match your mfile name. Also, the name "Q2" is a really bad function name.
In any case, you are probably not passing an input argument to the function. If you run that function without an input argument, you'll get exactly that error.
2 Comments
Adam Danz
on 19 Feb 2019
You can call the function from the command window or from within another function or script. The input you suggested above should satisfy the error.
To test the function, it might be easiest running the code with the 'A' matrix from the command window.
More Answers (0)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!