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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 1

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 1

| accepted

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

3 years ago | 1

| accepted

Answered
'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...

3 years ago | 0

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

3 years ago | 0

Answered
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:/...

3 years ago | 1

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 1

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 1

| accepted

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

3 years ago | 1

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

3 years ago | 1

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

3 years ago | 1

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

3 years ago | 0

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

3 years ago | 0

| accepted

Answered
Finding non trivial solution for a system of equations
This is called a Homogeneous linear system of equations. They are explicitly linear in the unknowns C1 and C2. What that means...

3 years ago | 1

| accepted

Answered
Should this Symbolic Limit be Zero?
Sometimes I wish these tools could tell us where they are stumbling in the solution, when they get stuck. For example, suppose ...

3 years ago | 0

Answered
How can I get the zero crossing contour of a matrix
help contourc For example: v = linspace(-5,5,100); [x,y] = meshgrid(v,v); z = x.^2 - y.^2 + 1; % The contours will be hyperb...

3 years ago | 1

| accepted

Answered
Plotting problem of function in one variable and four known parameters
Does it not tell you the problem? x = 1:5; For example, what do these two operations do in MATLAB for the vector x? x.^2 x^2...

3 years ago | 0

Load more