필터 지우기
필터 지우기

Why do I get "Argument to dynamic structure reference must evaluate to a valid field name" error please? code attached.

조회 수: 1 (최근 30일)
My code:
Nf= 471913097;
DI_year = (sum(ESAL_year)/Nf)*100;
DI_6months = (sum(ESAL_6months)/Nf)*100;
DI_3months = (sum(ESAL_3months)/Nf)*100;
DI_1month = (sum(ESAL_1month)/Nf)*100;
DI_2weeks = (sum(ESAL_2weeks)/Nf)*100;
DI_1week = (sum(ESAL_1week)/Nf)*100;
DI= [DI_year;DI_6months;DI_3months;DI_1month;DI_2weeks;DI_1week];
FC= (1/60)*(6000/(1+exp.(4.96711-2.48356.*log10(DI.*100))));
  댓글 수: 4

댓글을 달려면 로그인하십시오.

채택된 답변

madhan ravi
madhan ravi 2018년 11월 15일
편집: madhan ravi 2018년 11월 15일
instead of
FC= (1/60)*(6000/(1+exp.(4.96711-2.48356.*log10(DI.*100))));
^-------causes error
should be
FC= (1/60)*(6000./(1+exp(4.96711-2.48356.*log10(DI.*100))));
^---------added dot here after sir Walters comment
  댓글 수: 6
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD 2018년 11월 15일
Yes I will do, Thank you for your help, and thanx to Mr Walter as usual

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by