Statistica
MATLAB Answers
0 Domande
1 Risposta
RANK
4.781
of 301.994
REPUTAZIONE
10
CONTRIBUTI
0 Domande
1 Risposta
ACCETTAZIONE DELLE RISPOSTE
0.00%
VOTI RICEVUTI
3
RANK
of 177.967
CONTRIBUTI
0 Problemi
0 Soluzioni
PUNTEGGIO
0
NUMERO DI BADGE
0
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Feeds
Risposto
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
oltre 6 anni fa | 3

