Réponse apportée
Creating an array of partial sums of certain array
For example, consider the vector (I've used syms here, so you can see that it works, and generate the correct terms. Had a been ...

environ 3 ans il y a | 2

Réponse apportée
Numeric approximation of infinite sum
Um, first, legendreP will return either 1 or -1, depending on the value of n. So effectively, we can replace that call to Legend...

environ 3 ans il y a | 0

Réponse apportée
how to solve two equations
Note that the two equations are fully uncoupled. This means U20 appeared only in one equation. It has absolutely no impact on th...

environ 3 ans il y a | 0

Réponse apportée
How to find a root and know if fsolve or fzero is better?
IF you have a function of more than one variable, you ALWAYS need to use fsolve. fzero would not apply. IF you have a function ...

environ 3 ans il y a | 2

| A accepté

Réponse apportée
Collection of Squares RGB Matrix
Really pretty simple. You have a list of colors. 24 of them, apparently. The thing is, all the examples you would see will hav...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Finding Limits of Two variables
As stated in my comment to @Sulaymon Eshkabilov, the one variable at a time solution is rarely correct. Again, I'll give my exam...

environ 3 ans il y a | 0

Réponse apportée
Finding the length of the longest continuous streak of a same number for each row of a matrix
When you have a question where there is some specific issue that you should know is a problem, TELL US ABOUT IT. Don't keep it a...

environ 3 ans il y a | 1

Réponse apportée
how to get rid of the too many arguments error for "and" while keeping output the same
If you write invalid MATLAB synrtax, then you need to expect your code to fail. Perhaps some of those lines might be valid in ot...

plus de 3 ans il y a | 0

Réponse apportée
how to plot a signal in the time domain?
Nope. No other methods. Plot will plot what you give it. A common mistake made is to not understand that a vector of numbers is...

plus de 3 ans il y a | 0

Réponse apportée
How to save a symbolic function into a .txt file
You don't need to display it in the command window! For example, this expression will have 10001 terms in it. syms x P = expan...

plus de 3 ans il y a | 0

Réponse apportée
Why is 'Character#' not a valid mathlab variable name?
MATLAB itself can tell you. Just ask. why why why why why Do you want a better reason? Just because. Seriously, does there...

plus de 3 ans il y a | 0

Réponse apportée
How can I find out the index of the points here?
Pretty easy. (Easier yet, IF the lines were drawn at right angles. If they were, then we could do it in literally one line of co...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Finding row index in a matrix in which the sum of the elements is greater than 1
Just do EXACTLY what you said. I'll break it down into pieces. S=[1,0,0;0,1,0;1,1,0;0,1,1;0,0,1] sum(S,2) % sum of the rows s...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
'erfi' not found in my MATLAB while it is in the MathWorks
which erfi -all erfi is part of the symbolic toolbox. It is NOT part of MATLAB proper. If you don't have the symbolic toolbox...

plus de 3 ans il y a | 0

Réponse apportée
Determine function from Poisson PDF with lambda < 1
I don't see the problem. Yes, you need good data. Not having sufficient data will kill any chances for do anything, but what do ...

plus de 3 ans il y a | 0

Réponse apportée
How to add commented description on new scripts
It would certainly be easy enough to write a set of tools to do that for you. In fact, that may be what you were using. https:/...

plus de 3 ans il y a | 1

Réponse apportée
Problem with surf plot shading - equal z values displayed as different colours
This is likely simpler than you think. Or maybe not. The colors for a surface are first chosen by a direct lookup into the curr...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Making a decimal output using three binary inputs
If you have only 3 bits, so {A,B,C}, then one simple solution is to use a dictionary. Or you could just use a table lookup. For ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
problem with starting a loop for matrices
MATLAB does not allow an index origin of zero. This means that the FIRST element in a vector, for example, is indexed at number ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to generate 1 cycle of a ppg signal repeatedly?
You have a function, that is defined on what seems to be roughly the interval [0,220]. Since you have not given us any data, onl...

plus de 3 ans il y a | 1

Réponse apportée
how to get numeric value from expression?
You already know how to use both double and vpa. Both return a number, although vpa returns a floating point number that is stil...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Changing the atan2 function so that it ranges from 0 to 4*pi
Why do you think that the full range is 4*pi? It is not. There are 2*pi radians (360 degrees) in a circle. 4*pi radians is TWO f...

plus de 3 ans il y a | 0

Réponse apportée
How to change consecutive duplicate values, so that they are unique
I once wrote an unrounding tool, that did something like what you want to do. The goal I chose was to perform a minimal perturba...

plus de 3 ans il y a | 0

Réponse apportée
while loops and prime numbers
First, create a list of all the primes that are less than 100. Save them. You can use either the function primes to do this, or ...

plus de 3 ans il y a | 0

Réponse apportée
How do you calculate the minimum circle within a cluster set of data points to potentially identify the ones that are most similar?
Let me give an example. XY = [randn(20,2)*1 + [-5,5];randn(10,2)*1.5 + [3 6];randn(10,2)*1 + [-7 -4]]; plot(XY(:,1),XY(:,2),'o...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How do you calculate the minimum circle within a cluster set of data points to potentially identify the ones that are most similar?
How many times will you ask the same question? You keep on talking about a minimal circle. Sometimes it is to draw a minimal cir...

plus de 3 ans il y a | 1

Réponse apportée
Solving for the parameters of a distribution
It is rarely a good idea to try to infer distribution parameters from deep tail percentiles. Those points deep in the tails woul...

plus de 3 ans il y a | 1

Réponse apportée
Why do I keep getting a zero for x(9) for Backward subsitution?
First: NEVER use the variable name sum as a variable name. Why not? Becaause one time you will want to use the FUNCTION sum. An...

plus de 3 ans il y a | 1

Réponse apportée
System of Equations Yields Complex Numbers Unnecessarily
It is not clear what that system of equations represents, since you have sines of angles in there. Regardless, a complex result ...

plus de 3 ans il y a | 0

Réponse apportée
Is it possible to indicate a number with "any" units, tens, or hundreds?
There is not really any trivial way to test for what you want, than to just test for a number in that range. And that will requi...

plus de 3 ans il y a | 0

| A accepté

Charger plus