Community Profile

photo

Torsten


Last seen: Today Actif depuis 2013

Statistiques

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

Afficher les badges

Content Feed

Afficher par

A répondu
Finding Imaginary roots of a function
As you can see from your code above, you choose tauInit = [0 0] for k = 501, and your function returns NaN for the real part of ...

42 minutes il y a | 0

A répondu
How do I calculate the area of ​​the graph area below the baseline? (matrix plot)
Your X-vector has two elements more than your Y-vector. After you have corrected this, you could use idx = find(Y<=214.5); val...

environ 22 heures il y a | 1

| A accepté

A répondu
Matlab creates same input values every time? Why?
Shouldn't the Matlab give me different values every time I open and close it? No. But you get different values if you call the ...

environ 23 heures il y a | 0

| A accepté

A répondu
How can I convert a 666by3 matrix into 666 row matrices?
If M is your 666x3 matrix, then Mi = M(i,:) is the i-th row of M and is of size 1x3. You don't need the conversion to 666 1x3 ve...

1 jour il y a | 0

| A accepté

A répondu
Which boundary condition is coorect or what will be the correct alternative?
If you can estimate the heat transfer coefficient k between PVC material and roller, you could use -lambda_PVC * dT_PVC/dn = k ...

1 jour il y a | 0

| A accepté

A répondu
How can I plot graph only specific coordinate values from a PDE solved using the FEM method?
For a stationary computation: https://uk.mathworks.com/help/pde/ug/pde.stationaryresults.interpolatesolution.html What is the ...

2 jours il y a | 0

A répondu
Error in the use of fminunc function
Put your three lines of code in a script file, call it "test.m", load it in the MATLAB editor and execute the script by the gree...

2 jours il y a | 0

A répondu
Random points on a curve
mat = load("Vx and t.mat") t = mat.t; Vx = mat.Vx; hold on plot(t,Vx) n = 100; % number of random points r = rand(n,1); ...

3 jours il y a | 0

A répondu
Getting Matrix Dimensions Error from Using "/", help with understanding problem?
If count is a square matrix, use percentHr = 100 * (totalbyhour ./ totalintersection.'); if you just want to divide each eleme...

4 jours il y a | 0

A répondu
How to solve 2nd order coupled differential equations?
M*x'' + A*x' + B*x = v -> x'' = M^(-1) * (v - A*x' - B*x) -> u1' = u2; u2' = M^(-1) * (v - A*u2 - B*u1)

4 jours il y a | 1

A répondu
How I can run following code for different p and t values?
t=[82 83 84 85 86 87 88 89]; p=[8 7 6 5 4 3 6 8]; x = arrayfun(@(t,p)LiBrH2O(t,p),t,p); x function [x] = LiBrH2O(t,p) % F...

4 jours il y a | 1

| A accepté

A répondu
Using global optimization Matlab toolbox and genetic algorithm to minimize black-box function
rng default a = optimvar("a","LowerBound",0,"UpperBound",10); b = optimvar("b","LowerBound",0,"UpperBound",10); c = optimvar(...

5 jours il y a | 1

| A accepté

A répondu
recursively fill a matrix within function
Return "A" from function "adjustment" as output argument and fill "AA" in the calling program.

5 jours il y a | 0

| A accepté

A répondu
How to deduct obtained fuel value from initial weight
Most probably something like this. I don't know where you use some of the defined variables - they seem to be superfluous. %% C...

6 jours il y a | 1

| A accepté

A répondu
Why do i recieve Dot indexing is not supported for variables of this type error when i call my function
Use [t, vecste] = ode45(@(t,vecste)eom(t,vecste,spec,aero,thrust), tspan, stvecinit); instead of [t, vecste,spec,aero,thrust]...

6 jours il y a | 0

| A accepté

A répondu
Numerical error for same MATLAB function but generated differently
General answer for an unspecific question: https://uk.mathworks.com/help/symbolic/choose-symbolic-or-numeric-arithmetic.html E...

6 jours il y a | 0

| A accepté

A répondu
Adding inequality constraints in DAE system
You can't. These problems usually appear in optimal control problems where the DAE integrator is coupled with an optimizer. Par...

7 jours il y a | 0

| A accepté

A répondu
(ASAP)why symsum can not calculation?????
t = -2:0.1:2; a = 1; N = 60; n = (1:N).'; f = sinc(n/2).*cos(2*pi*a*n.*t/4); s = 0.5 + sum(f,1); plot(t,s)

7 jours il y a | 0

A répondu
Solving a system of equtions with first an pde and the others first order odes
"pdepe" does not support pure ODEs together with a partial differential equation with 2nd order derivatives in space. Use "pde1...

7 jours il y a | 0

A répondu
Mackey Glass equation and ddesd
I'm not sure what you are exactly asking for, but for a history v = 0, the solution is v = 0 for all times t > 0. So the plot y...

8 jours il y a | 0

A répondu
Moment of Lognormal distribution
https://math.stackexchange.com/questions/628681/how-to-compute-moments-of-log-normal-distribution or with MATLAB (the second re...

8 jours il y a | 1

A répondu
I don't know why my code makes odeToVectorField error
From the documentation: odeToVectorField can convert only quasi-linear differential equations. That is, the highest-order deriv...

8 jours il y a | 0

| A accepté

A répondu
Pareto frontier plot error
In both examples, the two objective functions are not "competitive" since both have (0/0) as optimum combination for x1 and x2 i...

9 jours il y a | 0

A répondu
Application of any numerical root finding method (secant, bisection, etc.)
Plot first, then solve by using the approximate root as initial guess: Cs = 0; d = 0.5; g = 9.81; %User definition of input ...

9 jours il y a | 1

| A accepté

A répondu
It's a question of finding a static integral There's an error in the formula
integral(@(x)(x+2)./(x+1).^3-exp(-3*(x+3)),0,3) If you cannot input a mathematical formula in MATLAB, I suggest you invest 2 ho...

9 jours il y a | 0

| A accepté

A répondu
How do I solve an equation with an unknown variable?
I always use pencil and paper: v=70 ; ro=1.225 ; Sw=5 ; c=0.5 ; CM_ac = -18/(0.5*ro*(v^2)*Sw*c)

9 jours il y a | 0

A répondu
Creating 'n' matrices with each one with 'n' in its name
YEAR{n} = zeros(DATE_RANGE(n,3));

10 jours il y a | 0

| A accepté

A répondu
Matlab double sum over vectors
Note that -pi<=kx<=pi, -pi<=ky<=pi, -pi<=kx'<=pi, -pi<=ky'<=pi because of your linspace choice. And most probably you need to n...

10 jours il y a | 0

A répondu
Solving symbolic third order polynomial
syms t t0 t1 q0 q1 q0dot q1dot a0 a1 a2 a3 f(t) = a0 + a1*(t-t0) + a2*(t-t0)^2 + a3*(t-t0)^3; df = diff(f,t); S = solve([f(t0...

11 jours il y a | 1

A répondu
The number of rows in A must be the same as the number of elements of b error
% Define the coefficients of the objective function as a double vector c = -[-6, 3, 17, 10, 63, 34, 15, 22, -2, 15, ... ...

11 jours il y a | 0

Charger plus