How to return an empty matrix?

Considering an image of size 100 X 280. A binary mask of size 7X4. when masking the image with this mask, At the end, Im getting an error that Index exceeds matrix dimensions. For that What can I do? Can I return an empty matrix? If it is possible, how?

 채택된 답변

Walter Roberson
Walter Roberson 2012년 9월 11일

0 개 추천

YourVariable = []; %this is an empty matrix

댓글 수: 1

Sabarinathan Vadivelu
Sabarinathan Vadivelu 2012년 9월 11일
How to mask an image size of 512 X 512 with a mask of size 5X5?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by