Answered
Iterating using while loop over a vector
And how do we obtain ro_j and z_j from P_(j-1) in step 4 ? And how to calculate P_j ? j = 0; error = 1; rho=[1,0,0,0,0,0,0,0...

3 years ago | 0

Answered
Some one check this code of solving ODEs . Is it correct or not?
Now it's smooth. But you still don't know whether the results are correct if you don't test your code with differential equation...

3 years ago | 1

| accepted

Answered
How to find coordinates of intersecting line?
fs= 8192*2; % sampling frequency dt = 1/fs; % sample time ...

3 years ago | 0

Answered
How to solve a differential equation with a time-varying term?
Use "interp1" to interpolate the elements of K to the time t requested by the ODE integrator.

3 years ago | 0

| accepted

Answered
How to solve the following third-order ordinary differential equation with bvp4c
xmesh = linspace(0,10,2000); solinit = bvpinit(xmesh, @guess); sol = bvp4c(@bvpfcn, @bcfcn, solinit); plot(sol.x, sol.y(1,:))...

3 years ago | 0

| accepted

Answered
help solve odefcn with time dependence
tspan = 1:0.1:10^3; y0 = [sqrt(0.9) sqrt(1.1) sqrt(1)]; U=1; J=1; N=3; % gewenste aantal deeltjes per site mu=U*N-J; % che...

3 years ago | 0

| accepted

Answered
Help Please! I'm plotting curve for (7,4) hamming code.
ber(a) = numerrs/num_bits; instead of ber = numerrs/num_bits;

3 years ago | 0

Answered
Plotting multiple quadrics in 3D
https://de.mathworks.com/help/matlab/ref/fimplicit3.html

3 years ago | 0

Answered
Finding volume of a solid generated by revolving a curve.
Compute the volume V1 of the solid generated by revolving y = sqrt(x) around the x-axis between 0 and 2. Compute the volume V2 ...

3 years ago | 0

Answered
how to define an iteration number ?
The number of iterations is initialized as 0 : i = 0; Within the while loop, for each time the while loop is repeated, the nu...

3 years ago | 1

Answered
how to make a 3x3 matrix a 9x1 matrix?
x=[ 1 2 3; 4 5 6; 7 8 9]; x = reshape(x.',[9 1])

3 years ago | 0

Answered
Find x and y values of a 2D gaussian given a value for the function
Note that g0/exp(1) will not work in the below case since f(x,y) >= a(4) = 1 for all (x,y). a = [1 1 1 1 1 1]; f = @(x,y) (a(1...

3 years ago | 0

| accepted

Answered
solving non linear equations
syms x y z errX = 10; errF = 10; imax = 25; TolX = 1e-8; TolF = 1e-8; f = [ x^2+x-y^2+x*y+z^2-3 5*(y^2)+y+y*z-x^...

3 years ago | 0

Answered
How do you solve a System of 11 Non-Linear Equations Inter-linked to one another?
U0 = [663 255]; options = optimset('TolX',1e-12,'TolFun',1e-12); format long U = fsolve(@fun,U0,options) fun(U) function ...

3 years ago | 0

Answered
initial value problem integration
You get an implicit equation in h that must be solved numerically for h for a given value of t: syms h t f = (-9.5883*h^5+110....

3 years ago | 1

Answered
Error using / Matrix dimensions must agree.
kappa=K./RHOCP; instead of kappa(i,j)=K/RHOCP;

3 years ago | 1

| accepted

Answered
Why is my ode15 differential equation solver acting like this?
Seems you have an error in the sign of the time derivative for mp: dmp = -(2*pi)*D*Cm*dp*(cp-cinf); %% differential for mass (m...

3 years ago | 0

Answered
How do I correctly use vpasolve?
You have 2 equations for 1 unknown. MATLAB's symbolic toolbox does not solve such systems. Is n supposed to be real or complex ...

3 years ago | 0

Answered
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).

3 years ago | 2

Answered
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 ...

3 years ago | 0

Answered
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...

3 years ago | 0

| accepted

Answered
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)

3 years ago | 0

| accepted

Answered
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...

3 years ago | 0

| accepted

Answered
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: ...

3 years ago | 0

Answered
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.

3 years ago | 1

| accepted

Answered
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...

3 years ago | 0

Answered
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.

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

Answered
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...

3 years ago | 0

Answered
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...

3 years ago | 0

Load more