?? dynadecks.m
字號:
function []=dynadecks(X,WW,g,H,nc);
%dynadecks Plots the results of the dynamic reconstruction computed by Dyneit.m
% function []=dynadecks(X,WW,g,H,nc);
% Plots the results of the dynamic reconstruction computed by Dyneit.m
%
% INPUT
%
% X = matrix of the reconstructions
% WW = mapping from sparse to dense mesh (optional, use [])
% g = coordinates of the mesh nodes
% H = connectivity data
% nc = the number of columns in the produced figure
[N,n]=size(X);
N=sqrt(N);
mx=max(max(X));
minx=min(min(X));
if nargin<2,
nc=floor(sqrt(n));
end
nr=nc+ceil((n/nc)-nc);
eps=0.00001;
voffs=0.005;
hoffs=0.005;
colsep=(1/(nc));
rowsep=(1/(nr));
wdt=colsep-1*hoffs;
hgt=rowsep-1*voffs;
i=1:n;
row=nr-1-floor(i/nc-1/nc+eps);
col=fix(nc*((i/nc-1/nc+eps)-floor(i/nc-1/nc+eps)));
for i=1:n,
ax(i)=axes;
set(ax(i),'position',[col(i)*colsep+hoffs row(i)*rowsep+voffs wdt hgt]);
if ~isempty(WW)
Plotinvsol(WW*X(:,i),g,H),set(gca,'climmode','manual')
set(gca,'clim',[minx,mx]),axis('image')
else
Plotinvsol(X(:,i),g,H),set(gca,'climmode','manual')
set(gca,'clim',[minx,mx]),axis('image')
end
end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -