phase value are in range of 0 to pi. how can i convert them to range of 0-256
2 views (last 30 days)
Show older comments
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 Comments
Answers (1)
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.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!