필터 지우기
필터 지우기

Undefined function 'symsum' for input arguments of type 'double'. for terahert band system model

조회 수: 2 (최근 30일)
I am trying to code a system model in the terahertz band
This is my code and I have this error
Undefined function 'symsum' for input arguments of type 'double'.
close all; clear all;
clc
freq = 275*10^9;
eta = 4;
c= 3*10^8;
gt=10^5.5;
gr=gt;
d=30;
lambda = c/freq;
k=THz_Pathloss(freq);
path_gain_thz= ((c*sqrt(gt*gr))./(4*pi*freq*d)).*exp(-0.5*k*d); % hL = hAL * hFL
signal_bw = 10*10^9;
noise_psd = 3.8*10^(-17);
noise_power = noise_psd*signal_bw;
signal_power_dbm= -20:10:60;
signal_power_lin = 10.^(signal_power_dbm/10)*10^(-3);
power_noise_ratio_db = 20:10:60; %signal_power_dbm-noise_power_dbm;
power_noise_ratio = 10.^(power_noise_ratio_db/10);
cc=symsum(signal_bw,6)*log2*{1+ (2/noise_psd*k)};
Undefined function 'symsum' for input arguments of type 'double'.
Error in Energy_Model_WSNN (line 19)
cc=symsum(signal_bw,6)*log2*{1+ (2/noise_psd*k)};

채택된 답변

Sharmin Kibria
Sharmin Kibria 2021년 6월 25일
Hi,
If you are calling symsum with two inputs, the first input has to be a symbolic expression. As you are entering signal_bw as a numeric, the function is erroring out. Please refer to the documentation below for proper format of input arguments.
Thanks
Sharmin

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by