my matlab shows matrix dimension must agree error
Info
This question is closed. Reopen it to edit or answer.
Show older comments
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)
Azzi Abdelmalek
on 24 Jan 2014
Check the sizes of j and m
size(j)
size(m)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!