I am getting Error using * MTIMES (*) is not fully supported for integer classes. At least one argument must be scalar.

I have this code below and this error message appears
Error using *
MTIMES (*) is not fully supported for integer classes. At least one argument must be scalar.
Image1= imread('Coleen_Gray_in_Kansas_City_Confidential.jpg');
row=size(Image1,1);
Num=(randi(255,row));
En1=NumCod1*(Image1);
I tried using 'double ' but the values ​​in Image1 changed, I hope to help me solve this problem.
Image1= double(imread('Coleen_Gray_in_Kansas_City_Confidential.jpg'));

Risposte (0)

Categorie

Scopri di più su Convert Image Type in Centro assistenza e File Exchange

Tag

Richiesto:

il 26 Feb 2020

Community Treasure Hunt

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

Start Hunting!

Translated by