Hi - I expect this is quite a simple question.
What are fortran structures? I'm trying to convert fortran code into MATLAB and I don't know what a structure / endstructure statement is.
e.g.
structure /pixel/
union
map
INTEGER*4 cl
INTEGER*4 rw
endmap
map
INTEGER*4 x
INTEGER*4...
f2matlab http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=5260&objectType=file
I have since emailed the author of the code and he has replied with a fix for the problem.
but also said that my code contains structures which f2matlab cannot handle
temp3 = Empty matrix: 1-by-0
The code I am using has been tried and test by thousands of people - you can download from the MATLAB website.
But for some reason I am getting this error with some of the code I am using.
neurocomp2003 - yes I have tried this and it is temp2=temp3(1)-1 that is the problem.
print temp3 = 0.
still trying to figure out why temp3 is zero... back to the code
It is throwing up the error on this line of code:
temp3=temp3(temp3>temp4); temp2=temp3(1)-1;
what does temp3(temp3>temp4) mean?
Sorry about all these stupid questions :frown:
Thanks.
It is strange because the program will work fine with some fortran code I have, but then not with other code. I just don't know why! Back to pulling my hair out...
Hi,
I am using a Matlab program called f2matlab, which converts fortran 90 code to MATLAB code.
But I keep on getting the following error:
Attempted to access temp3(1); index out of bounds because numel(temp3)=0.
Does anyone know what this error relates to? :rolleyes:
Thanks in...