Respondida
How can I derive inverse of the matrix with infinite determinant?
What do you get if you type rank(A) ? If it's smaller than 320, no inverse exists (or is almost impossible to calculate).

más de 3 años hace | 2

Respondida
How to do failure probability estimation using the direct Monte Carlo simulation. my code does not run it gives me "untitled'' as ans
%USE MONTE CARLO METHOD TO CALCULATE PROBABILITY OF FAILURE OF WIND TURBINE %The given limit state function for the given beam ...

más de 3 años hace | 0

Respondida
how to solve a set of differential equation systems like this?
ar = 0.01; af = 0.001; x0 = 3; y0 = -3; Lr = 0; Lf = 0; z0 = [x0; y0; Lr; Lf]; [T,Z] = ode45(@(t,z)fun(t,z,ar,af),[0 11.5...

más de 3 años hace | 0

| aceptada

Respondida
Solving equation with one variable but it is present in the equation twice
syms x Vout eqn = Vout == (0.5 - x/(x+1000))*3.3*128; x = solve(eqn,x) x = matlabFunction(x) x(100)

más de 3 años hace | 0

| aceptada

Respondida
Resizing a Matrix in MATLAB?
%Q1 A = rand(106,1,100); size(A) A = squeeze(A); size(A) A = reshape(A,[106 1 100]); size(A) %Q2 A = rand(100,97); star...

más de 3 años hace | 0

| aceptada

Respondida
How to solve a system of coupled, non-homogenous differential equations of motions?
Do you know how to transform a system of 2nd order equations to a system of first order equations ? So this is the first step: ...

más de 3 años hace | 0

Respondida
Incorrect values of two-dimensional matrix after division operation
L(k,s) cancels out in your formula for ro_opt(k,s). Thus ro_opt(k,s) only depends on k, not on s.

más de 3 años hace | 1

| aceptada

Respondida
Index exceeds the number of array elements. Index must not exceed 272.
mean_value_data_smooth_1 and mean_value_data_smooth_2 only have 272 elements. Thus the values of the array elements of "time_po...

más de 3 años hace | 0

Respondida
Getting most accurate derivative (velocity) from a discrete set of position data
Start with velocity(i+1/2) = norm(position(i+1)-position(i))/(t(i+1)-t(i)) and see what you get.

más de 3 años hace | 0

| aceptada

Respondida
Merge arrays with different dimensions
T(2:nx-1,2:ny-1) = Tini(2:nx-1,2:ny-1)

más de 3 años hace | 0

| aceptada

Respondida
Find transition between two graphs in x and y
Let N be the number of data points in the first graph and M be the number of data points in the second graph. I assume N < M. I...

más de 3 años hace | 0

Respondida
how to solve a set of differential equation systems like this?
Hint: The length L(t) of a curve in parametric form (x(t),y(t)) where x(t) and y(t) are given by differential equations dx/dt...

más de 3 años hace | 0

Respondida
Why isn't fsolve working for my set of nonlinear equations?
Xlin =[ 0.0242 0.0118 0.0058 0.0029 0.0015 0.0008 0.0007 0.0005 0.0004 0.0002]; n=...

más de 3 años hace | 0

Respondida
How to do normal distribution for same data?
%Import front sonar for 30cm: sonar_F_030 = readtable("https://de.mathworks.com/matlabcentral/answers/uploaded_files/1195733/so...

más de 3 años hace | 0

Respondida
What does ~ signify in: function [x, f, g] = defineSystem(~, params)
It signifies that the function "defineSystem" is usually called with two inputs, but that the first input can be ignored in the ...

más de 3 años hace | 0

| aceptada

Respondida
Error using piecewise function
"piecewise" works on symbolic arguments. Define t = linspace(-5,5,1001); x1 = (1-abs(t)).*(abs(t)<=1); plot(t,x1) instead....

más de 3 años hace | 0

| aceptada

Respondida
How can I do a Method which returns a Rotation Matrix?
syms theta phi M = [cos(theta) -sin(theta) 0;sin(theta) cos(theta) 0;0 0 1]*[1 0 0;0 cos(phi) -sin(phi);0 sin(phi) cos(phi)]*[c...

más de 3 años hace | 0

Respondida
How do i plot a derivative versus time
[T,Y] = ode45(@reduced,tspan,y0) for i = 1:numel(T) dy(i,:) = reduced(T(i),Y(i,:)); end plot(T,dy(:,2))

más de 3 años hace | 0

Respondida
Why " The boundary condition function BCFUN should return a column vector of length 5" error message is came?
Choose a grid 0=t0 < t1 < ... < tn = tf With each grid point, associate a value ui of your control function u (the ui are your...

más de 3 años hace | 1

Respondida
Linear line that passes through the origin as a tangent to Quadratic line
The tangent to your quadratic through a point (x0,a*x0^2+b*x0+c) is given by y(x) = (2*a*x0+b) * x + ((a*x0^2+b*x0+c) - (2*...

más de 3 años hace | 0

Respondida
Implement for loop in ode45 solver
parameter.mumax = 0.42; %1/h parameter.Km = 0.25; %g/l parameter.Sin = 60; %g/l parameter.Yxs = 0.25; %g/g D = 0.1:0.1:0.5; ...

más de 3 años hace | 0

| aceptada

Respondida
Failure of initial objective function
Then set some outputs in the function "Posterior" to see where the NaN operation occurs.

más de 3 años hace | 1

Respondida
how to find all possible stationary points of a system of nonlinear equations
Your equation could become stationary if 2*x + y = pi/2 or pi + pi/2 or 2*pi+pi/2 or ... or 6*pi+pi/2 3*x + 2*y = pi/3 or pi+p...

más de 3 años hace | 1

Respondida
Solving the system of ODEs
Note that you divide by 0 since B1 = 0 at your initial point. tspan = [0 1]; nach = [0.375, 0, 0, 0].'; [t, syst] = ode45(@...

más de 3 años hace | 0

| aceptada

Respondida
I want to solve this equation for Xp while I know all others parameters.
%Defining variable syms Xp % outlet conc. Xo = 0.10; % inlet conc K = 5.83e-2; % numerical constant P = 3; % pure component...

más de 3 años hace | 0

| aceptada

Respondida
3D Plot to SURF
Given arrays x,y and z where the x,y values are not on a regular grid, you might want to try ScatteredInterpolant first https:/...

más de 3 años hace | 0

Respondida
How to receive the inverse of the diff(x) array calculation ?
x = [4 6 9 13]; s1 = -diff(x) s2 = [x(1)-x(2),x(2)-x(3),x(3)-x(4)]

más de 3 años hace | 0

| aceptada

Respondida
How to write a code for an equation in such a way that it add previous results repetitively?
xi = 5.55e5; X = ...; Y = ...; x = [xi,sqrt((X(2:end)-X(1:end-1)).^2 + (Y(2:end)-Y(1:end-1)).^2)]; % assumes X and Y are ro...

más de 3 años hace | 0

| aceptada

Respondida
Input function must return 'double' or 'single' values. Found 'sym'.
rho_w_ad and t_w_ad are functions of t. So you will have to define f4 = @(t,x,s) (1./(t-s.^4)).*(rho_w_ad(t)+t_w_ad(t).*((x./(t...

más de 3 años hace | 1

| aceptada

Respondida
Using trapz for integrating with nonuniform spacing
You mustn't use "dtime" in the call to "trapz", but the actual time vector t for which the simulation gave you the corresponding...

más de 3 años hace | 0

Cargar más