put index to symbol
Show older comments
How can i put index to the symbols?
1 Comment
Dyuman Joshi
on 18 Oct 2023
Which symbols? Are you plotting something?
You need to elaborate more on what you are doing, what are you working with and what is it that you want to achieve/obtain.
Make it easy for us to help you.
Answers (1)
Steven Lord
on 18 Oct 2023
1 vote
It's not clear to me exactly what you're asking, but as a guess if you're asking if you can you dynamically create variables with numbered names like x1, x2, x3, etc.? Yes.
Should you do this? The general consensus is no. That Answers post explains why this is generally discouraged and offers several alternative approaches.
Categories
Find more on Mathematics 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!