Error, Index in position 2 exceeds array bounds!!
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
zainab malik
el 14 de Sept. de 2018
Comentada: Walter Roberson
el 14 de Nov. de 2018
When I start loading my text file I get this error how to resolve? the text file is attached. And I am getting this error :
Index in position 2 exceeds array bounds.
Error in damping (line 12) freq=dm(:,1);
close all
clear all
% LOAD DATA OBTAINED FROM FEA ANALYSIS load Sp.txt; dm= Sp; freq=dm(:,1); amp=dm(:,2);
1 comentario
Respuesta aceptada
Adam Danz
el 14 de Sept. de 2018
My bet is that dm is empty which would imply either that your Sp.txt document is empty or it's not loading correctly.
dm = [];
dm(:,1)
Index in position 2 exceeds array bounds.
7 comentarios
Walter Roberson
el 14 de Nov. de 2018
Sorry, just noticed the content of the question now. The original file is in UTF 16 Little Endian encoding.
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import and Analysis en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!