What, variable y is doing in this program? function [y] = symextend(x,Nnum) y(:,1:Nnum) = fliplr(x(:,1:Nnum)); y = [fliplr(x(:,1:Nnum)) x x(:,end:-1:end-Nnum+1)]; y = [flipud(y(1:Nnum,:)); y ;y(end:-1:end-Nnum+1,:)];
1 view (last 30 days)
Show older comments
What, variable y is doing in this program?
function [y] = symextend(x,Nnum)
y(:,1:Nnum) = fliplr(x(:,1:Nnum));
y = [fliplr(x(:,1:Nnum)) x x(:,end:-1:end-Nnum+1)];
y = [flipud(y(1:Nnum,:)); y ;y(end:-1:end-Nnum+1,:)];
I'm doing project on image processing, kindly give me some suggestions.
0 Comments
Answers (1)
Walter Roberson
on 13 Mar 2013
The variable "y" is the output variable. Whatever is written into "y" will be returned from the function.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!