Why i am getting this error ...? please help
Show older comments
Subscripted assignment dimension mismatch.
Error in lens (line 40) FINAL_INTENSITY(i,dex)=(INTENSITY_IN_MLA(i,index).*transmitance)/100;
Answers (1)
James Tursa
on 9 Jul 2015
Type the following at the MATLAB prompt:
dbstop if error
Then run your code. When the error occurs the program will pause in the debugger. You can then examine your variables to see what the sizes are and why you are getting the error. That will allow you to back trace through the code to see why the dimensions are not as expected.
1 Comment
MAINUL ALAM
on 9 Jul 2015
Categories
Find more on Debugging and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!