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

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 commentaires

What does "assign in ascii format" mean? Do you want to show labels in a plot?
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 le 24 Mai 2018
Modifié(e) : Jan le 24 Mai 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?

Connectez-vous pour commenter.

Réponses (1)

Robert U
Robert U le 24 Mai 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

Catégories

En savoir plus sur Matrices and Arrays dans Centre d'aide et File Exchange

Modifié(e) :

Jan
le 24 Mai 2018

Community Treasure Hunt

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

Start Hunting!

Translated by