MATLAB Answers

Length of Array of Symbolic Variables

11 views (last 30 days)
Nathan Batta
Nathan Batta on 24 Jan 2020
Edited: Alex Mcaulley on 24 Jan 2020
Hello! I have an array of several symbolic variables that I want to loop through. However, when I use the length function, it says the length of the array is 1. Does anyone know the issue? Thank you!
  1 Comment
Alex Mcaulley
Alex Mcaulley on 24 Jan 2020
Can you upload your variable in a mat file? It should work
syms a b c d
A = [a;b;c;d];
ans =

Sign in to comment.

Answers (0)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!