Réponse apportée
Why am I getting an out of index error?
You created the function handle J. J has argument x1. So inside J, it sees whatever you pass in as x1, apparently you think th...

plus de 4 ans il y a | 0

Réponse apportée
linear least square with nonlinear constraints
Fmincon requires a single objective to optimize. So if you have a set of 18 equations, in 12 unknowns, then you formulate the ob...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How would you impliment this optimization in MATLAB?
This is a moderately simple problem with 5 unknowns. Another solver may be safer, because of the absolute values, but they are i...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
Finding erf using Maclaurin series breaks down around x = 5
Do you expect that all infinite series are convergent? And sometimes, even a series that is theoretically convergent for all x, ...

plus de 4 ans il y a | 0

Réponse apportée
minimum distance between a given set of point and a curve
Simplest is to use my code distance2curve, as found on the file exchange. It finds the distance to a general space curve, to eac...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to numerically solve and plot definite integral with variable upper limit
There are many trivial ways. Off the top of my head ... Repeatedly integrate, using a tool like integral, from 0 to x, then plo...

plus de 4 ans il y a | 0

Réponse apportée
Vandermonde-like matrix
The easiest way? Probably this line: (in R2016b or later) x.^(((0:-1:1-n)' + (0:-1:1-n))/2) If you want to use two lines of co...

plus de 4 ans il y a | 1

Réponse apportée
Best way to get rid of/ prevent function from creating complex numbers?
You cannot simply force that a complex number will never arise. There is no flag you can just set to tell MATLAB to never create...

plus de 4 ans il y a | 1

Réponse apportée
Buy or trial MatLab R2009b
NOBODY can just give it to you. Can you buy it? You can get a current license. That would, in theory, alow you to download an o...

plus de 4 ans il y a | 0

Réponse apportée
Define an event in a signal
So, are you asking someone to teach you how to write a gui interface that will do all of this? That is a big request, and it wil...

plus de 4 ans il y a | 0

Réponse apportée
Program helix spiral with radius?
This does not seem to be obviously a homework problem. so... To solve such a problem, you need to understand a spiral, and what...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
I am trying to find the roots of this equation but my code doesn't work. It keeps saying theta0 is unrecognized,
It appears that your equation is: theta0= x*tan(theta0)-4.905*(x^2)/((v0^2)*((cos(theta0))^2))-(y0-yf); and you wish to solv...

plus de 4 ans il y a | 0

Réponse apportée
When I'm using the fmincon function to solve an optimization problem,the optimization result is always near the initial value. How to avoid this situation?
Resetting the step tolerance will probably not help. In fact, that may be a bad idea, or it may be what you need. Before you try...

plus de 4 ans il y a | 1

Réponse apportée
Unrecognized function or variable 't'.
Contact the authors of the paper, as apparently having submitted crap for code with undefined variables. Worse, it got accepted ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to remove the Matlab Drive from a Mac?
Are you talking about the virtual drive used when MATLAB is installed? Assuming that is what you mean, just EJECT the drive. On...

plus de 4 ans il y a | 0

Réponse apportée
How to solve two equations with two unknowns that are vectors?
Sometimes, we get lost in wanting to solve a problem one way, when really, the solution is trivial, if we but look at the proble...

plus de 4 ans il y a | 0

Réponse apportée
Interpolation (interp2 help)
Interp2 does NOT apply to scattered data. You chose the wrong interpolation tool. You MAY be able to use help scatteredInterpo...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How does one find the max value of one column and relate it to another column?
Read the help for max. What are the outputs? help max Do you see the SECOND output argument from max? That tells you where the...

plus de 4 ans il y a | 0

Réponse apportée
multiple 2d plot in 1 3D plot with common origin point
Not nearly as hard as it may seem. Or, maybe this seems like it should be easy, and so my solution is actually harder than you w...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to plot x=y2
Has nobody yet fully answered this question? Since it is now long past the time when a homework answer would have done homework ...

plus de 4 ans il y a | 2

Réponse apportée
Can I input data with multiple column lengths into one matrix?
No. Sorry, but no. A matrix cannot have columns that vary in length. A matrix in MATLAB is a rectangular array of scalar element...

plus de 4 ans il y a | 1

Réponse apportée
hi my assignment requires product of all diagonal elements, i did a simply look as copied below, but could only pass the test on one case and failed all others. can you please
If I had to guess, it is because the value of n was never properly defined as the size of the matrix U! For example: U = rand(...

plus de 4 ans il y a | 0

Réponse apportée
I am trying to make a matrix (10x100) called 'DemClay' with a slope of -1 to -0.5 incrementally if possible, so that the first row is -1 and the last row is -0.5
Pretty easy. And soooo many ways to do it. This is a simple one: DemClay = repmat(linspace(-1,-0.5,10)',[1,100]); size(DemClay...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
Counting liberties on a Go (Baduk, Weiqi) board
This link defines the rules for a liberty: https://www.yourturnmyturn.com/rules/go.php I read them only quickly, but I think I...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Finding identity matrix-like square matrix given two rectangular matrices
Since you have A which is mxn, and n>m, the problem is not that A is singular, or even rank deficient, it is that the problem is...

plus de 4 ans il y a | 2

Réponse apportée
how to remove uncertainty from data in order to plot it
You could do something as simple as: S = "2.19479E-8 ± 2.46286E-10"; substrs = split(S); N = double(substrs(1)) That is, bre...

plus de 4 ans il y a | 0

Réponse apportée
How to solve the below numerical
So for any given value of H, y, znd z, you want to be able to write x as a function of them, then drawing a nice pretty picture....

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
To find the similar function
Why would there be a different one? Do you really need multiple ways to do this, especially since any other way you would do it ...

plus de 4 ans il y a | 0

Réponse apportée
How can I determine the the X and Y equation using coefficients of cscvn function?
Congratulations! You are the 1 millionth person to ask essentially the same question. Your reward for this is a one-way un-paid ...

plus de 4 ans il y a | 1

Réponse apportée
Obtaining half-spaces from the convex hull in MATLAB
What is a half space? Well, what do you mean by that? And what do you mean by "manually calculating" them? And is there some sim...

plus de 4 ans il y a | 0

Charger plus