Réponse apportée
Partial Differential equation: Createpde. f as afunction
Take a look at the example "Coefficient Handle for Nonconstant Coefficients" under https://uk.mathworks.com/help/pde/ug/pde.p...

9 mois il y a | 0

Réponse apportée
Neumann boundary condition in a diagonal matrix
For fun, I computed eigenvalues and eigenfunctions for the full region with boundary condition u = 0 and for the quarter region ...

9 mois il y a | 0

Réponse apportée
Neumann boundary condition in a diagonal matrix
The Laplace operator is discretized as (u(x+h,y) - 2*u(x,y) + u(x-h,y))/h^2 + (u(x,y+h) - 2*u(x,y) + u(x,y-h))/h^2 If y = 0 an...

9 mois il y a | 0

Réponse apportée
Error while running my objective function by fmincon with nonlinear constraint for calculate optimization coordination overcurrent relay
So far, it seems to work. The constraint function is missing. % main_optimization.m % The main script for solving protective...

9 mois il y a | 0

Réponse apportée
Please help explain it
1) asks you to plot y1(x) = x + cos(x), y2(x) = -0.5 and y3(x) = 0.5 and see where y1 and y2 resp. y1 and y3 intersect. 2) a...

9 mois il y a | 2

Réponse apportée
I'm encountering the following error when I run my main program.
Do you see the problem ? a = rand(4,5) a(1:3,4:6) "ymax" is bigger than the second dimension of the array "topo", namely 1440...

9 mois il y a | 0

| A accepté

Réponse apportée
Rotate 3D mesh plot to show 2D view of X data on vertical axis and Z data on horizontal axis
x = -2:0.1:2; y = 0:0.1:1; [X,Y]=meshgrid(x,y); Z = X.^2+Y.^2; mesh(Z,Y,X) xlabel('Z') ylabel('Y') zlabel('X') view(0,0)...

9 mois il y a | 1

| A accepté

Réponse apportée
Matlab numerical simulation for ode system by changing the parameter value in range graph not running error coming
Your ODE system is stiff. Use "ode15s" instead of "ode45". The reason for the error you receive seems to be that you interrupte...

9 mois il y a | 1

| A accepté

Réponse apportée
function input arguments error
Don't use isreal as a variable name: isreal is a MATLAB function that you overwrite this way. [y, is_real] = myquad(1, -2, 1); ...

9 mois il y a | 0

| A accepté

Réponse apportée
How to assign the multiple outputs of a function to a single vector AVOIDING TO MANUALLY ASSIGN EACH OUTPUT?
https://uk.mathworks.com/matlabcentral/answers/1808900-multiple-outputs-of-a-function-into-a-single-vector

9 mois il y a | 1

Réponse apportée
define 300 function calls x1(t)---x300(t)
You shouldn't use the way described here https://uk.mathworks.com/help/symbolic/solve-semilinear-dae-system.html to define a D...

9 mois il y a | 0

Réponse apportée
Solve Semilinear DAE System
I am not sure what Y is in these two lines. Y is the (numerical) vector of unknowns - in the example Y = [x,y,T,dx/dt,dy/dt]. ...

9 mois il y a | 0

| A accepté

Réponse apportée
Getting an empty figure for ( amplitude vs rotor speed)
You get amp = NaN as result, and NaN values are not plotted.

10 mois il y a | 0

Réponse apportée
Calculate expm(m*A*t/n) from expm(A*t/n)
Your question is how to get expm(c*A) given A for a scalar c. Diagonalize A such that A*V = V*D. It follows that (c*A)*V = V*...

10 mois il y a | 0

| A accepté

Réponse apportée
Gradients not recorded for a dlnetwork VAE
Did you read the documentation on how "dlgradient" is to be applied ? https://uk.mathworks.com/help/deeplearning/ref/dlarray.dl...

10 mois il y a | 0

| A accepté

Réponse apportée
Access Denied to a folder created by the script
You create C:\Users\HP\Documents\MATLAB\Simulations\Sim_DOA_-60deg as a folder. But WriteOpenEMS(Sim_Folder, FDTD, CSX); a...

10 mois il y a | 1

Réponse apportée
How do I get bold formatted subscript mathematical expressions in MATLAB using LaTeX?
x = 0:10; y = x; plot(x,y) xlabel('$g_{\mathbf{\mathit{R}}}$','interpreter','latex')

10 mois il y a | 0

Réponse apportée
Help with Difference Equation in MATLAB
If V_i, h_i, C, K and theta_0 and theta_1 are given, you can solve for theta_(i+1) and compute theta in a loop. theta(i+1) = ((...

10 mois il y a | 0

| A accepté

Réponse apportée
Integrations of Bessel functions
For the first integral I_1, see https://math.stackexchange.com/questions/393399/integral-of-product-of-bessel-functions-of-the-...

10 mois il y a | 0

| A accepté

Réponse apportée
Solving linear system of equations
I think you mean %Parâmetros x=0; del=0; al1=0.707; oc=0.3; Gamma1=1; Gamma3=1; g1=1/100; %Matriz a ser diagonalizada ...

10 mois il y a | 0

| A accepté

Réponse apportée
Calculate eigenfunctions to known eigenvalues
https://en.wikipedia.org/wiki/Inverse_iteration You could also try null(A-lambda*eye(size(A))) where lambda is a given eigenv...

10 mois il y a | 0

Réponse apportée
Deactivate trial toolbox and reactivate on another machine?
This is AI's answer under "Google": To use a MATLAB toolbox trial on a new computer, you'll need to deactivate the trial on th...

10 mois il y a | 1

Réponse apportée
TCC Connection design matrix
You can code it with V and C being sparse. For simplicity, I used full matrices. n = 50; V = zeros(n); s = zeros(n,1); V(1,1...

10 mois il y a | 0

Réponse apportée
Unexpected results using SVD to separate components that make up a function
Others have already explained why you cannot recover p1, p2 and p3 from an SVD of p = p1 + p2 + p3. All you can do is write p...

10 mois il y a | 0

Réponse apportée
How can i get to get this curve in red when the vector is moving? The curve results from the displacement of the tip of the vector
% Définir les vecteurs de la base O (i, j, k) i = [1; 0; 0]; % Vecteur i j = [0; 1; 0]; % Vecteur j k = [0; 0; 1]; % V...

10 mois il y a | 0

| A accepté

Réponse apportée
Error plotting orbits figure
Seems that most of the missing functions are available under http://www.rotordynamics.info/ (Software for Lateral Vibrations, ...

10 mois il y a | 0

| A accepté

Réponse apportée
Counting the number of increments in a vector
x = 0:0.1:7; numel(x(x<=3))

10 mois il y a | 0

| A accepté

Réponse apportée
Get mean of a matrix which has NaN in it
grades = [2,4,6; 5, NaN, 1; 7, 2,NaN] mean(grades,1,"omitnan")

10 mois il y a | 0

Réponse apportée
Resonance in moonpool type structures
I'd change k(n) = lsqnonlin(fun_alpha, guess, x0_left, x0_right); to k(n) = lsqnonlin(fun_alpha, guess, x0_left, x0_right,op...

10 mois il y a | 0

| A accepté

Réponse apportée
Incorrect results for subtraction despite working for other use cases.
"segments_of_free_space" and "focal_lengths" (or "f" and "gaps") must have the same number of elements because you reference gap...

10 mois il y a | 0

Charger plus