Statistics
MATLAB Answers
0 Questions
1 Answer
RANK
4,947
of 301,664
REPUTATION
10
CONTRIBUTIONS
0 Questions
1 Answer
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
3
RANK
of 21,377
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 176,019
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Discussions
AVERAGE NO. OF LIKES
Feeds
Answered
Write a function called GenMatBorder that takes an n x m array of numbers and produces an array called OutMat, which replaces the top row, bottom row, left column, and right column of the input array with zeros. Use logic indexing.
function [outMat] = GenMatBorder( inMat ) inMat([1,end],:) = 0 inMat(:,[1,end]) = 0 outMat = inMat end
Write a function called GenMatBorder that takes an n x m array of numbers and produces an array called OutMat, which replaces the top row, bottom row, left column, and right column of the input array with zeros. Use logic indexing.
function [outMat] = GenMatBorder( inMat ) inMat([1,end],:) = 0 inMat(:,[1,end]) = 0 outMat = inMat end
6 years ago | 3

