What is the meaning of ":"?
46 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
HI, this is part of the code that I'm studying about. But I do not quite understand what does each line mean.
Can I ask what does ":" mean?
for example 1:m and -xw:xw
function f=asmf(x)
[m n]=size(x);
a=x;
fl(1:m,1:n)=1;
mw=5;
for i=1:m
for j=1:n
cond=1;
xw=1;
while(cond==1)
co=0;
for k=-xw:xw
for l=-xw:xw
0 Commenti
Risposta accettata
madhan ravi
il 6 Lug 2020
doc colon
3 Commenti
Steven Lord
il 7 Lug 2020
It's a call to the min function the output of which is subtracted from element (i, j) of the array a.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!