필터 지우기
필터 지우기

Help explain a code

조회 수: 1 (최근 30일)
liu James
liu James 2016년 12월 14일
답변: Adam 2016년 12월 14일
Can someone help explain a portion of a code? I understand that strcmp is comparing two items, but within the whole structure of the coding the variables its calling I do not find nor can I find help on some of the other portions of the code. Example, the usage of @ for @(string)and @(cell_contents).
cellfind = @(string)(@(cell_contents)(strcmp(string,cell_contents)));
idx1 = find(cellfun(cellfind(symbol),u));

채택된 답변

Adam
Adam 2016년 12월 14일
The @ syntax is used for variable input arguments to a function handle as a placeholder for when the real argument gets passed in.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by