질문


Why does fprintf return different values from the plot
Hi all, when I run the attached code, the values that are returned by fprintf command are different from those on the plot. What...

약 1년 전 | 답변 수: 0 | 0

0

답변

질문


Where in the code, and how should I define y? (A clearer presentation of the question)
Hi all, this serves to present the question in a detailed manner. In the attached code, I am trying to solve 7 ODEs, dydt(1...

약 1년 전 | 답변 수: 0 | 0

0

답변

질문


Unable to perform assignment because the left and right sides have a different number of elements.
Hi all, I don't know why does my code give an error message: Unable to perform assignment because the left and right sides ...

약 1년 전 | 답변 수: 0 | 0

0

답변

질문


How can I use for-loop to implement variable parameters?
Hi all, on the attached m-file I try to use for-loop to pass variable parameters, some how I get an error message that says: ...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


Does my code make sense? It runs without errors, but I'm not sure if I did the right thing.
Hi all. On the attached code, I am interested in solving for x (using the @xfun function) and solving for y(1)...y(6), using the...

약 1년 전 | 답변 수: 0 | 0

0

답변

질문


How can I increase vector size of the output from 7 x 7 double to 30 x 7 double i.e how can I make a for-loop to repeat 30 times?
Hi all, How can I increase the size of the output vector of the attached m-file (EulerMethod.m) from 7 x 7 double to 30 x 7 dou...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


How can I make matrix dimensions to agree?
Hi all, I get an error message: Matrix dimensions must agree. Error in lsqcurvefit/objective (line 279) ...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


How can I increase the output vector of a loop from a 7 x 7 double to a 31 x 7 double?
Hi everyone, I would like to use a for loop (employing Euler method) to solve ODEs and algebraic equations. However, loop only g...

약 1년 전 | 답변 수: 0 | 0

0

답변

질문


Error using plot Vectors must be the same length.
Hi everyone, How can I change the size of Cfit in line 140 of the attached to double(30 x 8), in the attached code. When I ru...

약 1년 전 | 답변 수: 2 | 0

2

답변

질문


Which input arguments are missing on my code?
Hi everyone, apologies for flooding the forum with question. I am faced with expulsion from the University if I don't solve this...

약 1년 전 | 답변 수: 0 | 0

0

답변

질문


lsqcurvefit gives an error message:“Index exceeds array bounds.”
I have a set of 7 ordinary differential equations and 1 algebraic which I use to calculate the concentrations of 8 species with ...

약 1년 전 | 답변 수: 0 | 0

0

답변

질문


Too many output arguments error when using lsqcurvefit
I have a set of 7 ordinary differential equations and 1 algebraic which I use to calculate the concentrations of 8 species with ...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


Estimation of parameters and initial conditions using lsqcurvefit gives an error message :"Index Exceeds Array Bounds"
Hi everyone, I tried different approaches to emulate Dave Black's method: https://www.mathworks.com/matlabcentral/answers/329...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


Estimation of parameters and initial conditions using lsqcurvefit
Hi everyone, I am trying to follow the example from the link: https://www.mathworks.com/matlabcentral/answers/329901-solving-...

약 1년 전 | 답변 수: 0 | 0

0

답변

질문


Parameter estimation when solving DAE using ODE15i solver
Hi everyone, Is it possible to estimate parameters/curve fitting when solving solving DAE using ODE15i solver? Has anyone don...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


How can I check which parameters is invalid in my code?
Hi everyone, I am trying to run an ODE15i code. I get an error message: " Error using mupadengine/feval (line ...

약 1년 전 | 답변 수: 0 | 0

0

답변

질문


A PDE equation giving meaningless results
Hi Everyone, I am trying to solve a simpe PDE equation using pdepe, however I get meaningless results. Please see the code be...

약 1년 전 | 답변 수: 1 | 0

1

답변

질문


Did matlab really fail to solve this system of 4 DAEs or did I make a mistake somewhere?
Hi everyone, I'm trying to analytically solve a system of 4 DAEs, however all outputs are blank. Please see the code below: ...

1년 이상 전 | 답변 수: 0 | 0

0

답변

질문


What is the meaning of "Index in position 1 exceeds array bounds (must not exceed 5)".
Hi everyone, I'm trying to run a code below: syms a(x) b(x) c(x) d(x) e(x) A B C D E FF G H eqn1 = A * diff(a(x),x,2) +...

1년 이상 전 | 답변 수: 1 | 0

1

답변

질문


Is it possible to use lsqcurvefit for parameter estimation while using ODE15i solver?
Hi everyone, I am trying to estimate 14 parameters. The code below is with guessed parameters, and it does not give errors, h...

1년 이상 전 | 답변 수: 0 | 0

0

답변

질문


Unable to perform assignment because brace indexing is not supported for variables of this type.
Hi everyone, I am trying to run this code: clear all close all clc syms x(t) y(t) z(t) A B C D E FF ...

1년 이상 전 | 답변 수: 1 | 0

1

답변

질문


Index in position 1 exceeds array bounds (must not exceed 1)
Hi everyone, when I run the code below (or in the attachment), I get the error message: " Index in position 1 exceeds ar...

1년 이상 전 | 답변 수: 0 | 0

0

답변

질문


Unable to reproduce a working code for threepointbvp
Hi everyone, I am struggling to reproduce a working threepointbvp code. Please see attached or below. What am I doing wrong? ...

1년 이상 전 | 답변 수: 0 | 0

0

답변

질문


Index exceeds array bounds error message in a three-point bvp
Hi everyone, I'm trying to solve a three-point bvp, following: https://www.mathworks.com/help/releases/R2018a/matlab/ref/bvpi...

1년 이상 전 | 답변 수: 0 | 0

0

답변

질문


Error message: Invalid index.
Hi everyone, I am trying to solve two second order differential equations with two unknowns. However, matlab gives the warning t...

1년 이상 전 | 답변 수: 1 | 0

1

답변

질문


Unable to reduce to square system because the number of equations differs from the number of indeterminates.
Hi everyone, I am trying to solve two second order differential equations with two unknowns. However, matlab gives the warning t...

1년 이상 전 | 답변 수: 0 | 0

0

답변

질문


Using yyaxis with lsqcurvefit
Hi everyone, I'm trying to use yyaxis with lsqcurve fit on this code: function ODE4522Aug2018 %--------------------------...

1년 이상 전 | 답변 수: 0 | 0

0

답변

질문


Adding a second y-axis with a different scale when fitting a curve.
Hi everyone, I am trying to add a second y-axis with a different scale using the attached code: function ODE4522Aug2018 ...

1년 이상 전 | 답변 수: 0 | 0

0

답변

질문


Plot coming up blank
Hi everyone, I am trying to plot function ODE15s20Aug2018 %% VARIABLES % y(1) % y(2) % y(3) % y(4)...

1년 이상 전 | 답변 수: 1 | 0

1

답변

질문


The entries in tspan must strictly increase or decrease.
Hi everyone, I am following: <https://www.mathworks.com/matlabcentral/answers/314965-parameter-estimation-for-a-system-of-...

1년 이상 전 | 답변 수: 1 | 0

1

답변

Load more