Answered
fill function sometimes working and sometimes not working, why?
Seems trivial to me. (Ok, easy. Triviality is in the eye of the beholder.) I don't give a hoot about how many real roots it has,...

4 months ago | 0

Answered
how to manage fzero output
I'd argue you are thinking about this the wrong way.You see that fzero has a problem, so you think you need to do something to f...

4 months ago | 0

| accepted

Answered
Inquiry on Time Complexity of cumsum
There is no (good) answer to your question. And that answer will subtly change next year too, with the next release of MATLAB, o...

4 months ago | 2

| accepted

Answered
Effect of rng on Genetic Algorithm
Let me expad on what @Walter Roberson said. There is no optimum seed, that is one seed that will be perfect for any problem. In ...

4 months ago | 0

Answered
where is the setting to page/summarize large tables?
We don't want you to go nuts. But, I'm a little surprised, as tables do what you want already by default, using R2025a, on my co...

4 months ago | 0

Answered
how can i contact any people in Mathworks interested in using and integrated our algorithm in Matlab software.
I'm sorry, but to be honest, I doubt they would be terribly interested, as there are too many problems that would arise. I assum...

4 months ago | 0

Answered
Backslash (mldivide) slower than inverse and multiplication
First of all, you should NEVER be computing A*A' or A'*A. that is where most of the loss in accuracy arises. Whatever is the con...

4 months ago | 1

Answered
Solving DE initial value problem symbolically in Matlab
Before we go too far, we want to look at your claimed solution. syms y(x) % tells matlab that y is an unknown function of x OD...

4 months ago | 0

| accepted

Answered
How to work out trigonometric identities symbolically?
There are literally an infinite number of possible results you MIGHT expect for even that simple product. But simplify is able t...

4 months ago | 2

| accepted

Answered
Computer Vision and Image Processing toolbox ISO26262 Certification
Answers is not customer support, but just a user forum. The information you request can come only directly from The MathWorks, n...

4 months ago | 1

Answered
Variable might be set by a nonscalar (three variables in pythagorean triplet)
Let me suggest that brute force is NEVER the good way to solve a project Euler problem. NEVER. When brute force is applied, most...

4 months ago | 1

Answered
compute the inverse sine of the sine of 45 degrees and assign the answer in radians to a variable named a.
Well, you are not doing anything overtly wrong. I would guess the answer is a subtle one, and reflects an error on how the test ...

4 months ago | 0

Answered
what is the highest number that matlab can handle. (especiially for the 3x+1 problem). i am trying to do the seed 10^310 i am not getting the plot or output why?
Your question should not be the highest number, but the largest INTEGER MATLAB can handle as a double. That would be 2^53-1. An...

4 months ago | 1

Answered
Cap Maximum ODE solve time
Simpler is to just set the maximum number of evals or iterations. This way you don't need to do anything special, just set a fla...

5 months ago | 0

Answered
The below code takes much time to just compute till N=5. But I wanna know how to do it for N=100 or more a bit faster.
I want a bright red new Ferrari in my driveway for Christmas. Its not gonna be there of course. But we all want things we can't ...

5 months ago | 0

Answered
How to merge red and blue images on white background with transparency
Easy enough, in a very lazy way too. If you kow how to do what you want with a black background, then make it so. And then back....

5 months ago | 0

| accepted

Answered
How to use arrayfun with built-in Matlab functions where the variable parameter is passed with 'Name', 'Value'?
I see this soooo often, people thinking arrayfun is a good way to speed up code. But, is it, really? Arrayfun is a nice tool to ...

5 months ago | 1

Answered
solving system of equations
There is absolutely no need to use an iterative solver!!!!!!!! The idea is to remove the absolute value from your problem, and ...

5 months ago | 0

Answered
Can not read MAT file in another language
My guess is Julia can read a .mat file created for an earlier release of MATLAB. Looking at the help for save, you can specify a...

5 months ago | 0

| accepted

Answered
Trying to do an fsolve via an anonymous function
You say you want to use fzero. But you need to understand that fzero is a ONE variable solver. It CANNOT solve a multi-variable ...

5 months ago | 0

Answered
Precision lost when combining Int32 integers with single precision numerical numbers
Why is MATLAB set up this way? Because you can't please all of the people, all of the time. Suppose a numeric vector could have ...

5 months ago | 4

| accepted

Answered
What is the difference between A={1 2} and A = { '1','2'} and how to convert one from other ?
Think of it like this: 1 is a "number" as stored in MATLAB, as is 2. X = [1 2] whos X X is stored in double precision. We ca...

5 months ago | 0

Answered
comparison between two optimisation algorithms
There are very, very many ways to solve a computing problem. You have chosen one of them, and it worked for you. Is the choice...

6 months ago | 0

Answered
Strange behaviour of plot
Cute. If you try this in R2025a: small = 1e-7;plot([0,small,1],[0,small,1]) small = 1e-8;plot([0,small,1],[0,small,1]) (Sorry...

6 months ago | 0

Answered
How does Matlabs svd() function calculate the value of V?
UM, You seriously do not want to use X'*X to compute anything about the SVD. Yes, mathematically, it is the same. But this is no...

6 months ago | 1

Answered
icc rgb profile editing
You can use iccread and iccwrite. help iccread help iccwrite Having used iccread, you can modify whatever you wish, then writ...

6 months ago | 0

Answered
How to reduce the file size of MAT files?
NO. Rounding numbers will change nothing. MATLAB does not store double precision numbers in decimal form. So even though you thi...

6 months ago | 0

| accepted

Answered
select line by touching with mouse
"select curve?" Well, yes, in a sense. When you plot the curve, you can supply a ButtonDownFcn, so that when you click on the c...

6 months ago | 0

Answered
Fitting a blackbody curve with two variables - having issues with lsqcurvefit stopping and unsure how to use options effectively
Your data does not seem to fit terribly well to the model you propose. c=2.998e8; h=6.6261e-34; kb=1.38e-23; %wavelgnth (x...

6 months ago | 1

| accepted

Answered
How to generate all 2^n combinations of n choices from a 2-vector?
Simple enough. Don't use combinations. n = 3; t = dec2bin(0:2^n - 1) - '0' Easy enough to make that into a table if you so de...

6 months ago | 1

| accepted

Load more