Global Threshold on the Excel File
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Amira Ramli
el 13 de Ag. de 2020
Comentada: Amira Ramli
el 22 de Ag. de 2020
Hello everyone.
I have a grid excel file with 300x300 pixels (cell). Each pixel represents different intensity value range from 0 to 0.1. I would like to threshold this grid so that any pixel value lower than 0.04 will be equal to 0. Does anyone know how to do that.
Thank you.
0 comentarios
Respuesta aceptada
Cris LaPierre
el 13 de Ag. de 2020
I'm assuming you've loaded the file into MATLAB. Use logical indexing to set any value less than 0.04 equal to zero.
Data(Data<0.04)=0;
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!