phase value are in range of 0 to pi. how can i convert them to range of 0-256
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
i have a result of phase masking . phase values are in range of 0-pi. but as for slm i need them in range of 0-256 how. can convert them .
0 comentarios
Respuestas (1)
Adam
el 10 de Jul. de 2018
Surely just the obvious:
result = input * 256 / pi;
works? Where obviously input is your data from 0-pi and result is what you want to get out as the answer from 0-256.
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!