Set lower than 0.1 values to zero in tables that stored in a cell

2 views (last 30 days)
BN
BN on 28 May 2020
Commented: BN on 28 May 2020
Dear all,
In a 1x3 cell containing three (28x6) tables; inside tables how I can set each value that lower than 0.1 to zero in a1 and a2 columns (names of columns are a1 and a2) of all tables?
Thank you all

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 28 May 2020
In general, this is how you do it. Apply it to a table inside a cell should not be that difficult.
a=rand(3,5);
index=a<0.5;
a(index)=0
  3 Comments

Sign in to comment.

More Answers (0)

Products


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!