Respondida
Help with Difference Equation in MATLAB
If V_i, h_i, C, K and theta_0 and theta_1 are given, you can solve for theta_(i+1) and compute theta in a loop. theta(i+1) = ((...

alrededor de 1 año hace | 0

| aceptada

Respondida
Integrations of Bessel functions
For the first integral I_1, see https://math.stackexchange.com/questions/393399/integral-of-product-of-bessel-functions-of-the-...

alrededor de 1 año hace | 0

| aceptada

Respondida
Solving linear system of equations
I think you mean %Parâmetros x=0; del=0; al1=0.707; oc=0.3; Gamma1=1; Gamma3=1; g1=1/100; %Matriz a ser diagonalizada ...

alrededor de 1 año hace | 0

| aceptada

Respondida
Calculate eigenfunctions to known eigenvalues
https://en.wikipedia.org/wiki/Inverse_iteration You could also try null(A-lambda*eye(size(A))) where lambda is a given eigenv...

alrededor de 1 año hace | 0

Respondida
Deactivate trial toolbox and reactivate on another machine?
This is AI's answer under "Google": To use a MATLAB toolbox trial on a new computer, you'll need to deactivate the trial on th...

alrededor de 1 año hace | 1

Respondida
TCC Connection design matrix
You can code it with V and C being sparse. For simplicity, I used full matrices. n = 50; V = zeros(n); s = zeros(n,1); V(1,1...

alrededor de 1 año hace | 0

Respondida
Unexpected results using SVD to separate components that make up a function
Others have already explained why you cannot recover p1, p2 and p3 from an SVD of p = p1 + p2 + p3. All you can do is write p...

alrededor de 1 año hace | 0

Respondida
How can i get to get this curve in red when the vector is moving? The curve results from the displacement of the tip of the vector
% Définir les vecteurs de la base O (i, j, k) i = [1; 0; 0]; % Vecteur i j = [0; 1; 0]; % Vecteur j k = [0; 0; 1]; % V...

alrededor de 1 año hace | 0

| aceptada

Respondida
Error plotting orbits figure
Seems that most of the missing functions are available under http://www.rotordynamics.info/ (Software for Lateral Vibrations, ...

alrededor de 1 año hace | 0

| aceptada

Respondida
Counting the number of increments in a vector
x = 0:0.1:7; numel(x(x<=3))

alrededor de 1 año hace | 0

| aceptada

Respondida
Get mean of a matrix which has NaN in it
grades = [2,4,6; 5, NaN, 1; 7, 2,NaN] mean(grades,1,"omitnan")

alrededor de 1 año hace | 0

Respondida
Resonance in moonpool type structures
I'd change k(n) = lsqnonlin(fun_alpha, guess, x0_left, x0_right); to k(n) = lsqnonlin(fun_alpha, guess, x0_left, x0_right,op...

alrededor de 1 año hace | 0

| aceptada

Respondida
Incorrect results for subtraction despite working for other use cases.
"segments_of_free_space" and "focal_lengths" (or "f" and "gaps") must have the same number of elements because you reference gap...

alrededor de 1 año hace | 0

Respondida
MATLAB Onramp: Help with Plots
The problem seems to be known: https://uk.mathworks.com/matlabcentral/answers/2178891-why-does-my-answer-to-a-task-show-up-as-i...

alrededor de 1 año hace | 0

| aceptada

Respondida
Help with Solving PDE System with DAE in MATLAB
You have discretized your equations in space. Thus the y variables are only functions of time for fixed z-coordinates. Here is...

alrededor de 1 año hace | 1

Respondida
Solving DE initial value problem symbolically in Matlab
By default, y is assumed a function of t: syms x y(t) sol(t) = dsolve('x*Dy+y=-sin(x)','y(pi/2)=0') simplify(x*diff(sol,t)+so...

alrededor de 1 año hace | 0

Respondida
How to iteratively solve when equations are dependent on each other.
Sigma_ysrtM = load("Sigma_ysrtM.mat").Sigma_ysrtM; T_oQlast = load("T_oQlast.mat").T_oQ; K_dot_nom = load("K_dot_nom.mat").K_d...

alrededor de 1 año hace | 0

Respondida
dispersion equation in water waves
I solve in y = x*h. Thus the result has to be divided by h to get x. k(j,n) = fzero(@(y)fun_alpha(y,omega(j)),y0_alpha)/h; The...

alrededor de 1 año hace | 0

Respondida
Difference between integral and cumtrapz.
Your input arguments to "cumtrapz" are reversed: you have to use intfx = cumtrapz(x,fx); instead of intfx = cumtrapz(fx,x); ...

alrededor de 1 año hace | 0

Respondida
Please 🙏 help me to find the exact solution of ODE
I doubt you can get an analytical expression for y. All you can do is to transform your 2nd order ODE into a system of first-ord...

alrededor de 1 año hace | 0

| aceptada

Respondida
Storing value in a matrix from a for loop.
Don't use "size" as a variable name - it's a MATLAB - reserved function: https://uk.mathworks.com/help/matlab/ref/double.size.h...

alrededor de 1 año hace | 0

| aceptada

Respondida
How to store a matrix so that I can call upon it in any other file I am working in?
Declare the matrix as "global" or pass it as input argument to all functions where it is needed. Or save it as a .mat-file and ...

alrededor de 1 año hace | 1

| aceptada

Respondida
Gaps in contour plot using custom secant method (when solving for two-plume merger)
The equation for rho is a polynomial of degree 4. The MATLAB function "roots" solves for the four zeros of this equation. I ...

alrededor de 1 año hace | 0

| aceptada

Respondida
May I ask everyone to help me solve this problem
I'm not sure, but if you want to integrate the normal distribution, use "mvncdf". integral2 can be very inaccurate when integrat...

alrededor de 1 año hace | 0

Respondida
Clustering using Gower's Distance
To use a distance that is not implemented, you have to define a function handle. Since I guess that GowerDst is not a function h...

alrededor de 1 año hace | 0

| aceptada

Respondida
Why do I get the wrong values for enthalpy on the P-h diagram block in Simulink/Simscape?
The reference enthalpy for R-134a is often given for the saturated liquid at -40°C, with a value of 148.4 kJ/kg. If you look at ...

alrededor de 1 año hace | 1

| aceptada

Respondida
Problems plotting an implicit solution to a differential equation
For more complicated cases where an explicit solution cannot be found: syms y(x) eqn = diff(y) == (2*x+y+2)/(2*x+y-4); soluti...

alrededor de 1 año hace | 0

| aceptada

Respondida
fft function seemingly not evaluating correctly
syms x f = 1/(2*sym(pi))*exp(-0.5*x^2); fourier(f) The Gaussian Pulse example under https://uk.mathworks.com/help/matlab/ref...

alrededor de 1 año hace | 0

Respondida
mvncdf seems to be violating the additive property of integrals
The complete IR^2 is made up of four quarter zones, not two. Sketch the quarter zones over which you integrate to understand wha...

alrededor de 1 año hace | 1

| aceptada

Respondida
how to evaluate the integral of the expression involving bessel functions.
l = 0; R_I = 2; N = 3; P = 3; k = [0.28,0.2,0.1,0.05]; %[k0,k1,k2,k3] e = [0.3,0.9,0.7]; %[e1,e2,e3] d = [0.1,0....

alrededor de 1 año hace | 0

Cargar más