Feeds
已回答
How do I write time dependent variables in my equations of motion?
Integrate from 0 to 5 with F = 0, Vin = 280. Restart with the solution obtained and integrate from 5 to 10 with F = -10, Vin = ...
How do I write time dependent variables in my equations of motion?
Integrate from 0 to 5 with F = 0, Vin = 280. Restart with the solution obtained and integrate from 5 to 10 with F = -10, Vin = ...
14 hours 前 | 0
已回答
What is the mathematical form called for PDEs used with the MATLAB function pdepe?
Would this be considered an elliptical/parabolic PDE in conservative form? No. "Conservative" usually refers to the first spati...
What is the mathematical form called for PDEs used with the MATLAB function pdepe?
Would this be considered an elliptical/parabolic PDE in conservative form? No. "Conservative" usually refers to the first spati...
14 hours 前 | 1
| 已接受
已回答
Energy optimization robot paths
toolPositionHome = T_home(1:3,4); % Define a Set of Waypoints Based on the Tool Position waypoints = toolPositionHome + ... ...
Energy optimization robot paths
toolPositionHome = T_home(1:3,4); % Define a Set of Waypoints Based on the Tool Position waypoints = toolPositionHome + ... ...
16 hours 前 | 0
已回答
I'm having an issue defining the initial conditions for solving a system of differential equations
You have two second-order ODEs for th and w. Thus you need 4 boundary conditions (not 6) that can be prescribed for w, dw/dx, ...
I'm having an issue defining the initial conditions for solving a system of differential equations
You have two second-order ODEs for th and w. Thus you need 4 boundary conditions (not 6) that can be prescribed for w, dw/dx, ...
1 day 前 | 1
| 已接受
已回答
Received this error, not sure how to fix
Maybe you mean for ni=1:j instead of for ni=1+j If not, you try to access N(7) which does not exist.
Received this error, not sure how to fix
Maybe you mean for ni=1:j instead of for ni=1+j If not, you try to access N(7) which does not exist.
1 day 前 | 0
| 已接受
已回答
Vector Length Error when Calling Function
You overwrite MATLAB's intrinsic "length" in the lines length = data(2:end,2) length = cell2mat(length)
Vector Length Error when Calling Function
You overwrite MATLAB's intrinsic "length" in the lines length = data(2:end,2) length = cell2mat(length)
1 day 前 | 0
已回答
How to match matrix elements for a condition?
If A becomes larger, this brute-force way of solving will become intractable. A = [15 25 36 17 48 59 31 64 18 21 97 84 31 64 15...
How to match matrix elements for a condition?
If A becomes larger, this brute-force way of solving will become intractable. A = [15 25 36 17 48 59 31 64 18 21 97 84 31 64 15...
1 day 前 | 0
| 已接受
已回答
How do I use my data set in an equation?
Say lm is 2x6, e.g. lb = [1 2 3 4 5 6] lm = [7 8 9 10 11 12;13 14 15 16 17 18] What would you like to compute ? [log(1/7) lo...
How do I use my data set in an equation?
Say lm is 2x6, e.g. lb = [1 2 3 4 5 6] lm = [7 8 9 10 11 12;13 14 15 16 17 18] What would you like to compute ? [log(1/7) lo...
1 day 前 | 0
已回答
error >> Matrix dimensions must agree. How to fix
z doesn't need to be prescribed in array form because you integrate with respect to z. Here I assume that the integration variab...
error >> Matrix dimensions must agree. How to fix
z doesn't need to be prescribed in array form because you integrate with respect to z. Here I assume that the integration variab...
1 day 前 | 0
已回答
How to get the formal expression of the expansion of power of a polynomial with symbolic calculation
syms x n = 10; k = 2; a = str2sym(compose("a" + (0:n-1))) f = x^n + sum(a.*x.^(0:n-1)) g = f^k; coefficients = coeffs(coll...
How to get the formal expression of the expansion of power of a polynomial with symbolic calculation
syms x n = 10; k = 2; a = str2sym(compose("a" + (0:n-1))) f = x^n + sum(a.*x.^(0:n-1)) g = f^k; coefficients = coeffs(coll...
2 days 前 | 0
已回答
Using MATLAB to do Numeric Calculus
Your code is correct. Here is a simpler way to define s and v. Just substitute tcrash by tmax. tcrash = 1596.2/(2*4.905)+sqrt...
Using MATLAB to do Numeric Calculus
Your code is correct. Here is a simpler way to define s and v. Just substitute tcrash by tmax. tcrash = 1596.2/(2*4.905)+sqrt...
2 days 前 | 0
| 已接受
已回答
probability that values are belong to an interval
It depends on how x is distributed. If f is the (continuous) probability density function for x, you get the probability p as ...
probability that values are belong to an interval
It depends on how x is distributed. If f is the (continuous) probability density function for x, you get the probability p as ...
2 days 前 | 0
| 已接受
已回答
How to use ode15s to solve a stiff ode with mass?
tf = 200; x0 = [0 0 0 0 2500 0 0.8 0 50 50 50 50 5]; M = zeros(13,13); M(1,1) = 1; M(2,2) = 1; M(3,3) = 1; M(4,4) = 1; ...
How to use ode15s to solve a stiff ode with mass?
tf = 200; x0 = [0 0 0 0 2500 0 0.8 0 50 50 50 50 5]; M = zeros(13,13); M(1,1) = 1; M(2,2) = 1; M(3,3) = 1; M(4,4) = 1; ...
3 days 前 | 1
已回答
I am getting error:Warning: Failure at t=0.000000e+00. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (7.905050e-323)
If you remove the semicolon behind %% mass balances dy_dz=[1/u*(-r3) 1/u*(...
I am getting error:Warning: Failure at t=0.000000e+00. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (7.905050e-323)
If you remove the semicolon behind %% mass balances dy_dz=[1/u*(-r3) 1/u*(...
4 days 前 | 0
| 已接受
已回答
vectorized operations on symbolic functions
rng("default") syms x1 x2 x3; % symbolic variables y = x1^3/3 + x2^2/2 - x3; % symbolic function y X = rand(500,3) % each row...
vectorized operations on symbolic functions
rng("default") syms x1 x2 x3; % symbolic variables y = x1^3/3 + x2^2/2 - x3; % symbolic function y X = rand(500,3) % each row...
4 days 前 | 0
已回答
Dot product does not work for symbolic vectors
Since you cannot assume functions to be real-valued, you must use dot(r,r) - (r_x*r_x' + r_y*r_y' + r_z*r_z' ) instead of dot...
Dot product does not work for symbolic vectors
Since you cannot assume functions to be real-valued, you must use dot(r,r) - (r_x*r_x' + r_y*r_y' + r_z*r_z' ) instead of dot...
4 days 前 | 1
已回答
NaN in converting a sym to double
exp(lambda1*c0*eta0) and exp(lambda3*c0*eta0) evaluate to Infinity for s big enough (s slightly bigger than 0 already suffice...
NaN in converting a sym to double
exp(lambda1*c0*eta0) and exp(lambda3*c0*eta0) evaluate to Infinity for s big enough (s slightly bigger than 0 already suffice...
4 days 前 | 0
| 已接受
已回答
How to plot a three variable complex function
You cannot plot the complete result of a function that depends on three independent variables. But you can plot it on slices (i...
How to plot a three variable complex function
You cannot plot the complete result of a function that depends on three independent variables. But you can plot it on slices (i...
5 days 前 | 0
| 已接受
已回答
PDEPE solver failure (spatial discretization) ; partial differential/derivative temperature modelling
Please include the constants defined as globals so that we can test your code. One obvious error is the boundary condition for...
PDEPE solver failure (spatial discretization) ; partial differential/derivative temperature modelling
Please include the constants defined as globals so that we can test your code. One obvious error is the boundary condition for...
5 days 前 | 0
| 已接受
已回答
Packed bed storage modeling probelm
rhoS = 2750; % Solid density [kg/m^3] cpS = 850; % Solid specific heat capacity [J/(kg*K)] ks = 1.28; ...
Packed bed storage modeling probelm
rhoS = 2750; % Solid density [kg/m^3] cpS = 850; % Solid specific heat capacity [J/(kg*K)] ks = 1.28; ...
5 days 前 | 0
| 已接受
已回答
Extracting values from optimization variable and setting constraints
Defining vectors QTYup and QTYdown as integer vectors with 0<=QTYup(i)<=5 and -5<=QTYdown(i)<=0 (i=1,...,3 for tomatoes, onions ...
Extracting values from optimization variable and setting constraints
Defining vectors QTYup and QTYdown as integer vectors with 0<=QTYup(i)<=5 and -5<=QTYdown(i)<=0 (i=1,...,3 for tomatoes, onions ...
5 days 前 | 0
已回答
I am trying to form a conditional loop that shows the growth of money, I put in $1000 every year and it grows by 85 for ten years but keep returning one value
money = zeros(10,1); supersaver = 1000; Return = 0.08; money(1) = supersaver*(1+Return); % Money at end of year 1 for i = 2...
I am trying to form a conditional loop that shows the growth of money, I put in $1000 every year and it grows by 85 for ten years but keep returning one value
money = zeros(10,1); supersaver = 1000; Return = 0.08; money(1) = supersaver*(1+Return); % Money at end of year 1 for i = 2...
5 days 前 | 0
| 已接受
已回答
Getting error while trying to solve boundary condition equations.
For M1 = 0-0.4, bvp4c cannot find a solution. So I started with M1 = 0.5. close all; clear all; clc; K1=0; eta1=0.2; eta2=0....
Getting error while trying to solve boundary condition equations.
For M1 = 0-0.4, bvp4c cannot find a solution. So I started with M1 = 0.5. close all; clear all; clc; K1=0; eta1=0.2; eta2=0....
6 days 前 | 0
已回答
Meijer G-function MATLAB Implementation Problem
Cbar = 1.4361*meijerG([0],[1,1.22,1.72],[0.7200,1.2200,1.4510,1.9510,1.2550,1.7550,0,0],[],331.6059)
Meijer G-function MATLAB Implementation Problem
Cbar = 1.4361*meijerG([0],[1,1.22,1.72],[0.7200,1.2200,1.4510,1.9510,1.2550,1.7550,0,0],[],331.6059)
6 days 前 | 1
| 已接受
已回答
Where can I learn how to do regression in Matlab
First learn how to approach your problem from the statistical side, then look how to implement this theoretical approach in MATL...
Where can I learn how to do regression in Matlab
First learn how to approach your problem from the statistical side, then look how to implement this theoretical approach in MATL...
6 days 前 | 0
已回答
Trying to use Newton Raphson Method to solve circuit design
w = 1; T = 2*pi/w; tn = 0:T/40:T; I = 1e-15; Vt = 25.9e-3; Vo = 10; V1 = 6; V2 = 6; R = 50e3; x0 = [0.7;0.7]; e_d = 1...
Trying to use Newton Raphson Method to solve circuit design
w = 1; T = 2*pi/w; tn = 0:T/40:T; I = 1e-15; Vt = 25.9e-3; Vo = 10; V1 = 6; V2 = 6; R = 50e3; x0 = [0.7;0.7]; e_d = 1...
6 days 前 | 1
| 已接受
已回答
rror using odearguments @(T,Y)ODE_LR(T,Y,KF_L,KB_1) returns a vector of length 2, but the length of initial conditions vector is 10002. The vector returned by @(T,Y)ODE_LR(T,Y
Use Non_Active_Receptor_concentration0 = 100; Active_Receptor_concentration0 = 0; instead of Non_Active_Receptor_concentrat...
rror using odearguments @(T,Y)ODE_LR(T,Y,KF_L,KB_1) returns a vector of length 2, but the length of initial conditions vector is 10002. The vector returned by @(T,Y)ODE_LR(T,Y
Use Non_Active_Receptor_concentration0 = 100; Active_Receptor_concentration0 = 0; instead of Non_Active_Receptor_concentrat...
7 days 前 | 0
已回答
plot the function which is dependent on x, y and z with x, y and z on three axis.
You can plot the function on slices (i.e. 2d-objects (e.g. planes)) through the volume of interest. Of course a full plot over ...
plot the function which is dependent on x, y and z with x, y and z on three axis.
You can plot the function on slices (i.e. 2d-objects (e.g. planes)) through the volume of interest. Of course a full plot over ...
7 days 前 | 0
已回答
How do I feed ODE45 a cell array ?
Use state_dot as the function that you pass to the integrator. I followed your coding - the problem setup could have been much ...
How do I feed ODE45 a cell array ?
Use state_dot as the function that you pass to the integrator. I followed your coding - the problem setup could have been much ...
7 days 前 | 0
| 已接受