MATLAB: Convert logical vector to double conversionconvertdoublelogical?vector Hi all, I'm looking for a way to take a logical vector and convert it to a double in the workspace. How can I do this? I can't seem to find a command to help. Thanks in advance! Best Answer Just simply use double command?a=[true false];%boolean arraydouble(a) Related SolutionsMATLAB: Single array inside cell to double If you want to convert each matrix inside the TEMP cell array to double, then:something = cellfun(@double, TEMP, 'UniformOutput', false); MATLAB: Double to Logical convertion in Simulink Change the settings of the "From File" block. Do not do interpolation or extrapolation.The boolean data type could be saved with the .mat file, so you don't need the data type conversion block. Related QuestionHow to convert int32 to real numberConvert doubleConvert whole code to doubleLogical converting to double for no reason – bug
Best Answer