I am trying to solve a parabolic PDE with imported 3D geometry. I create the model and everything correctly but I decided to implement on one of the faces a boundary condition that depends on the time. Basically, what it needs to do is for each integer time-step say state.time=k we need to access azimuth(state.time). For this purpose I synchronized the time steps as follows:
nframes = 5; tlist = linspace(1,nframes,nframes);
Previously in the code I have specified the function
where I recall that azimuth is a vector. It gave and error :
"Subscript indices must either be real positive integers or logicals"
I tried just to test whether state.time might not return something different from the time steps included in tlist=linspace(1,nframes,nframes). In doing so I just attempted to apply the ceiling function:
I got the same error:"Subscript indices must either be real positive integers or logicals"
Please could you help me!