how can add lamda value to matrix in image processing?

조회 수: 4 (최근 30일)
Noor Abbas
Noor Abbas 2021년 1월 21일
댓글: Noor Abbas 2021년 1월 27일
How can add lamda to matrix in image processing ?
I have lamda value, and I need to add it to the matrix, all Z,H,B ,A are matrixs
lamda=0.6;
Z= lamda+H*lamda^(-1)*B+lamda+A;
is that right?
  댓글 수: 3
Noor Abbas
Noor Abbas 2021년 1월 25일
is it possible to add or divide number like(9 or 0.6) to the matrix(250*250)?
or should be add matrix to matrix not number to matrix?
Noor Abbas
Noor Abbas 2021년 1월 27일
thanks for every one

댓글을 달려면 로그인하십시오.

채택된 답변

Aghamarsh Varanasi
Aghamarsh Varanasi 2021년 1월 25일
편집: Aghamarsh Varanasi 2021년 1월 25일
Hi,
You can add a scalar ("lamda") to a matrix by using the '+' operator. Note that this addes 'lamda' to all the elements of the matrix. Refer to this documentation for more details.
You can even multiply or divide a matrix with a constant.
For more details on arithmetic operators in MATLAB refer to this documentation page.

추가 답변 (0개)

제품

Community Treasure Hunt

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

Start Hunting!

Translated by