This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % which the value was found. If no structure is found, an empty structure % and index of 0 will be returned. % for i = 1:length(str) foundat(i) = isequal(str(i).(field),value); end outstr = str(foundat); index = find(foundat); if isempty(index) index = 0; end...
View Full Document
- Spring '08