Réponse apportée
Plotting multiple figures using subplot
help subplot

plus de 3 ans il y a | 0

Réponse apportée
isprime function seems to have poor performance
As a followup, to this question, I've now learned where the time has gone. In R2018 or so, the symbolic toolbox isprime call wa...

plus de 3 ans il y a | 3

Réponse apportée
what's wrong with this code?
When you tell us that something does not work, you NEED to tell us what happens. Was an error generated? SHOW THE COMPLETE ERRO...

plus de 3 ans il y a | 0

Réponse apportée
Which optimization method is better for problems with random steps
No optimizer is good in this case. That is, all of the classical optimizers ABSOLUTELY assume that your objective is a well def...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Trapezoidal integration without built-in functions
The fact is, trapezoidal integration in a higher number of dimensions in R^d, MUST take O(N^d) operations. Sorry, but it will be...

plus de 3 ans il y a | 0

Réponse apportée
How to Restore source code from Standalone-App - Executable file (.exe)
https://www.mathworks.com/matlabcentral/answers/362964-possibility-of-decompiling-exe-to-m-files I would strongly suggest you s...

plus de 3 ans il y a | 0

Réponse apportée
how do I solve a 2nd order differential equation with multiple first derivatives
As you have written it, this problem is unsolvable. (Had you read the docs for a tool like ODE45, the basic procedure is explic...

plus de 3 ans il y a | 0

Réponse apportée
Error and Warning solving equations.
Admittedly, it is a mess of stuff to paste in. :) Wo = 3584.74 * 9.8; Vm = 268.76/3.6; Rm = 680 * 10^3; rho = 1.225; l_tr...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to can I solve a cubic equation with wide ranges of T and P?
MATLAB does not offer an interval arithmetic solution for roots. (Nor will it ever do so, I predict.) This would get pretty comp...

plus de 3 ans il y a | 0

Réponse apportée
Attempted to access Son(0.000673333); index must be a positive integer or logical.
How should MATLAB understand this part of your code? Son (6.73333*10^-4) Should MATLAB know that you want to multiply a va...

plus de 3 ans il y a | 0

Réponse apportée
Presenting faces at random without repetition
Pick the 10 images to be shown immediately, as 10 numbers from the set 1:23, WITHOUT replaceemt. randperm will do that for you. ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
excluding a number before sending x vector to optimization?
You don't tell us WHICH heuristic algorithm you are using, so that means it is a homebrew algorithm of your own choosing or crea...

plus de 3 ans il y a | 1

Réponse apportée
plotting of 2D surfaces
Totally CONFUSING. X= [1 0.9932 0.9735 0.97 0.9702 0.9479 0.915 0.913 0.9002 0.8877 0.8893 0.8927 0.881...

plus de 3 ans il y a | 0

Réponse apportée
Precision and indices must be positive integers
Why did this line gather an error? kd = (Ppeak-0)/(times(end) - t); The end operator must be used within an array inde...

plus de 3 ans il y a | 0

Réponse apportée
Determine positions of projected points onto an ellipse
Simple. Just download my distance2curve utility, found on the file exchange. For some example data, I'm not sure what you mean...

plus de 3 ans il y a | 2

Réponse apportée
Can someone explain to me why the x parameter at a certain point becomes negative and why certain arrays start filling with complex numbers?
Look carefully at what you are doing. I can only guess what your variables might mean. ind = 130:160; table(x(ind)',y(ind)',ve...

plus de 3 ans il y a | 0

Réponse apportée
I'm writing a code to find the intersection points of two circles.
You had a problem in the use of syms here, causing an error. syms x y A = [x y]; B = [x y]; C = [x y]; D = [x y]; AB = nor...

plus de 3 ans il y a | 0

Réponse apportée
I need to convert a vector into a matrix using a function, but I cannot use reshape or any build functions.
You need to understand that passing in 12 separate arguments to a function is NOT the same thing as passing in a vector of lengt...

plus de 3 ans il y a | 0

Réponse apportée
How to convert asin function to atan2 function?
What you are asking does not make complete sense. Actually, relatively little sense at all, really. Sorry, but let me explain in...

plus de 3 ans il y a | 0

Réponse apportée
3d surface plot of an elliptic shape
If all you want to do is plot the ellipsoid, then you are doing it the wrong way. Just use fimplicit3. You never need to compute...

plus de 3 ans il y a | 0

Réponse apportée
How do I find the unknowns from a strut equation
A=[3 5 -9; -1 -1 2; 3 4 -8]; B=[1; 0; 1]; syms k1 k2 k3 Lc % Lc will be used for lambda in part c; K=[k1; k2; k3]; % state fee...

plus de 3 ans il y a | 1

Réponse apportée
a line cut itself
Please stop asking the same question. This is just a continuation of your last question. syms T Fx=3*T.^2-12*T+16; Fy=2-9*T+...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How to convert ode45 to Differential Algebraic Equations?
I would like to fly to Los Angeles. However, I don't want to take a plane, and since I have often taken a train to destinations,...

plus de 3 ans il y a | 0

Réponse apportée
Existing MATLAB projects to describe the lunar spin
The moon DOES rotate, very much so. It just rotates in a very specific manner, to match its rotation around the earth. So we thi...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
errors running a function
I would read the error message. It said "Error using filter2 N-D arrays are not supported." So, first, is your array more th...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
error running a function
which fftshow -all fftshow is not a function that is part of MATLAB, or in any of its toolboxes. Perhaps you found it in some c...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Is this only an issue because I'm using R2020b?
This capability was only added quite recently into MATLAB. (I could check, but I'm pretty sure it was after R2020.) featureI...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How can I constraint the solution to one set of roots
How does an optimization based root finder work? That is, NOT roots, or tools like solve. The analogy I often offer is that of s...

plus de 3 ans il y a | 1

Réponse apportée
is this code correct?
Why do you think something is wrong? :) I really like the way Answers shows a symbolic expression in a nice viewable form. Ofte...

plus de 3 ans il y a | 0

Réponse apportée
How does one sum 16, 3x3 matrices as efficiently as possible?
First, DON'T store all of those matrices as different arrays. Store tham as one 3-dimensional array, as a 3x3x16 array. Then th...

plus de 3 ans il y a | 1

Charger plus