i am executing this piece of code and getting the error" X=X(:,1:2:512); Index exceeds matrix dimensions." help me to solve it.

2 ビュー (過去 30 日間)
close all; clear all; load woman; X=imread('lena256.bmp'); X=double(X); X=X(:,1:2:512);

採用された回答

Stephen23
Stephen23 2015 年 3 月 4 日
編集済み: Stephen23 2015 年 3 月 4 日
run this into your script/command window:
size(X)
what is the size of X ? Does it have three dimensions ? Are you trying to select an index for an array location that does not exist?
Did you understand the answer to your previous questions about array dimensions ?:
  2 件のコメント
tina jain
tina jain 2015 年 3 月 4 日
i am sorry that i troubled you. actually i am working on a project. i am a beginner thatswhy getting such kind of problems.
Stephen23
Stephen23 2015 年 3 月 4 日
It is no trouble for me: I come to this forum to help people with their problems.
If you answered my questions, we could probably figure out exactly what was happening in this situation.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by