cp readslice.R ts_readslice.R
[wrf-fire-matlab.git] / quicwind / fun2mat_test.m
blob9cadfc3bbfc09ec7a5aa0e7af6978d41c1032a6e
1 function err=fun2mat_test
2 disp('fun2mat_test')
3 h=rand(1,3);
4 n=[2,2,3];
5 fun = @(u)cell2vec(grad3z(u,h));
6 g=fun2mat(fun,n);
7 l=rand(n);
8 err=full(big(cell2vec(grad3z(l,h))-g*l(:)))