File Exchange

image thumbnail

idst2(A)

version 1.0.0.0 (507 Bytes) by Koorosh Gobal
Calculate the inverse sine transform of 2D matrix A

1 Download

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 (2020). idst2(A) (https://www.mathworks.com/matlabcentral/fileexchange/49865-idst2-a), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

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