**Statistics**

**MATLAB Answers**

**0** Questions

**2,726** Answers

RANK**27**

of 249,772

REPUTATION**6,536**

CONTRIBUTIONS

**0** Questions

**2,726** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**758**

RANK

of 17,363

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 103,490

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

5 hours ago | 0

How to get certain value from matrix multiplication?

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

1 day 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*(...

1 day 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 D = P*A - (P*A)'...

1 day 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...

1 day 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

1 day ago | 0

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

3 days ago | 1

| accepted

Create random matrix (MATLAB)

Use intlinprog for the program min: 0 under the constraints sum_{i=1}^{numRows} A(i,j) = numOnesPerCol(j) (j=1,...,numCols) ...

3 days ago | 0

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

4 days 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...

4 days ago | 1

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

4 days ago | 0

| accepted

Need solution for this error

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

4 days 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 ...

5 days ago | 2

| accepted

Derivative of a function with constants

syms x a b c f = x*e^x*(a*x^2+b*x+c); df = diff(f,x)

5 days ago | 0

I want to find the five unknown of a system of five nonlinear equations. Thank you !

function main x0 = rand(5,1); x = fsolve(@fun,x0) end function res = fun(x) k1 = x(1); k2 = x(2); k3 = x(3); k4 = x(4); ...

6 days ago | 0

Errors while trying to setup equation for root finding.

function main a0 = 1; a = fzero(@fun,a0) end function res = fun(a) z_pdo = ...; k_pdo = ...; z_water = ...; ...

6 days ago | 0

Why my graph is not the same as paper!!

clear all rlength =10; %meter dx = 0.0001; Numdata = rlength/dx; %constant value Cpf=0.707; %kcal/kg.K Cpg=0.719; %kcal/kg...

6 days ago | 1

| accepted

If I have 512 matrices (entries of each matrix is looping modulo 2), how the multiplication syntax for those 512*512 matrices ?

m = 9; justRows = dec2bin(0:2^m-1)-'0'; for i = 1:size(justRows,1) A = reshape(justRows(i,:),[3,3]); M{i} = A; end

7 days ago | 0

solve four variables 1111

function main A = input('1,2;3,5'); B = input('8,-1;3,7'); C = input('2,6;8,4'); a1=A(1,1); a2=A(1,2); a3=A...

7 days ago | 1

using mat2cell

C = mat2cell(M.',ones(1,10)); % M is your 1001x10 numerical matrix

7 days ago | 0

using runge kutta RK2 on matlab

function main f = @(x,y) 5-50*y; a = 0; b = 1; n = 100; h = (b-a)/n; y(1) = 0; i = 0; for x= a:h:b-h ...

8 days ago | 0

How do I loop a fucntion over matrix columns and store the results in a column?

If R is your matrix: [m,n] = size(R); H = zeros(n,1); for i = 1:n r = R(:,i); H(i) = dfaedit(r ); end

8 days ago | 0

| accepted

Script matlab calculate vectors

syms a b c A = [a b c]; B = [-2 1 -4]; C = [1 3 2]; result = [5*a+6 3*b-2 -4*c+1]; AB = cross(A,B); AC = cross(A,C); S = ...

8 days ago | 0

| accepted

Using temperature and pressure data to estimate antoine coefficients for glycerol

antoine = @(b,T) 10.^( b(1) + b(2)./(T+b(3))); beta0 = [3.93737,1411.531,-200.566]; beta = nlinfit(T,p,antoine,beta0)

8 days ago | 1

Find the value of x when the first derivative is equal to 0

x = -pi/2:0.01:pi/2; y = cos(x); dydx = diff(y)./diff(x); [~,idx] = min(dydx.^2); xmin = (x(idx+1)+x(idx))/2 xmin is the po...

8 days ago | 0

| accepted

How to calculate numerical integral with more than 3 variables in Matlab? ( > integral3 )

Which method is best-suited depends on the specific problem. Maybe https://de.mathworks.com/matlabcentral/fileexchange/47919-i...

8 days ago | 0

| accepted

MATLAB 2010 code not working in MATLAB2012a ?

The filename must be "testingfile.m" not "TestingFile.m" Or your function must be renamed in function [z,w] = TestingFi...

8 days ago | 1

Function inside a for loop

An array of function handles is not possible. Instead, you should define s41_0 = @(a,T) a.*s_CO2(T) and evaluate it as val41...

8 days ago | 0

How can I reshape single column vector list into equally sized matrix columns

s = mod(26599,512); n = 26599 - s; m = n/512; R = horzcat(reshape(sample_test(1:n),512,m),vertcat(sample_test(n+1:end),NaN(51...

9 days ago | 0