Borrar filtros
Borrar filtros

how to do rising and falling edge in single signal using signal builder..?

75 visualizaciones (últimos 30 días)
VINAY
VINAY el 29 de Jul. de 2024 a las 16:25
Comentada: VINAY el 1 de Ag. de 2024 a las 5:13
  7 comentarios
VINAY
VINAY el 31 de Jul. de 2024 a las 8:15
i need to do like this, image i sent above

Iniciar sesión para comentar.

Respuesta aceptada

Aquatris
Aquatris el 31 de Jul. de 2024 a las 10:27
Movida: Sam Chak el 31 de Jul. de 2024 a las 11:23
Click on Signal->ReplaceWith or New->Square and play with the points.
Alternatively, click on Signal->Custom-> enter your time and signal values

Más respuestas (1)

Shubham
Shubham el 30 de Jul. de 2024 a las 18:40
Hi Vinay,
To create a signal with rising and falling edges using the Signal Editor in MATLAB, you can follow these steps:
1. Define the Time and Data Vectors
First, define the time and data vectors in MATLAB:
% Define time vector
time = [0, 1, 2, 3, 4, 5];
% Define data points for rising and falling edges
data = [0, 1, 1, 0, 0, 1];
2. Create a timeseries Object
Create a timeseries object using the defined vectors:
% Create a timeseries object
ts = timeseries(data, time);
3. Save the timeseries Object to a MAT File
Save the timeseries object to a MAT file, which can be imported into the Signal Editor:
% Save the timeseries object to a MAT file
save('my_signal.mat', 'ts');
4. Open the Signal Editor
Open the Signal Editor:
signalEditor
5. Import the timeseries Object in Signal Editor
In the Signal Editor, follow these steps to import the timeseries object:
  1. Open the Signal Editor:
  • Run the signalEditor command in MATLAB to open the Signal Editor.
2. Import the MAT File:
  • In the Signal Editor, go to File > Import.
  • Select MAT-file as the import source.
  • Browse to the location where you saved my_signal.mat and select it.
  • Follow the prompts to import the timeseries object.
3. Visualize and Edit the Signal:
  • Once imported, you should see the signal in the Signal Editor.
  • You can now visualize and edit the signal as needed.
Here is the screenshot obtained by running the above mentioned code:

Categorías

Más información sobre Create Signal Data for Simulation en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by