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)
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 .

Respuestas (1)

Adam
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.

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by