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,:)];
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.
Answers (1)
Walter Roberson
on 13 Mar 2013
0 votes
The variable "y" is the output variable. Whatever is written into "y" will be returned from the function.
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!