I want to generate a pulse with high repetition frequency of 1GHz .Initially I used the pulsetran function for gaussian pulse with a repetition frequency of 1khz and i got the output. But when I replaced 1khz with 1 Ghz, it shows vertcat error.pls h

3 views (last 30 days)
https://in.mathworks.com/help/signal/ref/pulstran.html

Answers (1)

charan
charan on 16 Jun 2025
Hi Ashwini,
I understand that you're following the Gaussian pulse example from the "pulstran" documentation and are trying to increase the repetition frequency from 1 kHz to 1 GHz.
The error likely arises from the definition of the offset vector "d". This vector must be a two-column matrix, where the first column contains the pulse time offsets, and the second column contains the corresponding amplitudes (gains).
When you increase the repetition frequency, the number of offset values in the first column increases. If the second column (gains) doesn't have the same number of elements, MATLAB throws a "vertcat" error due to a mismatch in matrix dimensions. To fix the issue, make sure the amplitude (gain) vector matches the number of offset times. You can do this by defining the second column with the same length as the first.

Community Treasure Hunt

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

Start Hunting!