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)};
0 件のコメント
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!