Answered
Sorting cycling data, with numerous measurements taken at each cycle into a matrix, based on cycle.
This will create a large matrix, one that is almost entirely composed of zeros. But only you know what it is that you need/want ...

8 years ago | 0

| accepted

Answered
Why do I keep getting 0's as my answer to this formula?
Why do I wonder if you wanted to have T in the denominator? Actually, I'm fairly confidant this is exactly what you did want. Th...

8 years ago | 2

| accepted

Answered
Definite integral returning NaN for large upper limit. Im trying to integrate a rather complicated function from 0 to inf, however the integral command returns NaN for large upper limits. Does anyone have a solution?
Don't go all the way to infinity. Yes, that seems silly to say, but infinity is a long way. At the same time, surely you can...

8 years ago | 2

| accepted

Answered
Improving the performance of vectorized code possible?
I looked quickly at the code you were playing with in the original post. The biggest problem was arguably that no arrays were...

8 years ago | 3

| accepted

Answered
Algebra equation with symbolic
4 roots, all of which are complex. vpa(wsol) ans = - 0.10269696007084728245763107930116 - 4.530876885169322639344...

8 years ago | 0

| accepted

Answered
Evaluate symbolic nthroot and return its symbolic expression to plot
What is wrong with it? Did you forget to use vpa? For example, with... a = 1.3; I get this from your code: res = ...

8 years ago | 0

| accepted

Answered
How to determine the most common (most occurring) number in column of a large data of more than 100,000 length of data
There are many things you can do. But none will likely be perfectly satisfactory. For example, you could use uniquetol to do the...

8 years ago | 0

Answered
Please help my MATLAB homework
<https://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer tutorial-h...

8 years ago | 0

Answered
svd function - Singular Value Decomposition
It is a really bad idea to use S in two totally different contexts. So I called the right hand side R. You will only become conf...

8 years ago | 0

Answered
Equivalent of function handle for scripts?
No script handle needed at all. listOfScriptNames = {'script1', 'script2', 'otherboringscript', 'myreallyinterestingscript'...

8 years ago | 0

| accepted

Answered
Finding the area under a polynomial equation in MATLAB
How do you doit? Basic calculus? X=[0 0.0300 0.0333 0.0469 0.0575 0.0649 0.0960 0.1262 0.1610 0.1717 0....

8 years ago | 0

| accepted

Answered
Can you use linsolve to solve a matrix when 1 of the variables is defined in a range?
Why does it not work? First, learn MATLAB. These two lines do the same thing, but one is easier to write and read. Parens and...

8 years ago | 0

Answered
when I add two floating point numbers the result is not correct above 262144
Time to learn what eps means. After all, YOU were the one who chose to use single precision here. So that means you should also ...

8 years ago | 0

Answered
Dear Sirs, would you please help me and tell me how can I plot the average value of the previous y, while we have thousands (x, y) versus the current X?
If you just have a vector X and a vector Y, and you want to plot the average of all preceding Y as a function of X, this is triv...

8 years ago | 0

Answered
How do I find the 'n'th largest number and its position in a 4D array?
The standard answer applies. Break a problem that is too large for you to get your head around into small problems. Solve each s...

8 years ago | 1

| accepted

Answered
What are some ways to use trapz,integral or quad in reverse?
It will essentially never happen that area is EXACTLY the value you want to find. You could of course trivially use cumtrapz,...

8 years ago | 0

| accepted

Answered
pchip plot in relation to y axis
You are fitting the function in the WRONG direction. This NOT a problem of fitting pressure as a function of temp difference. Th...

8 years ago | 0

Answered
I wanted to know how to find a distance between a line and a circle.
1. Do you know how to find the distance between a line and a point? Hint: https://en.wikipedia.org/wiki/Distance_from_a_point...

8 years ago | 0

Answered
Determination of the calculation error in Matlab
It sounds like what you want is an interval arithmetic tool, that would quite accurately predict a bracket around the uncertaint...

8 years ago | 1

Answered
How to calculate mod(188^80, 34969) in matlab.
(This is actually a fairly common homework problem, thus how to compute such a modulus of a power too large to compute directly ...

8 years ago | 0

Answered
Expanding a matrix using interpolation?
Simplest is to use imresize. I assume it used to be in the image processing TB, but has migrated to MATLAB itself, due to the ge...

8 years ago | 0

| accepted

Answered
OR statement in MATLAB issue
While you want to understand the issue of how to use strcmp, a better test is to not do so at all! So you might use strcmpi, ...

8 years ago | 0

Answered
How can I get the specific input value when the output value met the condition?
DON'T: Use a for loop, testing every possible value of x. The loop will never terminate, and you will waste a huge amount of tim...

8 years ago | 1

Answered
How to check Spec limits
Time to learn to use MATLAB. Lesson 1. DON'T USE THREE VARIABLES. You can't remove an entire row if all your data is in diffe...

8 years ago | 1

| accepted

Answered
what is the mathematics behind bounding box?
A bounding box is trivial to find. Assuming it is not allowed to live at some angle, just find the minimum x and y. That is x...

8 years ago | 0

Answered
How to speed up LU decomposition in ode15s solver?
Nope. Not really. Do you suppose there are many ways to write an LU, but they purposely used the really slow version? Actually, ...

8 years ago | 0

Answered
Movmad does it consider the constant 1.4826?
Read the help. movmad computes a moving median absolute deviation. In no place does it call that a STANDARD DEVIATION. It ...

8 years ago | 0

| accepted

Answered
Negative decimal fraction to binary
There is no tool to do so. (That I know of, although it has been on my to do list for a while.) A decimal fraction like that ...

8 years ago | 2

Answered
How to generate all the 3 by 3 matrices ?
Essentially, it will be practically impossible to list all solutions. If the set of matrices allows real numbers for the elem...

8 years ago | 1

Answered
Which condition must be satisfied so that three real numbers are all positive or negative? (fmincon related)
For real vector X (of any length) all(X<0) || all(X>0) Having said that, this is NOT a valid constraint for fmincon. It ...

8 years ago | 0

Load more