Community Profile

photo

Moshe Flam


Active since 2017

Statistics

  • Thankful Level 1
  • First Answer

View badges

Content Feed

View by

Question


replace only nonzeroes with per-column text and value
I have a vector: data = [11,111; 0,222; 33,0; 0,0; 55,555]; I want a string (or char) array like this: resul...

5 years ago | 1 answer | 0

1

answer

Question


Logical indexing: Find row in table by text in column
a = {'hi', 'bye'; 'don', 'tcry' }; t = array2table(a); u = t(t.a1 == 'don', :); % error: Undefined operator '==' ...

5 years ago | 5 answers | 1

5

answers

Answered
Check if matrix contains zero or not and ...
Here's the short answer: Explained further. C = M{:,find(sum(M == 0))}; % C are the zero cols indice Z = M(:,C) == ...

5 years ago | 0