How to fix "Undefined function of 'sinc' for input arguments of 'double' type"
Show older comments
% 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
Sriram Tadavarty
on 14 Mar 2020
Your code doesn't error when run. Can you once try the example in the documentation page here
Walter Roberson
on 14 Mar 2020
Edited: Walter Roberson
on 14 Mar 2020
Notice that requires the Signal Processing Toolbox.
There is also sinc() in the Symbolic toolbox.
Answers (0)
Categories
Find more on Modulation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!