Commit 83fd7820 authored by Jesse Heckman's avatar Jesse Heckman
Browse files

lookup function

parent f2971ce0
......@@ -6,17 +6,20 @@ function array = pb_lookup(array, varargin)
% See also ...
% PBToolbox (2018): JJH: j.heckman@donders.ru.nl
fn = pb_keyval('fn',varargin,[]); [~,sheets] = xlsfinfo(fn);
sheet = pb_keyval('sheet',varargin,sheets{end});
if nargin == 0; return; end
tmp = array;
if isempty(fn); return; end
for i = numel(ledArray)
tmp(i) = lookup();
[num,~,~] = xlsread(fn,sheet);
for i = 1:numel(array)
array(i) = num(num(:,1)==array(i),2);
end
end
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
% %
% Part of Programmeer Beer Toolbox (PBToolbox) %
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment