MATLAB: ‘From Workspace’ block does not support importing matrices of type ‘uint8’

frommatrixsimulinkuint8workspace

I'm having some trouble using the 'From Workspace' block to output data of type 'uint8'. It seems like the block does not accept variables in the base workspace that are of type 'uint8'. One solution would be to use a data type conversion block, but I'd like to avoid this. 
How can I configure the 'From Workspace' block to output 'uint8'? 
 

Best Answer

This is mainly because the 'From Workspace' block can only import matrices that are 'Non-Complex' and of type 'Double'. 
I understand that you are unable to use the 'Data Type Conversion' block, but that would be the simplest workaround at this time.
I have notified our development team of the error you are encountering when trying to import 'uint8' data using the 'From Workspace' block and they will consider providing support for the same in a future release of MATLAB.