⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 show_basis.m

📁 A set of C++ and Matlab routines implementing the surfacelet transform surfacelet的一个非常好用的工具箱
💻 M
字号:
%% Display the 2-D basis image
%%
%% f: 2-D signal
%% K: resolution of the basis image
%% h: axes on which we plot.

function show_basis(f, N, h);

MaxVal = max(abs(f(:)));
[R, C] = find(abs(f) == MaxVal);

f = f ./ MaxVal;

f = f(R(1) - N / 2 + 1 : R(1) + N / 2, C(1) - N / 2 + 1 : C(1) + N / 2);
dx = [-1 + 2/N : 2/N : 1];
dy = dx;

val = mesh(h, dy, dy, f);
axis([-1 1 -1 1 -1 1]);
view(0,90);
axis equal;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -