Answers (1)

madhan ravi
madhan ravi on 29 Jan 2019
Edited: madhan ravi on 29 Jan 2019
Did you check the output first?
Val=[double(logical(1:5)) 0] % double converts other classes to double and the array at the end is padded with zero
doc double % read it

Categories

Find more on Convert Image Type in Help Center and File Exchange

Edited:

on 29 Jan 2019

Community Treasure Hunt

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

Start Hunting!