How to assign ascii type characters to a signal using a foor loop

2 views (last 30 days)
Hello there! i will be thankful if you help me with this. I'm trying to assign labels to a signal. for example if i have a sine function and we segment it by 10 point along the X axis, i don't know how to assign in ascii format "number one" to the point number 1, "number two" to the point number 2 and so on. maybe with a for loop but i don't know how.
Thanks.
  3 Comments
Marcos Rios
Marcos Rios on 24 May 2018
Hi Jan, what am I trying to do is to build a table where the first column is for RMS values of a signal, and the second labels corresponding to a location of the same. Assuming I want to label each RMS value of each peak, as in the figure and save it to enter it in the table.
Jan
Jan on 24 May 2018
Edited: Jan on 24 May 2018
I'm still confused: Does creating the labels in the diagram belong to the problem or is creating the table all you want? Does "table" mean a table object or a cell, text, text file, ...? Again: What does "assign in ascii format" mean?

Sign in to comment.

Answers (1)

Robert U
Robert U on 24 May 2018
Hi Marcos Rios,
as I understand you would like to change the x tick positions and labels. There is a fine example documented on how to do that:
More options/properties that help you to manipulate axes you can find under "axes properties":
Kind regards,
Robert

Community Treasure Hunt

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

Start Hunting!