Community Profile

photo

Torsten


Last seen: Today Aktiv seit 2013

Followers: 2   Following: 0

Statistiken

  • Most Accepted 2023
  • Most Accepted 2022
  • Explorer
  • Master
  • 36 Month Streak
  • Revival Level 2
  • Knowledgeable Level 5
  • First Answer

Abzeichen anzeigen

Feeds

Anzeigen nach

Beantwortet
Nested integrals spends quiet different time to calculate for different input values
The computations are not reliable because of the big span of integration. The result of the integral without the margin function...

etwa eine Stunde vor | 0

Beantwortet
Could anyone help me with my matlab bvp4c program?
The order of your functions in the dydy function handle is wrong. It should work now. %I am a Researcher, my problem is i t...

etwa 2 Stunden vor | 0

Beantwortet
How can I find the troughs of something without using the function findpeaks?
Use the "diff" function on the array "flow". A peak occurs between flow(i) and flow(i+2) if diff(i) > 0, but diff(i+1) < 0 (m...

etwa 11 Stunden vor | 0

Beantwortet
Error Using Optimization with Integer Variables and Non-linear Constraints
Replace norm_h=optimvar('norm_h','Type','integer'); prob = optimproblem('ObjectiveSense','minimize'); prob.Constraints.cons1 ...

ein Tag vor | 0

Beantwortet
A naive question regarding MATLABs definition of parabolic/elliptical PDEs (pdepe)
https://en.wikipedia.org/wiki/Elliptic_partial_differential_equation Second-order linear partial differential equations (PDEs) ...

2 Tage vor | 0

| akzeptiert

Beantwortet
How to find the point that resides on a contour that is closest to a known point?
format long Z = peaks(50)/10; surf(Z) obj = @(x,y)(x-16.35)^2+(y-0.05)^2; nonlcon = @(z)deal([],interp2(0:49,0:49,Z,z(1),z(2...

2 Tage vor | 0

Beantwortet
The standard implementation of ldl factorization in Matlab does not work correctly
From the documentation: [L,D] = ldl(A) factorizes full matrix A into a permuted lower triangular matrix L and a block ...

2 Tage vor | 0

| akzeptiert

Beantwortet
How to optimize the run time in my optimization problem.
I don't see anything obviously wrong in your coding - except for the last term in MTE_i which should be (TotalProduct(6)-Exper...

2 Tage vor | 0

| akzeptiert

Beantwortet
I'm getting the 'Not enough input arguments' error event though I am pretty sure I am giving all the arguments needed at all times
format long [x,it] = NewtonSystemSolver(5, 10^-12, 100, [5e4,0,0,0,5e4].', @Slammer1, @Slammer1Jacobian) Slammer1(x) function...

3 Tage vor | 1

| akzeptiert

Beantwortet
ode15s giving integration tolerance error and loop stopping at zeroth iteration
The evaluation of the variable "ros" for your vector of initial conditions y0est gives NaN. The reason is that you start with mL...

3 Tage vor | 0

Beantwortet
Multiple iterations for plotting
Maybe you mean h= 0.5; b = 0.5; d1= 0.474; d2= 0.035; As= 2512*10^-6; Asc= 2512*10^-6; fy= 400*10^6; Es= 200*10^9; fc...

4 Tage vor | 0

| akzeptiert

Beantwortet
There is a matrix operation, A*B=c. would there be a way to find a specific elemetn in C and call out variables that were involved in the calculation of the specific element
Since you set C = A.*B and not C = A*B, the elements that influence the value at position (i,j) in C are the elements (i,j) in A...

4 Tage vor | 0

Beantwortet
Set up a gradient descent algorithm for a multivariable economic dispatch problem
There must be something wrong in the computation of t in your code. For t=1, the usual gradient descent works: clc; clear; sym...

5 Tage vor | 0

| akzeptiert

Beantwortet
Setting Boundary Conditions & Using bvp4c
xcastle = 20; % x-coordinate of target v0 = 20; % Prescribed (...

5 Tage vor | 0

| akzeptiert

Beantwortet
Solving ODE system with a constraint/boundary condition
p_A + p_B should remain constant since dp_A/dz + dp_B/dz = 0 according to your equations. But this is not the case for p_A + p_...

5 Tage vor | 0

Beantwortet
How do I write time dependent variables in my equations of motion?
Integrate from 0 to 5 with F = 0, Vin = 280. Restart with the solution obtained and integrate from 5 to 10 with F = -10, Vin = ...

6 Tage vor | 0

| akzeptiert

Beantwortet
What is the mathematical form called for PDEs used with the MATLAB function pdepe?
Would this be considered an elliptical/parabolic PDE in conservative form? No. "Conservative" usually refers to the first spati...

6 Tage vor | 1

| akzeptiert

Beantwortet
Energy optimization robot paths
toolPositionHome = T_home(1:3,4); % Define a Set of Waypoints Based on the Tool Position waypoints = toolPositionHome + ... ...

6 Tage vor | 0

Beantwortet
I'm having an issue defining the initial conditions for solving a system of differential equations
You have two second-order ODEs for th and w. Thus you need 4 boundary conditions (not 6) that can be prescribed for w, dw/dx, ...

6 Tage vor | 1

| akzeptiert

Beantwortet
Received this error, not sure how to fix
Maybe you mean for ni=1:j instead of for ni=1+j If not, you try to access N(7) which does not exist.

7 Tage vor | 0

| akzeptiert

Beantwortet
Vector Length Error when Calling Function
You overwrite MATLAB's intrinsic "length" in the lines length = data(2:end,2) length = cell2mat(length)

7 Tage vor | 0

Beantwortet
How to match matrix elements for a condition?
If A becomes larger, this brute-force way of solving will become intractable. A = [15 25 36 17 48 59 31 64 18 21 97 84 31 64 15...

7 Tage vor | 0

| akzeptiert

Beantwortet
How do I use my data set in an equation?
Say lm is 2x6, e.g. lb = [1 2 3 4 5 6] lm = [7 8 9 10 11 12;13 14 15 16 17 18] What would you like to compute ? [log(1/7) lo...

7 Tage vor | 0

Beantwortet
error >> Matrix dimensions must agree. How to fix
z doesn't need to be prescribed in array form because you integrate with respect to z. Here I assume that the integration variab...

7 Tage vor | 0

Beantwortet
How to get the formal expression of the expansion of power of a polynomial with symbolic calculation
syms x n = 10; k = 2; a = str2sym(compose("a" + (0:n-1))) f = x^n + sum(a.*x.^(0:n-1)) g = f^k; coefficients = coeffs(coll...

7 Tage vor | 0

Beantwortet
Using MATLAB to do Numeric Calculus
Your code is correct. Here is a simpler way to define s and v. Just substitute tcrash by tmax. tcrash = 1596.2/(2*4.905)+sqrt...

8 Tage vor | 0

| akzeptiert

Beantwortet
probability that values are belong to an interval
It depends on how x is distributed. If f is the (continuous) probability density function for x, you get the probability p as ...

8 Tage vor | 0

| akzeptiert

Beantwortet
How to use ode15s to solve a stiff ode with mass?
tf = 200; x0 = [0 0 0 0 2500 0 0.8 0 50 50 50 50 5]; M = zeros(13,13); M(1,1) = 1; M(2,2) = 1; M(3,3) = 1; M(4,4) = 1; ...

8 Tage vor | 1

Beantwortet
I am getting error:Warning: Failure at t=0.000000e+00. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (7.905050e-323)
If you remove the semicolon behind %% mass balances dy_dz=[1/u*(-r3) 1/u*(...

9 Tage vor | 0

| akzeptiert

Beantwortet
vectorized operations on symbolic functions
rng("default") syms x1 x2 x3; % symbolic variables y = x1^3/3 + x2^2/2 - x3; % symbolic function y X = rand(500,3) % each row...

9 Tage vor | 0

Mehr laden