repo.or.cz
/
wrf-fire-matlab.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
compare_fire_area.m also diffs ros
[wrf-fire-matlab.git]
/
quicwind
/
flat.m
blob
1494ee1a7a90adf5b1e5f494c92a9cc7ce3d1b86
1
function y=flat(fun,x,nn,varargin)
2
% y=flat(fun,x,nn)
3
% y=flat(fun,x,nn,a,...)
4
% reshape x to nn execute fun and flatten the result
5
% f can have additional arguments given at the end
6
xx=reshape(x,nn);
7
y=fun(xx,varargin{:});
8
y=y(:);
9
end