Attempted to access data1(:,1); index out of bounds because size(data1)=[0,0].

  • Thread starter Thread starter Engiman
  • Start date Start date
  • Tags Tags
    Bounds Index
AI Thread Summary
The error "index out of bounds because size(data1)=[0,0]" indicates that MATLAB is not recognizing the data input correctly, likely due to an issue with the data format or loading process. The code works with 6 columns but fails with 8, suggesting a potential problem with how the data is structured or accessed. The suggestion to attach the code aims to identify specific issues in the implementation. Ensuring that the data is correctly loaded and formatted is crucial for resolving this error. Proper debugging and verification of data dimensions will help in addressing the problem effectively.
Engiman
Messages
1
Reaction score
0
Hi,
I am running a code in MATLAB process 8 columns and over 500 rows of data but i get the above error.
With 6 columns, the code works well. Your help is important.
 
Engineering news on Phys.org
It sounds like its not understanding your data since it says the size is [0,0] when it should be [500,8]. Could you attach the code?
 
Hi all, I have a question. So from the derivation of the Isentropic process relationship PV^gamma = constant, there is a step dW = PdV, which can only be said for quasi-equilibrium (or reversible) processes. As such I believe PV^gamma = constant (and the family of equations) should not be applicable to just adiabatic processes? Ie, it should be applicable only for adiabatic + reversible = isentropic processes? However, I've seen couple of online notes/books, and...
I have an engine that uses a dry sump oiling system. The oil collection pan has three AN fittings to use for scavenging. Two of the fittings are approximately on the same level, the third is about 1/2 to 3/4 inch higher than the other two. The system ran for years with no problem using a three stage pump (one pressure and two scavenge stages). The two scavenge stages were connected at times to any two of the three AN fittings on the tank. Recently I tried an upgrade to a four stage pump...

Similar threads

Replies
4
Views
6K
Replies
11
Views
3K
Replies
1
Views
2K
Replies
2
Views
2K
Replies
3
Views
3K
Replies
3
Views
3K
Back
Top