필터 지우기
필터 지우기

What causes an "Argument to dynamic structure reference must evaluate to a valid field name" error please? code attached.

조회 수: 1 (최근 30일)
This is my code. I have matlab error saying "Argument to dynamic structure reference must evaluate to a valid field name. Can anyone see a problem please?
freq=-10:0.01:10;
FT2=(1./(2*pi*freq))*(sin.(2*pi*freq))+(1i*cos(2*pi*freq-1.));
Thank you =)

답변 (1개)

David Young
David Young 2015년 3월 24일
The dot after sin makes it look like a structure rather than a function call. Omit the dot.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by