photo

Dursman Mchabe


Last seen: 4 years ago Active since 2017

Followers: 0   Following: 0

Statistics

  • Thankful Level 4
  • First Answer

View badges

Feeds

View by

Question


Solving a system of ODEs coupled with an algebraic equation
Hi everyone, I have tried to couple an fsolve function with a system ODEs found in: https://www.mathworks.com/matlabcentral/...

4 years ago | 0 answers | 0

0

answers

Question


Solve a system of four differential equations with experimental values of one dependent variable.
Hi everyone, On the code below, is it posible to solve a system of four differential equations with experimental values of on...

4 years ago | 0 answers | 0

0

answers

Question


Function value and YDATA sizes are not equal
Hi everyone, I am trying to run acode from the link: https://www.mathworks.com/matlabcentral/answers/132238-how-to-fit-exper...

4 years ago | 1 answer | 0

1

answer

Question


Index in position 2 exceeds array bounds (must not exceed 50).
Hello everyone I am trying to run the code below, however I get the error message: logical 0 ans = logical ...

4 years ago | 0 answers | 0

0

answers

Question


Solving a PDE using Method Of Lines
Hi everyone I am trying to solve a PDE through method of lines, using ODE15s. I get the error message Not enough input a...

4 years ago | 1 answer | 0

1

answer

Question


How to use lsqcurvefit to estimate parameters while using fsolve to solve an equation
Hi ebveryone, On the attached code I am trying to use lsqcurvefit to estimate the following constants: % Constants KSO2 = ...

6 years ago | 1 answer | 0

1

answer

Question


How can I write iterated data from a for-loop into excel file
Hi everyone, On the attached file I am trying to write iterated data into an excel file. The 'witing' works well for the firs...

6 years ago | 0 answers | 0

0

answers

Question


Why does odeset RelTol and AbsTol values truncate the results?
Hi everyone, On the attached code, I am trying to use odeset to smoothen the result. When I use 'RelTol' of 1e-2 and 'AbsTol' o...

6 years ago | 0 answers | 0

0

answers

Question


Why does matlab request me to define a for-loop indexing term?
Hi everyone, I am trying to run the attached code, but matlab gives this error: Undefined function or variable 'k'. Error...

6 years ago | 1 answer | 0

1

answer

Question


How can I use for loop to input values when solving ODEs using ode45?
Hi everyone On the attached code, I am trying to use a for loop to iteratively input values while solving ODEs using ode45. I t...

6 years ago | 1 answer | 0

1

answer

Question


Too many input arguments
Hi everyone, I know this is a self-explaining error. I know it is usually caused by: 1) Passing a function more input argume...

6 years ago | 1 answer | 0

1

answer

Question


Function value at starting guess must be finite and real
Hi everyone, I know that the question is self-explaning. I am supriced that I get this error: Error using fzero (line 328)...

6 years ago | 1 answer | 1

1

answer

Question


How can I prevent an infinite recursion within my program?
Hi Everyone, I am trying to run the code below, and I get very long error message stating: FZERO cannot continue because u...

6 years ago | 1 answer | 0

1

answer

Question


Why do I get an error message "Function value at starting guess must be finite and real." when my starting guess is 8?
Hi everyone, When I run the code given below, I get, I get the error message: Error using fzero (line 328) Function value a...

6 years ago | 1 answer | 0

1

answer

Question


What can I change on the code below to make it run faster?
Hello everyone, What can I change on the code below to make it run faster? function SlurryCaseODE45Jan31 function C...

6 years ago | 1 answer | 0

1

answer

Question


Why does a for-loop give different outputs when used in different scripts?
Hi everyone, I am trying to use a for-loop to get time that is spaced by 600 seconds for the first 4 steps, then spaced by 72...

6 years ago | 0 answers | 0

0

answers

Question


How to use fprintf
How can I use fprintf to print out NSO2; CSO2_bulkslurry; CHSO3; CSO3; CSO2_inter; ...

6 years ago | 0 answers | 0

0

answers

Question


Need a better guess y0 for consistent initial conditions.
Hi all, I get the the error message: Error using daeic12 (line 166) Need a better guess y0 for consistent initial conditi...

6 years ago | 0 answers | 0

0

answers

Question


Error using lsqcurvefit (line 262) Function value and YDATA sizes are not equal.
Hi all, I get the error message: Error using lsqcurvefit (line 262) Function value and YDATA sizes are not equal. Erro...

6 years ago | 2 answers | 0

2

answers

Question


Using ode15s to solve daes and lsqcurvefit to fit a curve
Hello everyone, I am trying to use ode15s to solve 4 daes,and using lsqcurvefit to fit the curve. The attached code gives an ...

6 years ago | 0 answers | 0

0

answers

Question


Using lsqcurvefit to estimate parameters, while solving daes using ode15i
Hi all, I am trying to estimate 13 parameters using lsqcurvefit, while using ode15i to solve 4 daes. The attached script give...

6 years ago | 1 answer | 0

1

answer

Question


Unable to perform assignment because the left and right sides have a different number of elements.
Hi all When I run the attached code, I get the error message: Unable to perform assignment because the left and right side...

6 years ago | 0 answers | 0

0

answers

Question


How can I increase the array elements of the optimization variable?
Hi all, I am trying to run a dynamic optimization script, and I get the error message: Index exceeds the number of array e...

6 years ago | 0 answers | 0

0

answers

Question


How can I resolve the Convergence failure in DECIC?
Hi everyone, I am trying to use ode15i to solve a system DAEs on the attached code. There seems to be a problem with my decic...

6 years ago | 0 answers | 0

0

answers

Question


Index exceeds the number of array elements (1)
Hi everyone, I am learning how to use lsqcurvefit when solving DAEs using a simple case on the attached code. At the moment I a...

6 years ago | 0 answers | 0

0

answers

Question


Why does lsqcurvefit runs forever?
Hi Everyone On the attached code, I am using lsqcurvefit for data-fitting. The code seems to run forever. I am on day 6 n...

6 years ago | 0 answers | 0

0

answers

Question


Why do I get an error stating "Matrix dimensions must agree", whilst the dimensions appear to be equal to me.
Hi everyone, I am runing the attached code, and for some reasons I get the error message stating: Matrix dimensions must a...

6 years ago | 1 answer | 0

1

answer

Question


Not enough input arguments.
Hi Everyone, I have a user-defined code that is based on Euler method, that runs successfully. However the output does not comp...

6 years ago | 1 answer | 0

1

answer

Question


Parameter estimation when using ODE15i
Hi everyone, I have an ODE15i code that runs successful. I have compared its results to the experimental results, the fitting i...

6 years ago | 0 answers | 0

0

answers

Question


Run a script 5 times whilst changing the value of one parameter each time.
Hi everyone I would like to run the attached script 5 times whilst changing the value of kga from 4e-1 to 4e-2, then 4e-3, then...

6 years ago | 0 answers | 0

0

answers

Load more