Index in position 1 exceeds array bounds. Index must not exceed 1.
63 views (last 30 days)
Show older comments
Commented: Image Analyst on 17 Jan 2022
Need some help on the coding. Please and Thanks!
per isakson on 17 Jan 2022
Edited: per isakson on 17 Jan 2022
What is your intention with this assignment?
%% Initial condition
T(:,:) = 293; % initial temperature (K)
Matlab makes T a scalar.
In the first iteration
Told = T;
assigns this scalar to Told
In the first iteration the failing statement
references Told(2,2), which throws the error.
Find more on Creating and Concatenating 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!