Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

what is the error 'Index exceeds matrix dimensions.'

3 Ansichten (letzte 30 Tage)
sara shirafkan
sara shirafkan am 28 Nov. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
after coding this
clear
clc
n=0
throat_volume=zeros(15625,1)
for k=1:25:601
for j=1:25:601
for i=1:25:601
n=n+1
basefilename=sprintf('Ax_%d_%d_%d_link2.dat',k,j,i)
fullfilename=fullfile(basefilename);
fileID=fopen(fullfilename,'r+')
% fseek(fileID,7,'bof');
sizeA=[8 Inf]
A=fscanf(fileID,'%f',sizeA);
fclose(fileID)
A=A';
throat_volume(n)=mean(A(:,7))
end
end
end
i get this error 'Index exceeds matrix dimensions.'
what is the matter of this code?
please help me.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by