idst2(A)

Calculate the inverse sine transform of 2D matrix A
114 Downloads
Updated 28 Feb 2015

View License

function out = idst2(A)
% Calculate the inverse sine transform of 2D matrix A
N = length(A) + 1;
U = zeros(N,N);
for i = 1:N
for j = 1:N
holder = 0;
for m = 1:length(A)
for n = 1:length(A)
holder = holder + ...
A(m,n) * ...
sin(pi * m * (i-1) / (N - 1)) * ...
sin(pi * n * (j-1) / (N - 1));
end
end
U(i,j) = holder;
end
end
out = U;

Cite As

Koorosh Gobal (2024). idst2(A) (https://www.mathworks.com/matlabcentral/fileexchange/49865-idst2-a), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0