how to insert symbols to an for loop

3 views (last 30 days)
mc18004
mc18004 on 28 Dec 2019
Commented: KALYAN ACHARJYA on 28 Dec 2019
sym a
b = [ ]
for n = 1:5
b (n) = a*n
end

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 28 Dec 2019
Edited: KALYAN ACHARJYA on 28 Dec 2019
  1 Comment
KALYAN ACHARJYA
KALYAN ACHARJYA on 28 Dec 2019
Please read here difference between symbolic and non symbolic variables.

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!