phase value are in range of 0 to pi. how can i convert them to range of 0-256

2 views (last 30 days)
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 .

Answers (1)

Adam
Adam on 10 Jul 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.

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!