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