Error using GUIDE app designer for solving and plotting ordinary differential equations. Error gives invalid expression.

Full error: "Error using ReactorApp
Error: File: ReactorApp.mlapp Line: 158 Column: 21
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters."
I have looked into the parentheses (swapped them out and ran it again) but to no avail. Could really use some help figuring it out.
Here is the relevant code. Error is on the cinit line.
%compute concentration and temperature profiles CSTR (stored in A)
cinit = [app.C_w_init app.C_aah_init app.C_acid_init app.T0];
tspan = 0:t_end;
[t,A] = ode45(@(t,A) ode_CSTR(t,A,app), tspan, cinit);

1 件のコメント

Is it possible to share the complete code file to understand the flow of the code.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

質問済み:

2022 年 10 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by