/ concept-collection / seqlab
Sign in
concept-collection / seqlab
seqlab / src / engine / pulseq / +mr / +aux / containers_map_lookup_ex.m
10 lines · 259 BBlameHistoryRaw
1function out = containers_map_lookup_ex(map,key,fallback)
2%CONTAINERS_MAP_LOOKUP this function simulates the missing
3%containers.Map.lookup() function using try-catch clause
4 try
5 out=map(key);
6 catch
7 out=fallback;
8 end
9end
moveopenescclose