統計
MATLAB Answers
0 質問
1 回答
ランク
of 182,118
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
Feeds
回答済み
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
7年弱 前 | 3

