how can add lamda value to matrix in image processing?

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 commentaires

Image Analyst
Image Analyst le 21 Jan 2021
Modifié(e) : Image Analyst le 21 Jan 2021
Which matrix(es) do you want to add it to? Your equation adds it in twice plus it looks like you're doing a matrix multiplication of H and B so I think you're doing this:
Z = (H*B) / lambda + A + 2 * lambda; % Is this what you want?
And what does this have to do with Simulink???
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?
thanks for every one

Connectez-vous pour commenter.

 Réponse acceptée

Aghamarsh Varanasi
Aghamarsh Varanasi le 25 Jan 2021
Modifié(e) : Aghamarsh Varanasi le 25 Jan 2021

0 votes

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.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by