Answered
precision of calculation with Matlab
This must of course fail as you are doing it, since out must generally exceed 2^53-1, the limits of flintmax for a double precis...

7 years ago | 1

| accepted

Answered
Does someone has the Composite MicroMechanics COMM toolbox? Thanks!
Just contact the source. This link claims it to be freely available, by contacting the author. https://www.researchgate.net/pub...

7 years ago | 0

Answered
Question on pdepe solver
Why not just read the help? That is, first, I typed doc pdepe Quickly scan down through there, and I see that indeed, pdepe ...

7 years ago | 0

| accepted

Answered
fminsearch and simulated annealing with penalties
You do not want to solve it using penalties. That tends to cause problems, making the solution more difficult. At best, the opti...

7 years ago | 0

Answered
How to create a smooth curve through data points?
We don't have your data, so I cannot give any examples. As well, I don't know your definition of a smooth curve. Do you want a...

7 years ago | 0

Answered
How can I plot a Sin or Cosine graph that looks this this?
Start with one of these: help fplot help ezplot But before that, start by reading the getting started tutorials.

7 years ago | 0

Answered
Coding problem in pattern search optimization algorithm
Your objective function needs to return a SCALAR value for any set of inputs. That is, you cannot minimize two (or more) indepen...

7 years ago | 0

Answered
Can we use aliasing concept to achieve solution for following use case in MATLAB ?
I suppose you could do so, by writing a custom alias class to do it. It would seem a bit of a kludge though. But, no. MATLAB do...

7 years ago | 0

Answered
Solving a over determined system in MATLAB
Is it the correct way? perhaps it might be, except that you have a typo in e3. Perhaps that is why you decided to try it with on...

7 years ago | 0

| accepted

Answered
How to fit a power law equation using three variables?
The answer is simple, sort of. But it very much depends on your data. For example, if Z varies by multiple orders of magitude ov...

7 years ago | 0

| accepted

Answered
How to evaluate a curve at infinite points inside it's upper and lower bounds.
If I plot your data, it it far too highly nonlinear to use any sort of a fit to the data directly. But plotted on log-log axes, ...

7 years ago | 0

Answered
How to get the maximum value of an implicit function?
If you have the otimization toolbox, then just formulate it as a nonlinear optimization. fmincon will be the correct tool. That ...

7 years ago | 0

| accepted

Answered
two inputs and two equations
This is easy enough to answer, as long as EXACTLY ONE of the two inputs was provided. However, you need to consider what happen...

7 years ago | 0

| accepted

Answered
how to write or constrains optimization
For which optimization tool? fmincon? You can't. This essentially reduces to a discrete optimization problem. You can think of...

7 years ago | 0

Answered
repeating elements in weird fashion.
help repelem MAtLAB is not a spreadsheet though. I would suggest that you are thinking of it as one, and until you free yoursel...

7 years ago | 0

Answered
Approximation of integers and forming a table
Just use a loop. You already seem to know how to use a loop. a = ... % whatever b = ... % whatever Nlevels = [10,20,40,80,1...

7 years ago | 0

Answered
Why can't solve "limit((5x-3)/x,x,inf)"?
It works for me. Well, as long as I understand how to multiply in MATLAB. syms x limit((5*x-3)/x,x,inf) ans = 5 If you igno...

7 years ago | 0

| accepted

Answered
MATLAB showing two equal numbers as not equal to each other
They LOOK equal, when written out as numbers with limited signifcant digits. Are they? Consider this example: format short x =...

7 years ago | 1

| accepted

Answered
Calculate the cube sqrt?
You want the cube of the sqrt of 0.18? Or do you want to raise 3 to that power, as you wrote? In that case, 3^sqrt(0.18) works...

7 years ago | 0

Answered
Set sum of coefficients to equal 1 in biexponential fit
You are using the exp2 model form ft = fittype('exp2') ft = General model Exp2: ft(a,b,c,d,x) = a*exp(b*x) + c*ex...

7 years ago | 0

| accepted

Answered
Bessel function - roots and zeros on interval <12,20>
This is easier than you think. :) Of course, that often is true, once you know the answer. By the way, it can be a dangerous id...

7 years ago | 1

Answered
How Can My Multiple Community Profiles Be Merged
You cannot merge them yourself. We could not help you directly to do so either. That is, an MVP on the site does not have the po...

7 years ago | 1

Answered
Generating a weighted random number
Use randsample: Y = randsample(N,K,true,W) or randsample(POPULATION,K,true,W) returns a weighted sample, using positive we...

7 years ago | 3

Answered
linprog: no feasible solution found when defining lower boundaries
I don't understand what is the issue. linprog apparently says that the only solutions to your problem exist when some of the unk...

7 years ago | 0

Answered
Help restricting non whole numbers in a script
A very easy check is just: rem(number,1) ~= 0 So if number has a fractional part, then rem(number,1) will return that fraction...

7 years ago | 0

Answered
How to find the 5th highest value in a matrix
Can you convert a fully generally shaped array into a vector? Hint: What does t(:) do? That works on an array of any shape or s...

7 years ago | 0

| accepted

Answered
pca versus princomp diferences in signs of coeffs (loadings) for cities dataset
The vectors generated are not unique to within a sign change. They can arbitrarily change sign, and nothing matters. (Not just o...

7 years ago | 0

Answered
generate a random path between two points
This should be pretty easy. Use the graph theory tools in MATLAB. You can find them by: help graph The general algorithm is si...

7 years ago | 2

Answered
Solve this matrix equation and find T
Homework, right? Why not admit it? Note that the solution, if one exists, is not unique, since IF T does exist to solve the pro...

7 years ago | 0

Answered
exponentially distributed random number
Wow. Its been 40 years since I did this sort of stuff. ;-) I assume you have a stochastic process that you wish to model, as th...

7 years ago | 1

| accepted

Load more