フィルターのクリア

how to overcome undefined function sum.

3 ビュー (過去 30 日間)
Prabha Kumaresan
Prabha Kumaresan 2017 年 12 月 29 日
編集済み: Matt J 2017 年 12 月 29 日
throughput_E =@(t)Bmax*log2(1+p_fix(t)*gamma(t)/sum(p_fix(q,1,t-1).*gamma(t)));
overall_throughput_E = sum(sum(throughput_E));
If i run the code i am getting Undefined function 'sum' for input arguments of type 'function_handle'.
Error in overall_throughput_E = sum(sum(throughput_E));
  4 件のコメント
KSSV
KSSV 2017 年 12 月 29 日
:( what is p_fix.....show us this function.
Prabha Kumaresan
Prabha Kumaresan 2017 年 12 月 29 日
p_fix is the fixed power which was given by 0.01 .

サインインしてコメントする。

回答 (1 件)

Matt J
Matt J 2017 年 12 月 29 日
編集済み: Matt J 2017 年 12 月 29 日
You need to give some sort of input to throughput_E in this line
sum(sum( throughput_E( t_input) ));
  3 件のコメント
Prabha Kumaresan
Prabha Kumaresan 2017 年 12 月 29 日
編集済み: Walter Roberson 2017 年 12 月 29 日
i am getting the error
Undefined function or variable 't_input'
if i use sum(sum( throughput_E( t_input) ));
and if i use
sum_of_throughput_E = @(inp) sum(sum(throughput_E(inp)));
in the below coding
throughput_E = @(t)Bmax*log2(1+p_fix(t)*gamma(t)/symsum(p_fix(q,1,t-1).*gamma(t)))
% overall_throughput_E = sum(sum(throughput_E(t_input)));
overall_throughput_E = sum(sum(throughput_E));
sum_of_throughput_E = @(inp) sum(sum(throughput_E(inp)));
%
output_E(t,r)=overall_throughput_E;
output_E_it(t,r,it)=output_E(t,r);
i am getting Undefined function 'sum' for input arguments of type 'function_handle'.
Error in
overall_throughput_E = sum(sum(throughput_E));
Please help me to solve it.
Matt J
Matt J 2017 年 12 月 29 日
編集済み: Matt J 2017 年 12 月 29 日
Undefined function or variable 't_input'
You must define t_input! What data are you trying to run throughput_E on?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSparse Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by