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

2 visualizaciones (últimos 30 días)
% 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 comentarios
Sriram Tadavarty
Sriram Tadavarty el 14 de Mzo. de 2020
Your code doesn't error when run. Can you once try the example in the documentation page here
Walter Roberson
Walter Roberson el 14 de Mzo. de 2020
Editada: Walter Roberson el 14 de Mzo. de 2020
Notice that requires the Signal Processing Toolbox.
There is also sinc() in the Symbolic toolbox.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by