Attachment 'select_from_table.m'

Download

   1 function [indices] = select_from_table(table,key,value)
   2 
   3 
   4     candidates = table(strmatch(key,table(:,2),'exact'),:);
   5     if nargin == 2
   6       indices = cell2mat( candidates(:,1) );
   7       return;
   8     end
   9     indices = candidates(strmatch(value, candidates(:,3), 'exact'),1);
  10     indices = cell2mat(indices);

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2010-11-25 14:12:16, 3.5 KB) [[attachment:resid_with_names.m]]
  • [get | view] (2010-11-25 15:20:51, 0.3 KB) [[attachment:select_from_table.m]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.