Beantwortet
Quadratic assignment problem in matlab
https://de.mathworks.com/matlabcentral/fileexchange/53110-quadratic-assignment-problem-qap-using-ga-pso-and-fa

fast 4 Jahre vor | 0

Beantwortet
Optimization - non-linear eqn. genetic algorithm
Your problem is linear - thus use linprog instead of ga: f = -[ 1 1 1 1]; A = [0.8 0.2 0 0;0 0 0.45 0.55;-0.8 -0.2 -0.45 -0.55...

fast 4 Jahre vor | 0

Beantwortet
How to explain a difference in solutions of integrals between MATLAB and MAPLE?
https://www.wolframalpha.com/input?i=integration&assumption=%7B%22C%22%2C+%22integration%22%7D+-%3E+%7B%22Calculator%22%7D&assum...

fast 4 Jahre vor | 0

Beantwortet
Maximize Linear Programming using linprog Problem is unbounded?
For M >= 4, choose x1 = 0, x2 = M/2 , x3 = M Then x = [x1,x2,x3] is feasible and the value of the objective is 3/2*M which can...

fast 4 Jahre vor | 0

Beantwortet
how do I index within symfun matrix?
syms f(x) [1 2] f f(1) Therefore what it created was a single function that has an array result. f(1) is interpreted as apply...

fast 4 Jahre vor | 0

Beantwortet
ODE45 Multiple Degrees of Freedom Problem
% This script produces a transient response of a 3DOF dynamic model of a % jacket platform clear all clc % Define global var...

fast 4 Jahre vor | 0

Beantwortet
How to solve this multi equation using matlab program
According to your y-vector, you want to have -2*p1 + 2*p2 = 0 -1*p2 + 1*p3 = 0 3/2*p1+3/2*p2-3*p3 = 0 Insert p1 = p2 = p3 ...

fast 4 Jahre vor | 0

Beantwortet
finding equation of motion using lagranges function
syms th thd g m l k L = m*l^2*thd^2/2 + m*g*l*cos(th); X = {th thd}; Q_i = {0}; Q_e = {0}; R = k*thd^2/2; par = {g m ...

fast 4 Jahre vor | 0

Beantwortet
How to model 3 Degrees of Freedom at once
Define a solution vector y = (y1,y2,y3,y4,y5,y6) with y1 = y_a, y2 = y_a_dot, y3 = z_a, y4 = z_a_dot, y5 = Theta_a, y6 = Theta...

fast 4 Jahre vor | 0

Beantwortet
I want to plot selected data from rows and columns
Plotting the second against the first column does not make much sense because the first column is the year and the second column...

fast 4 Jahre vor | 0

Beantwortet
Python 3.11 Compatibility with MATLAB
https://de.mathworks.com/support/requirements/python-compatibility.html

fast 4 Jahre vor | 1

Beantwortet
I need help integrating this function
The first argument to "integral" has to be a function or a function handle. Both does not seem to be the case in the call Q_tot...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
How can i apply a value to a symbol given a solution to a system of equations.
syms h C3 C4 C5 eqn1 = h == C3 + C4 + C5; eqn2 = 0 == 3*C3 + 4*C4 + 5*C5; eqn3 = 0 == 6*C3 + 12*C4 + 20*C5; [C3 C4 C5] = s...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
solve a linear system of equations with several unknown parameters
You have 8 equations for 6 unknowns. The consequence in general is that there is no solution that satisfies the 8 equations exac...

fast 4 Jahre vor | 1

Beantwortet
what is wrong with this code?
Most probably, you will have to change all / and * and ^ to ./ and .* and .^ in your code (elementwise operations instead of mat...

fast 4 Jahre vor | 0

Beantwortet
Integral of a Matrix Issue
Why do you name the same radius R in the denominator R_T ? Both are equal to the cylinder radius (in your case 15, I guess). r=...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
How do I solve this set of equations using MATLAB?
As you can see from the below analysis, there is only the solution n_1 = n_2 = n_3 = 0 without conditions on the angles th1, th2...

fast 4 Jahre vor | 0

Beantwortet
Including changing variable in ODE
If you want to make alpha dependent on Ts, either use a function handle alpha = @(t,Ts) something or make two vectors of Ts an...

fast 4 Jahre vor | 0

Beantwortet
How do I solve this set of equations using MATLAB?
You want to solve for one unknown - thus you only need one of the two equations. If you want to solve for n1, n2 and n3, you ha...

fast 4 Jahre vor | 0

Beantwortet
what is mean by this?
p1 is a vector. Thus with the expression SNR_N1(i) = h1*sqrt(p1)/sigma(i) you try to assign a vector (right-hand side) to a ...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Matlab alternatives for gradient optimisation problems?
If it fits your needs: this code would run under Octave. %pkg load symbolic syms x1 x2 f = (x1-1)^2+(x2-x1^2)^2; H = hessian...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
how derive a solution of ode45
The red curve is the derivative of the blue curve. syms y(t) [V] = odeToVectorField(diff(y, 2) + 2*diff(y) - sin(y) == 0) M =...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
Using Newton's method for 2 equations for finding concentration at different points
Why don't you use "fsolve" ? Don't you have a license for the optimization toolbox ? I don't understand J, f1 and f2 in your co...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Ode15s and function containing system of odes
I suggest you start with a simpler example at the beginning than your complicated system of 3 transient PDEs 2D in space. Someth...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to do partial derivates?
syms x y f = x*sin(x*y); dxy = diff(diff(f,x),y) dyx = diff(diff(f,y),x) By the way: it's called "partial derivatives", not ...

fast 4 Jahre vor | 0

Beantwortet
Unable to plot 3D graph
Doesn't look very impressive, does it ? A = readmatrix("https://de.mathworks.com/matlabcentral/answers/uploaded_files/1184273/2...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
pyrun!How do I keep more decimals?
You keep all decimals in both cases - only the output format is different. format long pyrun("x1=0.24236152","x1")

fast 4 Jahre vor | 1

Beantwortet
How to add a constant value above a matrix in following code?
P = [0.25*ones(20,106);P;0.21*ones(20,106)]

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Convert Array of symbolic expression to array of symbolic function handle
You mean syms x f = [x^2;x^3]; f1 = matlabFunction(f(1)) f2 = matlabFunction(f(2))

fast 4 Jahre vor | 0

Beantwortet
Numerical differential equation solver for initial conditions not at y0
The solution seems to be very sensitive to the initial condition. syms Uf(t) delta y d = 0.2000; k_Karman = 0.4; sol_Um = 3....

fast 4 Jahre vor | 0

| akzeptiert

Mehr laden