How to fix "Undefined function of 'sinc' for input arguments of 'double' type"

% MATLAB script for DSC-SC modulation
clc
clear all
close all
echo on
t0=0.1; % signal duration
ts=0.001; % sampling interval
fs=1/ts; % sampling frequency
fc=250; % carrier frequency
df=1; % desired freq. resolution
t=[0:ts:t0]; % time vector
% message signal
f0=10;
m=sinc(100*t);
Undefined function of 'sinc' for input arguments of 'double' type
Error DSBmod (line 16)
m=sinc(100*t);
How to fix "Undefined function of 'sinc' for input arguments of 'double' type"

2 Comments

Your code doesn't error when run. Can you once try the example in the documentation page here
Notice that requires the Signal Processing Toolbox.
There is also sinc() in the Symbolic toolbox.

Sign in to comment.

Answers (0)

Products

Asked:

on 14 Mar 2020

Edited:

on 14 Mar 2020

Community Treasure Hunt

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

Start Hunting!