what does A(~A) mean?
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hussein Dadashi
am 9 Nov. 2016
Kommentiert: Hussein Dadashi
am 9 Nov. 2016
Hi
could someone tell me what does following code mean please?
A(~A)=inf; %A is a vector with zero and non-zero numbers.
Best,
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 9 Nov. 2016
It works out the same as
A(A~=0) =inf
Which is to say that it replaces all nonzero entries with infinity.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!