extract data from a composed figure

3 visualizaciones (últimos 30 días)
Gabriel Huayllani Flores
Gabriel Huayllani Flores el 30 de Nov. de 2022
Respondida: Nipun el 6 de Nov. de 2023
Hi! My name is Gabriel!
So I have a working program that can recreate a signal depending on angles and time. But for a specific pair (source:26 and recaiver: 9) I can detect at least 2 signals.
So I want the program to plot both the curves that differs in time, because its two signals.
How shall tell that to the program?

Respuestas (1)

Nipun
Nipun el 6 de Nov. de 2023
Hi Gabriel,
I understand that you want to plot two curves under a single title that differ in time on x-axis. I assume that both plots need to be under one figure. I also assume that you wish to understand how to access individual plot properties to get series mutable data and axes configuration.
MATLAB offers a variety of tools to access plot details. You may use axes object or children parameter to access object properties. Refer to the link for details: Display Graphics in App Designer - MATLAB & Simulink - MathWorks India
Now if you have an axes object that you want to manipulate, say change the xticks, it can be done as under:
xticks(0:5:20); % 0,5,10,15,20 will be plotted
xlim([max min]); %to set the max and min value
You may also consider multiple plotting on a same figure using multiple axes on a single plot. Refer to this link Display Data with Multiple Scales and Axes Limits - MATLAB & Simulink - MathWorks India for further details. Section display data on multiple x-axes and y-axes should help with your query.
Hope this helps.
Regards,
Nipun

Categorías

Más información sobre Labels and Annotations en Help Center y File Exchange.

Productos


Versión

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by