close all; clear all; load woman; X=imread('lena256.bmp'); X=double(X); X=X(:,1:2:512);

# MATLAB: 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.

matrix

###### Related Question

- I am executing the code below and getting the error”Index exceeds matrix dimensions. Error in principale_peppers (line 7) g=X(:,:,2)/255″ can anyone help.
- Optimization Routine for two equations, three unknowns
- I am trying to plot y=x^2sin(x), where x is from 0 to 2pi. I have defined x using the linspace command, but matlab does not agree with the (x.^2) part. Is there a concept I am missing
- MultiScale Filter Bank
- DWT
- IDWT

## Best Answer