FAQ Database Discussion Community

Why black surf from this Matlab command?

Code tfr = abs ( tfr ); [row_size, column_size] = size(tfr); tfr = tfr(1:round(row_size/2), 1:row_size); surf(tfr); view(2); I get in R2014b of OSX 10.10.3 Yosemite but rotating around shows that the cells should not be black Why is the output black? I wonder if this is a hardware problem or...

compute S transform and its square value in matlab

let us consider following code taken from http://www.mathworks.com/matlabcentral/fileexchange/45848-stockwell-transform--s-transform-/content/stran.m to compute S transform, here is my code function ST=stran(h) % Compute S-Transform without for loops %%% Coded by Kalyan S. Dash %%% %%% IIT Bhubaneswar, India %%% [~,N]=size(h); % h is a 1xN one-dimensional series nhaf=fix(N/2); odvn=1; if nhaf*2==N; odvn=0; end...