Add an expression to the result
1 view (last 30 days)
Davide Masiello on 4 Feb 2022
fprintf('The height of the image is %d\n', row)
fprintf('The width of the image is %d\n', column)
Rik on 4 Feb 2022
Appart from the other answer providing you with a solution to your question (i.e. to use fprintf), there is another issue:
im=imread('peppers.png');%read an example image
See the value of column?
This behavior is documented. Read the documentation for the size function to learn how to get around this.