**Statistics**

**MATLAB Answers**

**0** Questions

**2 742** Answers

RANK**27**

of 250 225

REPUTATION**6 582**

CONTRIBUTIONS

**0** Questions

**2 742** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**761**

RANK

of 17 383

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 103 885

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**

Finding the last value of a difference equation

Then iterate 2-times more starting with n=1 instead of n=-1. function res = my_matlab_function(A,N) y = zeros(N+1,1) y(1)...

1 jour ago | 0

Optimization with time-dependent constraint

Use "linprog" and define the 24 equalities SOC_i - (SOC_i-1 + c_i - d_i) = 0 (i=1,...24) in the matrix Aeq with SOC_1,...,SO...

1 jour ago | 0

Why does 40-variable optimization array exceed maximum array size preference?

It's hard to see what MATLAB does when using the problem-based approach. I prefer the solver-based approach because it is much ...

2 jours ago | 0

| accepted

Solving system of four second order ODEs

4 second-order ODEs need 8 initial conditions, not 4.

3 jours ago | 1

| accepted

5x5 matrix (P) with all 25 values unknown. I have two known matrices of size 5x5 each (A1 and A2) and the relation P*A1*inv(P)=A2. How do I obtain P?

I think you could also get such P by solving the linear optimization problem min: sum_ij (eij+ + eij-) under the constraints ...

3 jours ago | 0

eig return complex values

Use E = eig(A,C) instead of E = eig(inv(C)*A) or E = eig(C\A)

3 jours ago | 0

| accepted

Minimize norm of the complex number array with subtraction of a variable

for ii = 1:N rng default rdc0 = 1+1i; % You add one complex value to try to minimize the resulting sum of squares ...

4 jours ago | 0

| accepted

How to solve NaN when using trapz?

[num data raw] = xlsread('Flowratevel.xlsx'); for i=1:size(num,2) Num{i} = num(:,i)(~isnan(num(:,i))); end A1 = pi*Num{1...

4 jours ago | 0

| accepted

How to solve 3 TDOA equations with 3 variables x,y,z

Code for symbolic solution: syms x y z x1 = 0.60; y1 = 0.00; z1 = 0.70; x2 = 0.20; y2 = 1.30; z2 = 0.70; x3 = 0.80; y3 = 1....

4 jours ago | 0

| accepted

How to solve 3 TDOA equations with 3 variables x,y,z

If there are no specialized methods to solve the TDOA equations (did you take a look into the literature ?), I suggest trying s...

4 jours ago | 0

how to solve system of 2 differential equation with boundaries

Rewrite your equations as a system of first-order ODEs dy(1) = y(2); dy(2) = 9*phi_A^2*y(1)/(1+y(1)+y(2)); dy(3) = y(4); dy(...

4 jours ago | 0

Need help with homework (simple backwards interpolation)

Specify the extrapolation value in interp2.

5 jours ago | 0

Empty Sym when using vpasolve-operator.

e = [0.05:0.05:1]; syms tp for i=1:numel(e) eqn = 900-e(i)*5.67*10^(-8)*tp^4-20*(tp-293)==0; S{i} = vpasolve(eqn,tp); e...

5 jours ago | 0

How to solve for unknown function in integral equation?

One (maybe naive) approach: Choose 0=n(1)<n(2)< ... <n(K)< oo and z(1),...,z(K) Then use linsolve to solve the linear sy...

6 jours ago | 0

Unable to plot iterated function system

function Modern_Art A{1} = [1;2]; n = 100; r = rand(100,1); for i=1:100 if r(i)<0.01 A{i+1} = [0 0;0 0...

6 jours ago | 0

| accepted

I have an error where it says unrecognized function or variable x when using fsolve.

function main W = 1248.5*9.81; S = 17.1; list_aoa = linspace(0.0438914335842468,0.316137577406202,100); h_V_ao...

6 jours ago | 0

| accepted

How to obtain the value of the matrix X in equation AXA' = B?

If you multiply out A*X*A' for a matrix of unknowns X=(x_ij) and compare the elements with those of the matrix B, you get an (in...

7 jours ago | 1

How to get certain value from matrix multiplication?

https://de.mathworks.com/help/comm/ref/gflineq.html

8 jours ago | 0

find the minimum objective for a given ode as boundary value problem

Vector of unknowns for fmincon: (y1,y2,y3,y4)=(a,b,c,tend) Objective for fmincon: f(a,b,c,tend) = integral_{t=0}^{tend} c*(...

8 jours ago | 0

Can one help me to find Matlab coding to convert the given matrix to a symmetric matrix by rearranging rows?

Use intlinprog or bintprog to solve min: sum_{i=1}^{n} sum_{j=1}^{n} (e_ij+) + (e_ij-) under the constraints E+ - E- - (P*A -...

8 jours ago | 1

Index exceeds the number of array elements. Index must not exceed 1.

z(1)=-314; v(1)=0; h=0.1; tson=10; t=0:h:tson; L=1.5; vi=0.000001; n = 100; for i=1:n Re(i)=abs(v(i))*L/vi; Cf...

8 jours ago | 0

PdeModeler App Generic System of Equations are different from those in the Manual

https://de.mathworks.com/help/pde/ug/pde.pdemodel.specifycoefficients.html#bu7pwf5

8 jours ago | 0

| accepted

Couette flow between two plate

Underlying equation is d^2u/dy^2 = -G/mu with G = -dp/dx = const https://en.wikipedia.org/wiki/Couette_flow function main...

10 jours ago | 1

| accepted

Create random matrix (MATLAB)

Use intlinprog for the program min: sum_{i=1}^{numRows} (e1_i+ + e1_i-) + sum_{j=1}^{numCols} (e2_j+ + e2_j-) under the constr...

10 jours ago | 0

| accepted

Find the work done for the force 𝐹⃗(x,y,z)= yz𝑖⃗ + xz 𝑗⃗ + (xy+2z) 𝑘⃗⃗ along the line segment from (1,0,-2) to (4,6,3)

https://www.youtube.com/watch?v=2OFvYo5aWXg

11 jours ago | 0

| accepted

How I can determine the intersection point of two projectile

Set x1 = x2 and y1 = y2 for an intersection point of the two curves. You'll get xinter= (tan(theta2)-tan(theta1))/(g/(2*(v2*co...

11 jours ago | 1

| accepted

how to write this in matlab?

result = sin(pi/2)^2 + tan(3*pi^2)

11 jours ago | 0

| accepted

How to find a proper algorithm to solve this optimal control problem?

This should give you a start: %Optimal advertising expenditure in monopoly %% Constants p = 100; a = 0; b = 0.07; c = 0.04...

11 jours ago | 0

| accepted

Need solution for this error

First get a fid to open your file: fid = fopen( filename )

11 jours ago | 0

Solving coupled Partial Differential Equations using method of Lines

For the pdepe version, better use function [pl,ql,pr,qr] = pdex2bc(zl,Cl,zr,Cr,t) Cin =[1 1 0 0]; % inital concentrations ...

12 jours ago | 2

| accepted