Answered
Using Multistart in an unconstrained optimization
D = [1.00 0.00 1.01 0.03 1.12 0.14 1.24 0.23 1.39 0.32 1.61 0.41 1.89 0.50 2.17 0.58 2.4...

4 years ago | 0

Answered
Why am I not getting desired values using loop?
br_peaks = [1 2 3 4 5 6 7]; lbr = numel(br_peaks); points = repmat(br_peaks,lbr,1); for iii = 1:lbr for jj = max(1,iii-3...

4 years ago | 0

Answered
how to use for loop to get a value of y at different time?
The requirement that you can evaluate Y for different values of t is that you get a solution for Y from your code. I don't get a...

4 years ago | 0

| accepted

Answered
Plotting function with differenting constant
Include the command hold on after the line fplot(y{i}); such that preceeding graphs are not overwritten.

4 years ago | 0

Answered
how to solve integral in the defining the function command?
integral_{0}^(t) I(phi) dphi = normcdf(t,0,0.1) - 0.5 So you can work with y(1) = normcdf(t,0,0.1) - 0.5 in your equations.

4 years ago | 0

Answered
I want to find the best coefficients for curve fitting for my experiment data
Your code ? Essential in your case is a good starting guess for the parameters. Try the following code and take the coefficien...

4 years ago | 0

Answered
How to find empirical and estimated (Weibull) probability density
https://de.mathworks.com/help/stats/histfit.html

4 years ago | 0

Answered
Add equations to my polynomial fit on the graph
x=linspace(0.1,0.5,5); y=[32.2,36.1,42.2,65.67,67.3]; plot(x,y,'.',MarkerSize=15) hold on % Fit line to data using polyfit ...

4 years ago | 0

Answered
Is there a function that transforms a symmetric matrix into a diagonal of Eigenvalues with transforms on either side?
If this is not what you want, please tell us what you want. A = [3 7;7 4]; [V,D] = eig(A) V*D*V.'

4 years ago | 2

Answered
How can I find the magnitude of a vector B when I know the unit vector B, the vector A and the result cross product of AXB?
Calculate A x B_unit Then the magnitude of B is m = norm(A x B)/norm(A x B_unit) where B_unit is the unit vector in the d...

4 years ago | 1

| accepted

Answered
How i can find the difference between 2 values.
T1=[1.5 2.5 3.5 4.5]; T2=[1.2 2 3 4]; Difference = T1 - T2

4 years ago | 0

Answered
Colebrook equation and approximation
Part a) γ = − (1/√0.25) log10( e/7.4R + 5.7/Re^0.9) Part b) v = vmax(1 − r/R)^1/γ ; plot(r,v) What's the problem ? You already...

4 years ago | 0

Answered
How can I retrieve dY when using ode15i
sol = ode15i(@f,tspan,y0,yp0); [Y,dY] = deval(sol,tspan); plot(tspan,dY(:,2))

4 years ago | 0

| accepted

Answered
value transform by for loop
Floating point arithmetic. To check for equality (==) always gives problems. Take a look at https://de.mathworks.com/help/matl...

4 years ago | 0

Answered
solving a coupled system of differential equations
Can you solve a + b = 2*x_dot*z_dot 3*a + b = -3*x*z for a and b ? Once you've done this, your system can be written as x...

4 years ago | 0

| accepted

Answered
I'm having trouble with ode45. It keeps getting the "not enough input arguments" error.
[t,x]=ode45(@f,ts,xo); instead of [t,x]=ode45(f,ts,xo);

4 years ago | 0

| accepted

Answered
Ode45 produces Nan output as I try to solve a differential equation.
T1m = 300; Rm = 0.3243; Rt = 0.45; Rh = 0.1985; n =101; r = linspace(Rh,Rt,n); Cp = 1015; Vt1m = 87.88; Va1m = 211.45; Vt1 = ...

4 years ago | 0

| accepted

Answered
Don't know where my code is wrong and how to fix it
Pi = sym(pi) double(Pi) Pi = sym('pi') double(Pi) You understand the difference ?

4 years ago | 0

| accepted

Answered
How to use symsum command for a function of two variables and two indices?
syms x y i j assume(i,'integer') assume(j,'integer') A = symsum(symsum(x^i*y^j/factorial(i+j),i,0,Inf),j,0,Inf) x0 = 0:0.2:1...

4 years ago | 0

| accepted

Answered
How can I calculate the H0_LOS & P_rec_dBm and draw it at every new psi value?
If psi becomes an array instead of a single value, the expression (m+1)*A_det/(2*pi*d_tr^2)*cos(phi)^m*cos(psi) also becomes ...

4 years ago | 1

| accepted

Answered
Problem with function output Problem with function output
y must be a vector with element between min M and max M. This doesn't seem to be true in your case since you generate y in bet...

4 years ago | 1

| accepted

Answered
Fitting Kinetic model to estimate kinetic parameter.
You treat the initial conditions at t=0 as unknowns k(8:14). But you have the concentrations at t=0 from your experimental data...

4 years ago | 0

Answered
symbolic integration depends on different equivalent forms of function
The difference is a usual "constant of integration". If you differentiate both B and B_ with respect to y and then with respect...

4 years ago | 0

Answered
How shall I sort along a dimension?
sort(A,3,'descend')

4 years ago | 0

Answered
"Sort 3_D array along the third dimension"
It means that B(:,:,1) <= B(:,:,2) is arranged by ordering the vectors [2,-1], [3,9],[1,0] and [6,12].

4 years ago | 0

Answered
Plotting 2-D regions without prior knowing the numeric limits
https://de.mathworks.com/matlabcentral/fileexchange/9261-plot-2d-3d-region

4 years ago | 0

| accepted

Answered
Code to repeat rows multiple times
table = ['1/12/22';'1/13/22';'1/14/22'] new_table = repelem(table,3,1)

4 years ago | 0

| accepted

Answered
When substituting an expression into an functions its keeps flipping the sign of the substituting
(2-6*a)^2 = (6*a-2)^2 (1-14*a)*(2-6*a) = (14*a-1)*(6*a-2) (1-14*a)^2 = (14*a-1)^2 So why is it so important for you that the ...

4 years ago | 0

| accepted

Answered
How to modify the code to get my desired array?
N = 9; d = 0.25; rx = [(N-1)/2*d:-d:d,zeros(1,(N+1)/2)].'; ry = [zeros(1,(N+1)/2),d:d:(N-1)/2*d].'; r = [rx,ry,zeros(N,1)]

4 years ago | 0

| accepted

Load more