Filter löschen
Filter löschen

Help explain a code

1 Ansicht (letzte 30 Tage)
liu James
liu James am 14 Dez. 2016
Beantwortet: Adam am 14 Dez. 2016
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));

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Workspace Variables and MAT-Files finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by