# Torsten

**Statistics**

**MATLAB Answers**

**0** Questions

**4.004** Answers

RANK**22**

of 265.146

REPUTATION**9.658**

CONTRIBUTIONS

**0** Questions

**4.004** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**1.084**

RANK

of 18.111

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 116.236

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

How to solve differential equation including derivative of eigenvalue of tensor?

A third variante of the code also seems to work under MATLAB ( for high values of the integration tolerances :-) ) syms s A = ...

ongeveer 6 uur ago | 0

The (x,y) coordinates of a certain object as a function of time t are given by x(t) = 5t - 10; and y(t) = 25t2 – 120 t + 144, for 0 ≤ t ≤ 4. 1)

syms t x = 5*t-10; y = 25*t^2-120*t+144; distance_squared = x^2+y^2; d_distance_squared_dt = diff(distance_squared,t); time...

ongeveer 7 uur ago | 0

plotting a graph in a range

R = 2.303 * 8.314; F = 96500; ratio = @(T,eqv,z) exp(eqv*(z*F)./(R*T)); T = 283:313; plot(T, ratio(T,-0.06,1))

ongeveer 19 uur ago | 0

| accepted

Array indices must be positive integers or logical values.

Everywhere where you want to multiply two quantities, you must set the multiplication sign. Something like r1 = k1(xch4*xh2o*P...

ongeveer 24 uur ago | 0

How do I solve a triple integral with one integral limit in function of another variable

beta1= 1.72; mo1=5; rmin1=10; rmax1 = 20; mmax1 = 10; fun=@(r,m,s) r.*exp(-(s.^2/2 + beta1*(m-mo1)))./sqrt(r.^2-rmin1); z...

1 dag ago | 1

2D Temperature distribution from 1D temperature distribution T(x)

x_position = [0.05; 0.0625; 0.075; 0.0875; 0.10; 0.1125; 0.125; 0.1375; 0.15; 0.1625; 0.175; 0.1875; 0.2; 0.2125; 0.225; 0.2375...

1 dag ago | 0

| accepted

How to solve differential equation including derivative of eigenvalue of tensor?

Here is a numerical code to solve your problem. It's risky to use this approach since - as Walter Roberson noted - the ordering...

1 dag ago | 1

y(k + 2) = 0.25y(k), y(0) = 0, y(1) =1 (b). Write a Matlab script that solves y(k) pointwise for k =0,1,2,…,10. Ruun the program and verify that the solution is in accordance

Initialize y(1) = 0, y(2) = 1 and use a for-loop to calculate y(k+2) starting with k = 1 and ending with k = 9.

1 dag ago | 0

How to solve coupled second order ODE?

b = 0.1; fun = @(t,y)[y(2);-b*y(2)*sqrt(y(2)^2+y(4)^2);y(4);-b*y(4)*sqrt(y(2)^2+y(4)^2)]; y0 = [0;44.5;80;0]; tspan = [0,10];...

2 dagen ago | 0

Getting the summation of a series

h=[ 1 3 5 7 9 11 13 15] ; ah = [35.8577 -6.2962 -1.2855 3.9251 -3.8197 2.2690 -0.4077 -0.9397 ]; alpha = lins...

2 dagen ago | 1

| accepted

Using fminsearch() for MSD system

p0 = [50 400]; p = fminsearch(@fun,p0) function objective = fun(p) k2 = p(1); c2 = p(2); %tspan = [0,0.3]; %observing sys...

2 dagen ago | 0

| accepted

Create a unit vector from two locations?

is this correct? No. MTH2 = [0.472 1.364 0.06] CoM = [0.471 1.147 0.903] UnitVector = (CoM - MTH2) / norm(CoM - MTH2)

2 dagen ago | 0

how to use derivative of function using gradient?

Forget about y(13) and use dydz(2) = y(3); %Specific mass balance (CH4) dydz(3) = ((y(1)*y(3))+(dens_cat_weighted*r_CH4))/(D_m...

2 dagen ago | 1

How to solve differential equation including derivative of eigenvalue of tensor?

See if it works. I cannot test it. syms s A = sym('A',[3 3]); % Define characteristic polynomial determinant = det(A-s*eye(3...

2 dagen ago | 1

Solving a numeric equation matlab shows results with up to 32 decimals. How can I get this for the operation below for Exmpl? format longE for Exmpl. allows only 16 digits.

digits(100) vpa(sqrt(sym('3')))

2 dagen ago | 0

| accepted

Minimalization problem LinearConstraint and conjugate gradient optimizer

According to the Python code, F is maximized, not minimized. Change in the below code if appropriate. M = [0.170543 0.327434 0....

2 dagen ago | 0

| accepted

Performing Chi Square Test

Source: https://de.mathworks.com/matlabcentral/answers/96572-how-can-i-perform-a-chi-square-test-to-determine-how-statistically...

3 dagen ago | 0

Substitute symbolic matrices into numerical matrices

Do you know Cramer's rule ? A = sym('A',[3 3]); b = sym('b',[3 1]); x = sym('x',[3 1]); sol = solve(A*x==b,x) And now pleas...

3 dagen ago | 0

System of Nonlinear Equations are failing to be solved

In my opinion, it should be eq1 = C_arg + P_arg == pi-phi_m*pi/180; instead of eq1 = C_arg + P_arg == pi-phi_m*180/pi; (see ...

3 dagen ago | 1

| accepted

Force a starting point on exponential graph

You must normalize to time = 0, not time = 24.4. The initial mass is the key, not the mass when already 24.4 (whatever) have pa...

3 dagen ago | 0

How do I write the below code in efficient way in MATLAB?

Q = [16,32,64,128,256,512,1024]; VEC=[0.2380 0.2380 0.2380 0.2380 0.2380 0.2380 0.2380 1.1898 1....

3 dagen ago | 0

| accepted

Please help me in plotting the following functions.

Limits of Euler's beta function are 0 and 1, not a and b. So C_m,i^nu = beta(i*nu+3,(m-i)*nu)/beta(i*nu,(m-i)*nu) + 2 and th...

3 dagen ago | 0

How to plot 4 curves with different constants?

y = @(C,x) (C-x)./(1+x.^2); C = [1 2 3 4].'; x = -2:0.1:2; plot(x,y(C,x))

5 dagen ago | 0

Use of 'ArrayValued' in Matlab numerical integration

f = @(x) 5*ones(size(x)); integral(f,0,2)

5 dagen ago | 1

How to write a code that takes a vector and outputs true if its the same forwards as it is backwards and false if not?

https://de.mathworks.com/help/matlab/ref/flip.html answer = isequal(v,flip(v))

5 dagen ago | 1

Unable to perform assignment because the size of the left side is 360-by-1 and the size of the right side is 360-by-360.

Elementwise division is required: hip_percent(:,2) = 0.14*asis_d./hip_d + 0.5*(hip_d - asis_d)./hip_d; or simpler hip_percent...

6 dagen ago | 0

| accepted

angle function in matlab formula

It's all written in the MATLAB documentation of "angle": Algorithms angle takes a complex number z = x + iy and uses the atan2...

6 dagen ago | 1

Using anonymous functions with vectors of unknown number of elements and getting the coefficients associated with the variables

Then n_s = 2; u = randi([-9999, 9999], 1, n_s) c = sym('c',size(u)); kappa = expand((1+u*c.')^2) coefficients = coeffs(ka...

6 dagen ago | 1

| accepted

Nonlinear regression not working

clc; clear all; input0= [160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136...

6 dagen ago | 0

| accepted

Find close points in two matrices of coordinates

Use "pdist2" to calculate the distances of the sites of the first set to the sites of the second set. Check which rows of the d...

6 dagen ago | 0

| accepted