Beantwortet
Is it possible to create a surface plot from scattered points?
We don't have your data. But there are mltiple solutions you can use. First is my gridfit. You can download it from the file ex...

etwa 4 Jahre vor | 0

Beantwortet
can if conditions be used for equality constraint in fmincon?
NO. That creates a non-differentiable equality constraint. Not even continuous. For example, at u(2) == 0.4, what happens? u2 ...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to fix optimization terminated?
Do you recognize that "terminated" is often used as a synonym for "done", or perhaps "finished", or even "happy as a clam at hig...

etwa 4 Jahre vor | 1

Beantwortet
Questions about the Lsqnonlin function
This is NOT a problem with lsqnonlin, but in your understanding of determinants and why they are a bad thing to use. You misund...

etwa 4 Jahre vor | 3

| akzeptiert

Beantwortet
Minimize distance between curves
This is a classic calibration problem of sorts. Lacking any data, I cannot really help you as much as I might want to. But I can...

etwa 4 Jahre vor | 0

Beantwortet
Solve the system of three equations and three unknowns
The answer is actually pretty easy. First, you need to understand that those who are answering your question do not seem to appr...

etwa 4 Jahre vor | 1

Beantwortet
Criteria for judging overfitting
If there were some clear and simple rule, then the code would be written to recognize that, and alert you of the problem. But th...

etwa 4 Jahre vor | 0

Beantwortet
Is there a reason why row vectors are default in Matlab?
It just is. Around 40 years ago, someone made a choice. The choice was fairly arbitrary. But they made it. And once made, that c...

etwa 4 Jahre vor | 3

| akzeptiert

Beantwortet
How to sub sym to a number in a matrix
syms x y z M = [x-2,x+y,z^2] subs(M,[x,z],[1 3])

etwa 4 Jahre vor | 0

Beantwortet
Can the function "Taylor" process the input type "Function handle" directly?
Can taylor handle some completely general function handle? No. Why not? A Taylor series is easy to compute, in theory. The coef...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
how to take numerical inverse integration?
This is technically called an inhomogeneous Fredholm integral equation, of the first kind. https://en.wikipedia.org/wiki/Fredho...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How can I find all n-bit semiprime numbers?
Ok, I'll give in. A reasonable question, with a reason to be asked. Given a valid reason for the question, I am actuually quite ...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
generate a random number base on pdf function
First, is that the PDF of a random variable? If it was, the integral would be 1. syms x P_x = x/2 + 1/2; int(P_x,-1,1) And o...

etwa 4 Jahre vor | 1

| akzeptiert

Beantwortet
Can we choose step size rule in fmincon?
If you could control the stepsize, then it would damage the convergence properties of a tool like fmincon. Sadly for you, this i...

etwa 4 Jahre vor | 0

Beantwortet
Describe a colormap in the legend of a plot
Hard to put it into a legend, since legend is not designed to do that. Far easier (one line of code) to just put a title above t...

etwa 4 Jahre vor | 0

Beantwortet
An example of a large matlab project
Look on the file exchange. You will see many such submissions. I have at least a few such, with at least one where I spent multi...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Rate of Change - Derivative of experimental data
If your data is smooth enough, then the direct gradient calls that Star shows are ok. The problem is, if there is any noise in y...

etwa 4 Jahre vor | 0

Beantwortet
I did not get any email for activation key. My recent purchase order is complete.
Answers is not customer support. Answers is a volunteer forum. we have no ability to help you. We have no access to any database...

etwa 4 Jahre vor | 1

Beantwortet
Putting one matrix a varying number of times along the diagonal of another matrix
A = rand(3); n = 50; Acell = repmat({sparse(A)},[1,n]); B = blkdiag(Acell{:}); spy(B) Note that I made A sparse in there, s...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to use File exchange
It does not matter that you use a mac or not. Save the top level folder on your search path. So use pathtool or addpath. Then sa...

etwa 4 Jahre vor | 0

Beantwortet
Hello, I did a for loop but my friend told me it is not the correct matlab syntax. Can anyone help me the for loop is in the description below:
for xa=1; This is not a loop. It does nothing but assign the value 1 to the variable xa. NOTHING. No loop. Instead, it looks l...

etwa 4 Jahre vor | 0

Beantwortet
Output Symbolic Trig Math in Degrees
If you use cos and sin, terms like this are meaningless, if the 90 is a number in degrees. Well, let me just say you will get me...

etwa 4 Jahre vor | 0

Beantwortet
out of memory error
Um, 1e20 rows? Seriously? Do you have that much memory? Clearly not, since your computer is throwing up at an 1e8 by 27 array. E...

etwa 4 Jahre vor | 3

Beantwortet
How to numerically integrate the planar equations of motion?
You need to learn how to write a function handle. What you wrote was incorrect syntax. Do you see the spare comma, AFTER the par...

etwa 4 Jahre vor | 1

Beantwortet
Converting to scientific notation in matlab
We are not a "team". We are just a number of people who act as complete volunteers, individually. You cannot "represent" it tha...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Why the result in curve fitting tool shows a different graph in plot?
@Hao Tu (This is only a followup, and since you already understand the issue, merely a clarification to Steven's accurate answe...

etwa 4 Jahre vor | 2

Beantwortet
What is the difference between backward slash vs forward slash in MATLAB?
BOTH of them are linear algebraic solutions. Where matrices are involved, they solve subtly different problems. A\b solves the ...

etwa 4 Jahre vor | 2

Beantwortet
Fmincon makes an extremely big jump in parameter search
I think you do not understand how an optimization tool works. Those first calls to your objective are there to differentiate it...

etwa 4 Jahre vor | 1

| akzeptiert

Beantwortet
How to smoothen a plot?
Simple. Delete the points in the beginning of the curve that give you the spikes. WTP? They will be easy enough to spot, as they...

etwa 4 Jahre vor | 0

Beantwortet
How to write code for Assignment problem using GA matlab tool.
Does GA allow you to specify that some variables are integer? (Yes.) Does GA allow you to specify lower and upper bound limits ...

etwa 4 Jahre vor | 0

Mehr laden