Answered
How to check irreducible Markov chain?
https://de.mathworks.com/help/econ/dtmc.isreducible.html

7 years ago | 0

| accepted

Answered
How to find if a vector has a repetitive element or not? And its repetition number
[a,b] = histc(A,unique(A)); count = a(b) returns the number of occurences of each element in vector A in array "count". ...

7 years ago | 1

| accepted

Answered
How can I shape a column vector into a matrix?
mat = (reshape(meanv,5,5)).' Best wishes Torsten.

7 years ago | 0

Answered
Help to Optimize a parameter to meet constraints
min: (Position of mass 2(t_given) - Position of mass 1(t_given))^2 under the constraints of your 4 ordinary differential eq...

7 years ago | 0

| accepted

Answered
Solution is not matching with actual equation
You can't expect to get a solution that exactly matches because you have 12 equations, but only 5 unknowns. If you use "X=A\B" t...

7 years ago | 0

Answered
Solve differential equation Systems with ODE45
Y0=[y0;vpo;hpo;0;mpo]; must be a vector of doubles. Check the type of every entry of this vector and modify your code ac...

7 years ago | 0

| accepted

Answered
How can I get inverse upper triangular matrix without these commands?
https://de.mathworks.com/matlabcentral/fileexchange/40722-tridiag-m

7 years ago | 0

Answered
How to do integrals and fft on matlab
syms w t f = sqrt(sym(2))*cos(sym(pi)/sym(2)*t)*exp(-j*w*t); F = int(f,t)

7 years ago | 0

| accepted

Answered
How can i code and solve this PDE on matlab?
c = 1; f = alpha2*sqrt(u(1))/(1-u(1))^1.5*DuDx; s = alpha1*u(1)*(2-u(1))/(1-u(1))^2*DuDx; u0=? (You didn't pr...

7 years ago | 0

Answered
How to input values into the 1st, 3rd, 5th, 7th, 9th, 11th... of a matrix
AhP(c,2*k-1) = -Ah;

7 years ago | 0

| accepted

Answered
Solve 1D Wave Equation (Hyperbolic PDE)
Solve the system of ordinary differential equations df(i)/dt = -2*(f(i)-f(i-1))/(x(i)-x(i-1)) (1 <= i <= n) f(i) @ t=0 ...

7 years ago | 0

Answered
hello .please i need to integrat this equation " dV=[1/(1+n^2 .S .V .(1-exp⁡(-n^2 . S .V)) ] dS " but with matlab but it dosn't work and i don't know wath is the solution for this.
Use ode45 for the ordinary differential equation dV/dS = [1/(1+n^2 .S .V .(1-exp(-n^2 . S .V)) ] Best wishes Torsten....

7 years ago | 0

Answered
How to estimate probabilities of an arbitrary range, based on the probability distribution of a given a data set of numbers?
%% Generate some data/series X=randi([-2 50],25,1); %Values/ranges of interest U=[-100:100]; X = sort(X) ...

7 years ago | 0

Answered
Faster inverse of a lower triangular matrix than inv(A)?
See here https://de.mathworks.com/matlabcentral/answers/332233-updating-inverse-of-a-lower-triangular-matrix why it is a b...

7 years ago | 1

Answered
Polyfit with Some Coefficients Fixed
For the case you describe, you can use "polyfitn": https://de.mathworks.com/matlabcentral/fileexchange/34765-polyfitn Best...

7 years ago | 0

Answered
Solving Coupled ODE's by ODE45
function dydt = arbit2(t,y, gamma, omega) a=3; y_fix=a*gaussmf(t,[0.5e-13 5e-13]); dydt = [(-gamma-omega)*y_fix+(omeg...

7 years ago | 0

Answered
How can I make logaritmic fitting like polyfit function
Fit log(x) against y using a linear polynomial in "polyfit". What's the problem ?

7 years ago | 1

| accepted

Answered
how do i solve the errors arising from this code?
Please check whether this is what you want: function main A_sb10 = 0; A_s0 = 1; A_10 = 0; A_sb20 = 0; ...

7 years ago | 0

| accepted

Answered
how can i calculate parameters in Gumbel distribution?
mean = mu + beta*gamma std = pi*beta/sqrt(6) Solve for mu and beta. Best wishes Torsten.

7 years ago | 1

Answered
Solving ODEs using Runge Kutta Methods
f = @(t,y)y(1)*t^2-1.5*y(1) instead of f=inline('y*t^2-1.5*y','t','y');

8 years ago | 0

| accepted

Answered
gauss forward interpolation method
dt = [tbl(k,1), tbl(k,2), tbl(k-1,3:n-1)-tbl(k-1,4:n)]./factorial(0:n-2) ? Best wishes Torsten.

8 years ago | 0

Answered
Error using bvp4c (singular jacobian encountered)
Don't start at r = 0, but at r = a small number. Best wishes Torsten.

8 years ago | 0

| accepted

Answered
Getting an error "Matrix dimensions must agree" in my matlab program.help
repmat(N,3,1) has three elements, repelem(ez,3,1) has four elements. So matrix dimensions don't agree. Best wishes Tor...

8 years ago | 0

Answered
fmincon after solve error
fun = -solve(eqn,gamma); [pilotPowerOpt,fval] = fmincon(@(x)myMatlabFunction(x(1),x(2)),x0,A,b);

8 years ago | 1

| accepted

Answered
Find the position of a minimum in an array
a=[ 3 4 2 6 0 9 ; 3 5 8 2 5 9]; [min_val,idx]=min(a(:)); [row,col]=ind2sub(size(a),idx)

8 years ago | 0

| accepted

Answered
Numerical Integration and Approximation
x = linspace(1,10,3); fx = x.^2.*exp(x); I = trapint(x,fx)

8 years ago | 0

Answered
How can I turn this Explicit method code to Implicit method code ?
L = 1; % Length of modeled domain [m] nx = 200; % Number of gridpoints t = 500; % t...

8 years ago | 0

Answered
How to force a exponential fit to go through a preestablish point (x,y)?
x0 = ...; % x coordinate of preestablished point y0 = ...; % y coordinate of preestablished point g = @(p,x)y0*exp(-p...

8 years ago | 2

| accepted

Answered
Writing a code for symbolic integration
Setting C1 = (T_i-T_inf)*(-C1*lambda_1/r0)*J1(lambda_1*r0/r0) C2 = lambda_1^2*alpha/r0^2 your function is f(t)...

8 years ago | 0

Load more