MATLAB: Error using imshow function

imshow

Hi I keep receiving this error when I try to use imshow. Thanks for your help
This is one of the examples where I am having problems-
tiffimage=imread('20200522_AnalyticMS_clip.tif');
subplot(2,2,1), imshow (tiffimage);
Error using images.internal.imageDisplayParseInputs
Attempt to execute SCRIPT imageDisplayParseInputs as a function:
C:\Users\admin\OneDrive\toolbox\matlab\images\+images\+internal\imageDisplayParseInputs.m
Error in imshow (line 253)
images.internal.imageDisplayParseInputs({'Parent','Border','Reduce'},preparsed_varargin{:});

Best Answer

Your MATLAB, which has been installed on OneDrive, is corrupt, and would need to be reinstalled.
Note: installing MATLAB on OneDrive is risky, due to the buffering behaviour of OneDrive. It is not uncommon for people to find that they need to copy files from OneDrive into local space, work on them locally, and then copy them back if they wrote to them.