Undefined function 'rectpulse' for input arguments of type 'double'. How can i fix this??????

Im stuck please help

4 commentaires

r = randi([0 1], 1, 100);%a randi functin to generate a sequence of 100 random bits (0 or 1)
s = rectpulse(r,100);%rectangular pulse, where r is the row vector representing the random bits
time = [10^-9:10^9:10^-6];
figure(6);%plots graph 6
plot(time, s);%plots time against s
title('the waveform vs time - 2021198');
The rectpulse funciton is part of the Communications Toolbox. It must be liensed and installed.
There is a similar rectpuls function in the Signal Processing Toolbox.
Thank you for letting me know

Connectez-vous pour commenter.

Catégories

En savoir plus sur Communications Toolbox dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by