Borrar filtros
Borrar filtros

Plotting Error > Index exceeds matrix dimensions

1 visualización (últimos 30 días)
Slarn
Slarn el 23 de Mzo. de 2014
Comentada: Walter Roberson el 23 de Mzo. de 2014
May i know why do i keep getting this error > ??? Index exceeds matrix dimensions.
Previously im using
>> plot(delta_diff(110:870,490),'XData',[0:(D*1000)/760:(D*1000)])
and it was working fine. but once i changed the range as below. it start to give me error.
Error in ==> four_step_polarimetry at 86
plot(delta_diff(230:990,610),'XData',[0:(D*1000)/760:(D*1000)])
figure
plot(delta_diff(230:990,610),'XData',[0:(D*1000)/760:(D*1000)]);
title('Plotting of Delta (No Residual Stress)')
xlabel('Distance(mm)');
ylabel('Delta(3kg)');
figure_FontSize=12;
set(get(gca,'XLabel'),'FontSize',figure_FontSize,'Vertical','top');
set(get(gca,'YLabel'),'FontSize',figure_FontSize,'Vertical','middle');
set(findobj('FontSize',10),'FontSize',figure_FontSize);
set(gca,'tickdir','in')
set(gca,'ticklength',[0.01 0.01]);
axis on
  4 comentarios
Slarn
Slarn el 23 de Mzo. de 2014
Editada: Slarn el 23 de Mzo. de 2014
i uploaded the script for your reference. below was the commands before the error
delta = imfilter(delta,h);
delta_diff =delta - o_delta;
figure;imshow(delta,[0,0.6]);axis off,colorbar
colormap(jet)
axis on
figure;imshow(delta_diff,[]);axis off,colorbar
colormap(jet)
axis on
Walter Roberson
Walter Roberson el 23 de Mzo. de 2014
We are not given information about the sizes of the images, so we cannot calculate the sizes of delta_diff . It would be much easier if you were to tell us what the size of delta_diff is... as well as teling us why column 610 exactly should be the one that is to be used.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by