my matlab shows matrix dimension must agree error

my code is
clc;
close all;
clear all;
I = imread('bp3.jpg');
j = rgb2gray(I);
n=imread('bo6.jpg');
m=rgb2gray(n);
i = j - m ;
figure, imshow(i)
i checked size of j and m and dimensions

Answers (1)

This question is closed.

Asked:

on 24 Jan 2014

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!