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 close all; clear all; load woman; X=imread('lena256.bmp'); X=double(X); X=X(:,1:2:512); Best Answer 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 ?:http://de.mathworks.com/matlabcentral/answers/181099-q-3-what-does-mean-in-matrix Related SolutionsMATLAB: 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. Have a look here at the answer, or any other previous answered questions regarding 'index exceeds matrix dimensions' problems around this forum.You are trying to access a value in your matrix that does not exists. MATLAB: Optimization Routine for two equations, three unknowns >> [X,Y,Z] = ndgrid(6:12,20:40,100:150);>> mask = (3.6.*X.*Y == 750) & (1.98.*X.*Y.*Z == 800);>> nnz(mask)ans = 0There are no solutions under those constraints. Related QuestionI 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 missingMultiScale Filter BankDWTIDWT
Best Answer