MATLAB Answers

Lablepoints create name with variable

1 view (last 30 days)
Nik Rocky
Nik Rocky on 4 Jul 2020
Commented: Nik Rocky on 4 Jul 2020
Hello,
simple question:
SNR =
-30 -15 0 15 30
I want:
SNR_Name =
'SNR = -30' 'SNR = -15'......
to put it in lablepoits function
how can I do it? strcat dont helps.

  0 Comments

Sign in to comment.

Accepted Answer

madhan ravi
madhan ravi on 4 Jul 2020
SNR_Name = compose('SNR = %d', SNR)

  1 Comment

Nik Rocky
Nik Rocky on 4 Jul 2020
You make my life better, thank you!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!