In this case, q is a 1x4 structure array, but it could be 4x1 if it makes things easier.
vals and Xv are row vectors, but they could be column vectors if it make things easier.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!