Not able to write the image by reading xcel files generated , getting error of data type as shown in picture attached. Anybody please help.
1 view (last 30 days)
Walter Roberson on 5 Jan 2022
You cannot do that. The result of imagesc is an OOP object, and OOP objects cannot be written to excel files.
Perhaps for your purposes it would be good enough to change
z = imagesc(n);
z = rescale(n);
Constantino Carlos Reyes-Aldasoro on 4 Jan 2022
This is not very clear, it would be better to copy the code instead of figures and provide a sample file so that the case can be reproduced. However, there is a clear error in the following:
When you do z=imagesc(n) you are using z as a handle to the image that will be generated with imagesc, for instance:
Clearly that is not what you want to save as an excel file.