How to use sens_sys()

2 visualizaciones (últimos 30 días)
Aditya Goel
Aditya Goel el 19 de Jul. de 2021
Comentada: Aditya Goel el 21 de Jul. de 2021
I want to use the sens_sys() to perform the sensitivity analysis on a differential equation, but do not know how to input the odefile, ie, the format it should be in. Kindly help me out.
This is what I input:
[x W dWdk]=sens_sys(C:\Users\HP\Documents\MATLAB\Test1.m,xspan,W0,k)
and the error message I am getting is:
[x W dWdk]=sens_sys(C:\Users\HP\Documents\MATLAB\Test1.m,xspan,W0,k)
Invalid use of operator.

Respuesta aceptada

Walter Roberson
Walter Roberson el 19 de Jul. de 2021
[x W dWdk]=sens_sys('C:\Users\HP\Documents\MATLAB\Test1.m',xspan,W0,k)
It would be unusual for a function like that to take the name of an .m file as a parameter, instead of a handle to a function or a data array (or data file), but not impossible.
sen_sys does not appear to be a Mathworks routine, and instead appears to be part of https://ndltd.ncl.edu.tw/cgi-bin/gs32/gsweb.cgi/login?o=dnclcdr&s=id=%22095NTUS5063058%22.&searchmode=basic . I do not find a copy of the source code at the moment, and the above site does not happen to include the page where the function is described.
  3 comentarios
Walter Roberson
Walter Roberson el 19 de Jul. de 2021
addpath('C:\Users\HP\Documents\MATLAB')
[x, W, dWdk] = sens_sys(@Test1, xspan, W0, k);
Aditya Goel
Aditya Goel el 21 de Jul. de 2021
Thank you!!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by