Why Phase 4 of MATLAB App designer is not giving the ouput values. Kindly help me i shared the matlab function file and App designer file

조회 수: 3 (최근 30일)
Why Phase 4 of MATLAB App designer is not giving the ouput values. Kindly help me i shared the matlab function file and App designer file .
  댓글 수: 1
Matlab Pro
Matlab Pro 2024년 6월 24일
Well, You can be a little more descriptive about what to do with this Big GUI..
What button did you press?
What happened (error/ etc)
What did not happen (and you expected it to happen..)

댓글을 달려면 로그인하십시오.

답변 (1개)

Matlab Pro
Matlab Pro 2024년 6월 24일
When pressing the "GO" button- the next error is raised:
[t, y] = ode45(@(t, y) ode_LR(t, y, Kf_L, Kb), timespan, initial_conditions);
Error using odearguments
The last entry in tspan must be different from the first entry.
Error in ode45 (line 104)
odearguments(odeIsFuncHandle,odeTreatAsMFile, solver_name, ode, tspan, y0, options, varargin);
This error is rlating to the "timespan" argument.
A small fix (altough you have to consider this) is just changing the last entry of "timespan" (vs the 1st entry of "timespan")
The next lines do not create the error...
timespan(end) = timespan(1) + 1;
[t, y] = ode45(@(t, y) ode_LR(t, y, Kf_L, Kb), timespan, initial_conditions);

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

제품


릴리스

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by