How to use sens_sys()

2 views (last 30 days)
Aditya Goel
Aditya Goel on 19 Jul 2021
Commented: Aditya Goel on 21 Jul 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.

Accepted Answer

Walter Roberson
Walter Roberson on 19 Jul 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 Comments
Walter Roberson
Walter Roberson on 19 Jul 2021
addpath('C:\Users\HP\Documents\MATLAB')
[x, W, dWdk] = sens_sys(@Test1, xspan, W0, k);
Aditya Goel
Aditya Goel on 21 Jul 2021
Thank you!!

Sign in to comment.

More Answers (0)

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!