Azzera filtri
Azzera filtri

I am having a problem implementing ode45 in a appdesigner code as well as using the uigetfile and readtable functions to read data from a file into appdesigner.

3 visualizzazioni (ultimi 30 giorni)
When i run the appdesigener app, the integartion gives a warning from the 82nd integartion to the last integration. Moreover i am not sure if the uigetfile and the readtable functions as implemented in the dialogbox apps are reading some of the input data correctly. Kindly assist.
Attached are the input files and app files. Run the IAA_1 application in the simulatiuon tab from 1st of January, 2022 to 31st of December, 2023.
A snip short of the error message as well as an exxample of use of the uigetfile and readtable functions is shown below;
Warning: Failure at t=8.200000e+01. Unable to meet integration tolerances without reducing the step size below the smallest value
allowed (2.273737e-13) at time t.
> In ode45 (line 353)
In IAA_1/RunModelButtonPushed (line 397)
In matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 62)
Warning: Failure at t=8.300000e+01. Unable to meet integration tolerances without reducing the step size below the smallest value
UIGETFILE AND READTABLE FUNCTIONS CODE
% Open a dialog to select a text file
[filename, filepath] = uigetfile('*.txt', 'Select Text File');
if filename == 0
% User cancelled the selection
return;
end
app.UIFigure.Visible = 'off';
app.UIFigure.Visible = 'on';
% Construct the full file path
fullpath = fullfile(filepath, filename);
try
% Read the text data
data7 = readtable(fullpath); % or use other appropriate function
% Process the data as needed
% For example, display it in a UI component
app.pH_dataButton.UserData = table2array(data7);
catch
% Error handling
errordlg('Error reading the text file.', 'File Read Error');
return;
end
  3 Commenti
Mario Malic
Mario Malic il 24 Apr 2024
You attached a lot of files that are related to the app and the data, and ask us to run it with particular settings. That's already a lot to ask!
I would suggest to provide a short script that analyses the particular file that you get warning for. Besides, it's the warning, not the error.
Basically, this is an issue with ODE solving. Maybe you have the issue with your data?

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Dialog Boxes in Help Center e File Exchange

Prodotti


Release

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by