필터 지우기
필터 지우기

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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by