Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

what is the error 'Index exceeds matrix dimensions.'

3 views (last 30 days)
sara shirafkan
sara shirafkan on 28 Nov 2020
Closed: MATLAB Answer Bot on 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.

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!