Beantwortet
Plotting of colormap for single value in x axis and multiple values in y axis
Use a contour plot https://uk.mathworks.com/help/matlab/ref/contourf.html with time and thickness as axes and temperature for ...

fast 3 Jahre vor | 0

Beantwortet
I want to solve this system of differential equations. Is there any code that can solve this?
Note that there is a discrepancy between your code and your graphics for the second ode. I took the version from the graphics ( ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
¿Qué significa la matriz que devuelve la función chol(A), si A es definida positiva pero no es simétrica?
From the documentation: If A is nonsymmetric, then chol treats the matrix as symmetric and uses only the diagonal and up...

fast 3 Jahre vor | 0

Beantwortet
Solving First order ODEs simultaneously
I'm quite sure there is no analytical solution for your system of ODEs since the right-hand sides are nonlinear in the unknown f...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
How to make change in the algorithm to start and end at a same point?
Is this an attempt to code the Travelling Salesman Problem ? If yes: it doesn't matter where the tour starts and ends since it ...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
Why I am getting "Matrix is singular to working precision"?
syms w x y z c1 lambda % system of linear equations eqn1 = 2*w + 3*x + y -11*z == 1; eqn2 = 5*w - 2*x + 5*y - 4*z == 5;...

fast 3 Jahre vor | 0

Beantwortet
Trying to solve 2 dimensional Partial differential equation using Finite Difference Method
For those who might be interested in a finite volume code for the equation above. Skerdi Hymeraj asked for such code, but delet...

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 0

| akzeptiert

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

fast 3 Jahre vor | 1

| akzeptiert

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

fast 3 Jahre vor | 0

| akzeptiert

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

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Which boundary condition is correct 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 ...

fast 3 Jahre vor | 0

| akzeptiert

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 0

Beantwortet
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); ...

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 0

Beantwortet
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)

fast 3 Jahre vor | 1

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

fast 3 Jahre vor | 1

| akzeptiert

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

fast 3 Jahre vor | 1

| akzeptiert

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

fast 3 Jahre vor | 0

| akzeptiert

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

fast 3 Jahre vor | 1

| akzeptiert

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

fast 3 Jahre vor | 0

| akzeptiert

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

fast 3 Jahre vor | 0

| akzeptiert

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

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
(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)

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 0

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

fast 3 Jahre vor | 1

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

fast 3 Jahre vor | 1

| akzeptiert

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

fast 3 Jahre vor | 0

Mehr laden