put index to symbol

How can i put index to the symbols?

1 Comment

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.

Sign in to comment.

Answers (1)

Steven Lord
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

Tags

Asked:

on 18 Oct 2023

Commented:

on 18 Oct 2023

Community Treasure Hunt

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

Start Hunting!