Azzera filtri
Azzera filtri

how to calculate the maximum value of a function assigned to a 'sym'?

3 visualizzazioni (ultimi 30 giorni)
I solved a differential equation and stored the solution in y which is of type 'sym'. But I can't use the 'max' function with it. following is the code:-
eqn= 'Dy+y/(8*(10^5)*5*(10^(-6)))=12/(8*(10^5))';
inits= 'y(0)=0';
soln= ['y(t)=',char(simplify(y))];
The 'max' functions are not working.

Risposte (1)

Karan Gill
Karan Gill il 23 Ott 2017
The max function does not find the maximum of a symbolic function. Please read the doc on max.
Your question is a math question, not a MATLAB question. You can look up a reference like's.htm
  1 Commento
Anurag Paul
Anurag Paul il 6 Set 2021
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by