Community Profile

photo

Torsten


Last seen: Today Active since 2013

Statistics

  • 36 Month Streak
  • Ace
  • Revival Level 2
  • Knowledgeable Level 5
  • First Answer

View badges

Content Feed

View by

Answered
Putting togethor constraints for fmincon
The conditions defined under "ineqconstraint" have to be put into the matrix A and the vector b of "fmincon".

ungefär 7 timmar ago | 0

Answered
'corrcoef' doesn't return a matrix as it should, but I always get 1?
for i=1:numel(time) coefR{i} = corrcoeff((res2(i,:)).',(res3(i,:)).'); end

ungefär 7 timmar ago | 0

| accepted

Answered
plotting functions from book
c = 1; k = 1.2:0.4:2.8; u = (linspace(0,2.4,100)).'; f = (k/c).*(u/c).^(k-1).*exp(-(u/c).^(k)); plot(u,f)

ungefär 9 timmar ago | 0

| accepted

Answered
How to fill just such successive elements in row of matrix?
A = [ 0 50 0 0 0 0 0 50 0 0 0 0 50 0 0 0 0 0 50 0]; S = linspace(1,4...

ungefär 10 timmar ago | 0

| accepted

Answered
Solving Double integral equations
u_0 = 1.25663706*1e-6; % permeability of free space L = 12.4; % Axial distance between rotor back plates p =8; % Number of p...

ungefär 10 timmar ago | 0

| accepted

Answered
2nd 3rd derivatives
x = [-2:0.01:1]; y = exp(-3.*x); dy = diff(y)./diff(x); d2ydx2 = diff(dy)./diff((x(1:end-1)+x(2:end))/2); d3ydx3 = diff(d2yd...

ungefär 11 timmar ago | 0

Answered
how can i sum the 'y' above in the picture i have polt ?
x = -2:0.001:2; y = 1.8*exp(-x.^2); plot(x,y) sum(y)

ungefär 14 timmar ago | 0

Answered
How do I find the eigenvalues and vectors of an equation not of form (A*x = b*x)?
Multiply be inv(M) and use eig as lambda = eig(inv(M)*K)

ungefär 15 timmar ago | 0

Answered
Help with Graphing Difference Equations
syms x n a b f = x^2-5*x+6; xsol = solve(f==0); y = a*xsol(1)^n + b*xsol(2)^n csol = solve([subs(y,n,0)==2,subs(y,n,1)==5],[...

ungefär 15 timmar ago | 0

Answered
How to calculate the number of values in a Gaussian distribution greater than one standard deviation?
I want to calculate the number of values greater than one standard deviation. Maybe you mean one standard deviation apart from ...

ungefär 16 timmar ago | 0

Answered
what the difference between the phase and arctan?
phase(z) = atan2(imag(z),real(z)) Read the documentation for atan2 to find the differences to the usual atan function: https:/...

ungefär 16 timmar ago | 0

| accepted

Answered
Running for loop on an equation
S = [1/2, 1/3, 1/2, 1/3, 1/3, 1/2; 1/2, 0, 0, 0, 0, 0; 0, 1/3, 1/2, 0, 0, 0; 0, 0, 0, 0, 1/3, 0; 0, 1/3, 0, ...

ungefär 16 timmar ago | 1

| accepted

Answered
Why am I not getting the m array?
yinter is not a function. So use "plot" instead of "fplot" (whatever abscissa data you might want to choose). Not that yinter(3...

ungefär 17 timmar ago | 0

Answered
undefined function 'piecewise' for input arguments of type 'double'.
syms x y = piecewise(x <= 1, ((-2.*(x.^2))+9.*x-7), x > 1, ((10.*sqrt(x))+3)); fplot (x,y,[-5 5])

ungefär 17 timmar ago | 1

Answered
Graphing partial sums of harmonic fourier series
x = (linspace(-2,4,200)).'; n = 1:5; f = 1 - exp(-1) + 2*sum((1-(-1).^n*exp(-1))./(1+n.^2*pi^2).*cos(n.*pi.*x),2); plot(x,f) ...

ungefär 17 timmar ago | 0

Answered
Help using fmincon to find the 2 support locations (x1,x2) that minimize maximum bending moment
Seems you get x1 = 0 and x2 = L ... Maybe there are more constraints that have to be taken into account. L = 1; c = 1; P0 = ...

en dag ago | 0

Answered
Resultant vector from three different location and normal vector of a plane
v1 = [0.000326 -0.00018 -0.00017 ]; v2 = [0.000365 -0.00016 -0.00017 ]; v3 = [-0.00015 -0.00018 -0.00039 ]; % compute r...

en dag ago | 2

| accepted

Answered
Finding the function of the supremum
sup-norm is a theoretical concept. There is no such function in MATLAB to calculate it for a general function. In the case abo...

2 dagar ago | 1

| accepted

Answered
How to generate an exponential random variable parameter 1?
https://de.mathworks.com/help/stats/exprnd.html

2 dagar ago | 0

Answered
How to write a script to test central limit theory
rng('default') n=10; r=sum(randi(6,1000,10),2); m=mean(r); s=std(r); hold on histogram((r-m)/s,15,'Normalization','pdf') ...

3 dagar ago | 0

Answered
how to define a matrix element in matlab
A=[1 2; 3 4]; B=[5 6; 7 8; 9 1; 1 4]; B(1:2,1:2) = A; B

3 dagar ago | 0

Answered
Can i fix a sum of vector generated by Distribution Poisson?
Fix the random seed: https://de.mathworks.com/help/matlab/ref/rng.html rng('default') % e.g. lambda = 1/7; v = poissrnd(la...

3 dagar ago | 0

| accepted

Answered
Create a loop that performs calculation on 100 rows and moves to the next 100 rows in a matrix.
n = 100; m = 11700/n; dc = zeros(m,1); for count = 1:m M = q((count-1)*n+1:count*n,:); summe = 0.0; for i = 1:...

3 dagar ago | 0

| accepted

Answered
LSQcurvefit does not yield same result for comparable data sets
Use x4 = [-2.1782 5.0283 2.1782 720.8491]; instead of x4 = [1 1 1 0]; as initial guess for the parameters.

3 dagar ago | 1

| accepted

Answered
generating random no. between -pi to pi
See the example Random Numbers within Specified Intervals under https://de.mathworks.com/help/matlab/ref/rand.html

3 dagar ago | 1

Answered
How can I solve 4 simultaneous equations ?
You might want to test fsolve and lsqnonlin with different initial guesses for the parameters, but I doubt you will find a sol...

3 dagar ago | 0

| accepted

Answered
BVP4C for solving an 3rd order ODE
tmesh = linspace(0,10,100); solinit = bvpinit(tmesh, [0 1 0]); sol = bvp4c(@odefun, @bcfcn, solinit); plot(sol.x, sol.y) f...

3 dagar ago | 1

| accepted

Answered
Find the polar representation of (𝑖 − √3 )
https://de.mathworks.com/help/matlab/ref/cart2pol.html

3 dagar ago | 0

Answered
Help with time dependent ODE with a piece-wise component that needs to mirror a convolution integral
tspan1 = 0:0.01:0.2; odefcn1 = @(t,y) [y(2); -(1500.*y(1) - 1500.*(2.5.*t))./5]; y0_1 = 0; ydot0_1 = 0; ics1 = [y0_1 ydot0_1...

3 dagar ago | 0

Answered
I need help to execute a triple integral
You still didn't get the point. Look at the documentation of integral3: q = integral3(fun,xmin,xmax,ymin,ymax,zmin,zmax) appro...

3 dagar ago | 1

| accepted

Load more