Feeds
답변 있음
Inverse Problem, I have unknowns to solve it
L and N cannot be estimated separately. As long as phi is a single scalar value , L*phi + N must be treated as only one parame...
Inverse Problem, I have unknowns to solve it
L and N cannot be estimated separately. As long as phi is a single scalar value , L*phi + N must be treated as only one parame...
9일 전 | 0
| 수락됨
답변 있음
expanded vs unexpanded polynomials in symbolic integrals
Without giving the limits of integration, "int" returns an arbitrary antiderivative for the function you want to integrate. But ...
expanded vs unexpanded polynomials in symbolic integrals
Without giving the limits of integration, "int" returns an arbitrary antiderivative for the function you want to integrate. But ...
17일 전 | 0
| 수락됨
답변 있음
symbolic integrate and plot a function of one variable
syms x(u) y(u) g(u) C1 C2 v uref g(u) = 159648450049389632/(3991211251234741*(4 - (C1 + 2*u + 3)^(1/2))^(1/2)) + 14; x = C2*ex...
symbolic integrate and plot a function of one variable
syms x(u) y(u) g(u) C1 C2 v uref g(u) = 159648450049389632/(3991211251234741*(4 - (C1 + 2*u + 3)^(1/2))^(1/2)) + 14; x = C2*ex...
18일 전 | 0
| 수락됨
답변 있음
Trying to make a goal seek like program using fsolve?
clear all; close all; clc f= @(x) Average1(x)-65; engineering= 30; % Intiall estimate engineering = fsolve(f,engineering) ...
Trying to make a goal seek like program using fsolve?
clear all; close all; clc f= @(x) Average1(x)-65; engineering= 30; % Intiall estimate engineering = fsolve(f,engineering) ...
18일 전 | 0
| 수락됨
답변 있음
numerical Instabilities for bessel functions
Although it's slow, the full Newton method seems to work in this case (except for one value of X_kRE): clear all; close all; ...
numerical Instabilities for bessel functions
Although it's slow, the full Newton method seems to work in this case (except for one value of X_kRE): clear all; close all; ...
18일 전 | 0
답변 있음
i want to add cplex and yalmip on my mac how ?
This is the problem-based MATLAB code to set up your problem. I might have done some mistakes translating your constraints, but ...
i want to add cplex and yalmip on my mac how ?
This is the problem-based MATLAB code to set up your problem. I might have done some mistakes translating your constraints, but ...
19일 전 | 1
답변 있음
Setting constraint between estimation parameters in nonlinear grey box estimation
I doubt that you can set lower and upper bounds on parameters as nonlinear functions of other parameters. In my opinion, Paramet...
Setting constraint between estimation parameters in nonlinear grey box estimation
I doubt that you can set lower and upper bounds on parameters as nonlinear functions of other parameters. In my opinion, Paramet...
21일 전 | 0
| 수락됨
답변 있음
Help implementing 4th-order Runge–Kutta for ODEs with Dirac impulses (discontinuous system)
Look at figure 3 (a) and (b) of the article. Each time the curve for U becomes discontinuous, a dosing is applied to the mice. I...
Help implementing 4th-order Runge–Kutta for ODEs with Dirac impulses (discontinuous system)
Look at figure 3 (a) and (b) of the article. Each time the curve for U becomes discontinuous, a dosing is applied to the mice. I...
23일 전 | 0
답변 있음
Defining a function in one file and using it in a second file
The calls must be for i = 2:NumTimesteps % for each timestep % 1. Soil Respiration % as per Reich, 2002 SoilResp_gC = S...
Defining a function in one file and using it in a second file
The calls must be for i = 2:NumTimesteps % for each timestep % 1. Soil Respiration % as per Reich, 2002 SoilResp_gC = S...
25일 전 | 0
답변 있음
real part of eigenvalues vs damping plot
I don't know what you try to plot, but the cell matrix lamda below should contain all information you need. mr=306, mj=141.5, m...
real part of eigenvalues vs damping plot
I don't know what you try to plot, but the cell matrix lamda below should contain all information you need. mr=306, mj=141.5, m...
대략 1개월 전 | 0
답변 있음
First value of an array does not display with a decimal
If you like it more, you can use sprintf('%f %f %f',[x, y, z]) instead of disp([x y z]);
First value of an array does not display with a decimal
If you like it more, you can use sprintf('%f %f %f',[x, y, z]) instead of disp([x y z]);
대략 1개월 전 | 1
답변 있음
How to integrate a control system by ode45 with PID control input ?
Add a second differential equation dV/dt = P.Xd - X with initial condition V(0) = 0 Then V(t) = integral_{0}^{t} (P.Xd -...
How to integrate a control system by ode45 with PID control input ?
Add a second differential equation dV/dt = P.Xd - X with initial condition V(0) = 0 Then V(t) = integral_{0}^{t} (P.Xd -...
대략 1개월 전 | 0
답변 있음
Matlab's polyfit gives different results when the independent variable is integer than when the independent variable is floating point. Why is that so?
To be consistent, you must either use numDataPointsMinutes = [0,1,2,3, ... 27359]; instead of numDataPointsMinutes = [1,2,3, ...
Matlab's polyfit gives different results when the independent variable is integer than when the independent variable is floating point. Why is that so?
To be consistent, you must either use numDataPointsMinutes = [0,1,2,3, ... 27359]; instead of numDataPointsMinutes = [1,2,3, ...
대략 1개월 전 | 0
| 수락됨
답변 있음
How to remove the time dependence of an equation?
Use fimplicit(eq_14(t)==0,"r","LineWidth",2) instead of fimplicit(eq_14==0,"r","LineWidth",2) Why do you use a time-dependen...
How to remove the time dependence of an equation?
Use fimplicit(eq_14(t)==0,"r","LineWidth",2) instead of fimplicit(eq_14==0,"r","LineWidth",2) Why do you use a time-dependen...
대략 1개월 전 | 0
| 수락됨
답변 있음
Seeking advice from experts
Use one of the below codes instead. You can't nest functions within a script, but only within another function. So either defi...
Seeking advice from experts
Use one of the below codes instead. You can't nest functions within a script, but only within another function. So either defi...
대략 1개월 전 | 0
답변 있음
Newtonian Mechanics vector solution needed to find the range of forces (P) that satisfy Fnetx = 0
Your search will never find a value for P for which Fnetx is exactly 0. Better use "fsolve" to solve for the corresponding roo...
Newtonian Mechanics vector solution needed to find the range of forces (P) that satisfy Fnetx = 0
Your search will never find a value for P for which Fnetx is exactly 0. Better use "fsolve" to solve for the corresponding roo...
대략 1개월 전 | 0
| 수락됨
답변 있음
can anyone help me. I am getting error of the following problem
Let's ignore the fifth differential equation in your code for a moment. Then you set up code for the differential equation y''...
can anyone help me. I am getting error of the following problem
Let's ignore the fifth differential equation in your code for a moment. Then you set up code for the differential equation y''...
대략 1개월 전 | 1
| 수락됨
답변 있음
Monitoring Variables Defined Within Functions to Debug
After the variable is computed, you can list the variable's name by itself on it's own line in your function code, with no semic...
Monitoring Variables Defined Within Functions to Debug
After the variable is computed, you can list the variable's name by itself on it's own line in your function code, with no semic...
대략 2개월 전 | 0
| 수락됨
답변 있음
ddesd giving NaN for all state variables beyond time step 1.
The history function has to cover values for t that are negative (because y6 becomes large and you have to supply y1(t-y6)). But...
ddesd giving NaN for all state variables beyond time step 1.
The history function has to cover values for t that are negative (because y6 becomes large and you have to supply y1(t-y6)). But...
대략 2개월 전 | 0
| 수락됨
답변 있음
Extracting coefficients from symbolic expression
syms P121 P131 P151 P122 P132 P152 cosdphi12over2 cosdphi13over2 cosdphi15over2 sindphi12over2 sindphi13over2 sindphi15over2 P12...
Extracting coefficients from symbolic expression
syms P121 P131 P151 P122 P132 P152 cosdphi12over2 cosdphi13over2 cosdphi15over2 sindphi12over2 sindphi13over2 sindphi15over2 P12...
대략 2개월 전 | 1
답변 있음
Iterative of Nonlinear Functions
Why do you use "solve" to get t1,...,t15 ? You can directly solve for the unknowns because you use the explicit Euler method to ...
Iterative of Nonlinear Functions
Why do you use "solve" to get t1,...,t15 ? You can directly solve for the unknowns because you use the explicit Euler method to ...
대략 2개월 전 | 0
답변 있음
Possible bug in coneprog.m function
This works for dense matrices/vectors, but in sparse mode, it gives exitflag = -7 as above. Maybe it's worth asking MATLAB suppo...
Possible bug in coneprog.m function
This works for dense matrices/vectors, but in sparse mode, it gives exitflag = -7 as above. Maybe it's worth asking MATLAB suppo...
대략 2개월 전 | 1
| 수락됨
답변 있음
How can we plot the same time history plot two times but the second time with a time delay of 2 sec?
You mean t = 0:0.1:20; p = t.^2; hold on plot(t,p,'b') plot(t+2,p,'r') hold off grid on ?
How can we plot the same time history plot two times but the second time with a time delay of 2 sec?
You mean t = 0:0.1:20; p = t.^2; hold on plot(t,p,'b') plot(t+2,p,'r') hold off grid on ?
2개월 전 | 0
| 수락됨
답변 있음
plotting 2 figures in same for loop
figure hax1=axes; hold(hax1,'on') figure hax2=axes; hold(hax2,'on') x=1:5; for i=1:6 if rem(i,2)==0 scatter...
plotting 2 figures in same for loop
figure hax1=axes; hold(hax1,'on') figure hax2=axes; hold(hax2,'on') x=1:5; for i=1:6 if rem(i,2)==0 scatter...
2개월 전 | 0
| 수락됨
답변 있음
Solving differential equations with state variables and co-states
This code works, but gives no solution for the parameters given. %% Title: Solving Hamiltonian Objective Function using system ...
Solving differential equations with state variables and co-states
This code works, but gives no solution for the parameters given. %% Title: Solving Hamiltonian Objective Function using system ...
2개월 전 | 1
| 수락됨
답변 있음
Finding if the current data value is greater than the previous value
It would help if you include the GDF-file. Without further information, I'd suggest T = readtable ("GDF.xlsx"); A = table2arr...
Finding if the current data value is greater than the previous value
It would help if you include the GDF-file. Without further information, I'd suggest T = readtable ("GDF.xlsx"); A = table2arr...
2개월 전 | 2
| 수락됨
답변 있음
How to multiply different size arrays and multiply each element by each element?
If nothing helps, make a 4-fold nested loop. for i=1:numel(Span) for j = 1:numel(MAC) for k = 1:numel(CoM) ...
How to multiply different size arrays and multiply each element by each element?
If nothing helps, make a 4-fold nested loop. for i=1:numel(Span) for j = 1:numel(MAC) for k = 1:numel(CoM) ...
2개월 전 | 0
답변 있음
Combine non integer time steps into daily values
@Cristóbal Looking at the volume values, I'm almost sure that these values are already cumulative values. Why should the increa...
Combine non integer time steps into daily values
@Cristóbal Looking at the volume values, I'm almost sure that these values are already cumulative values. Why should the increa...
2개월 전 | 2
답변 있음
Programming wave dispersion equation
Code taken from https://uk.mathworks.com/matlabcentral/fileexchange/156009-wavelength-calculation-based-on-dispersion-relations...
Programming wave dispersion equation
Code taken from https://uk.mathworks.com/matlabcentral/fileexchange/156009-wavelength-calculation-based-on-dispersion-relations...
2개월 전 | 0
| 수락됨
답변 있음
Modelling a system of differential equations with recurrences in matlab
N = 20; k = 1; a = 1; b = 1; c = 1; d = 1; u0 = zeros(N,1); udot0 = 0.5*ones(N,1); v0 = zeros(N,1); vdot0 = 0...
Modelling a system of differential equations with recurrences in matlab
N = 20; k = 1; a = 1; b = 1; c = 1; d = 1; u0 = zeros(N,1); udot0 = 0.5*ones(N,1); v0 = zeros(N,1); vdot0 = 0...
3개월 전 | 0
| 수락됨








