Why do i recieve Dot indexing is not supported for variables of this type error when i call my function
Show older comments
I'm trying to implement a aircraft model.
I created a struct for aircraft data's
When i trying to implement my eom function i'm getting this error
Dot indexing is not supported for variables of this type.
Error in eom (line 4)
m = spec.m.table{1};
Error in odearguments (line 92)
f0 = ode(t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ode45 (line 107)
odearguments(odeIsFuncHandle,odeTreatAsMFile, solver_name, ode, tspan, y0, options, varargin);
Error in flight (line 25)
[t, vecste,spec,aero,thrust] = ode45('eom', tspan, stvecinit);
How can i solve it
Thanks
Accepted Answer
More Answers (1)
Florian Bidaud
on 21 Sep 2023
0 votes
try with m = spec{1}.m.table or m = spec.m{1}.table
3 Comments
Muhammed Emin Yavuzaslan
on 21 Sep 2023
Edited: Muhammed Emin Yavuzaslan
on 21 Sep 2023
Florian Bidaud
on 21 Sep 2023
Sorry I read too quickly. the format of spec.m.table is probably a cell array.
Can you show the variable in the workspace ?
I suspect spec.m.table(1) will work.
Muhammed Emin Yavuzaslan
on 21 Sep 2023
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!