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

Im stuck please help

4 Comments

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.

Sign in to comment.

Categories

Find more on Communications Toolbox in Help Center and File Exchange

Tags

Asked:

on 9 Nov 2020

Commented:

on 9 Nov 2020

Community Treasure Hunt

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

Start Hunting!