Index in position 2 exceeds array bounds (must not exceed 1).
8 views (last 30 days)
Show older comments
Chaudhary P Patel on 19 Aug 2019
for elem=1:ne %Calling elements
Chris on 19 Aug 2019
Your first line is making "elem" a scalor but the if test is using it as a martix; this does not work.
Find more on Resizing and Reshaping Matrices 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!