フィルターのクリア

how to replace value of matrix elements

1 回表示 (過去 30 日間)
vittorio calbucci
vittorio calbucci 2018 年 2 月 14 日
I would like to change the value of some elements of a matrix following a specific rule. I particular if a value is greater than a threshold i want to assign a value 1. If tried with this code but doesn't work. A is the matrix
if A(:,:) > Threshold A(:,:)=1 end
suggestions?

回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by