Réponse apportée
Finding unknow of equation
I'll use syms here, because it displays things nicely. syms x y a b c d B=[0;0;x;0;0;y] C=[a;b;0;c;d;-2000] So B and C are V...

plus de 3 ans il y a | 0

Réponse apportée
Am I writing this exponential function the right way?
You need to learn about the dotted operators. They are used when you will be performing ELEMENT-wise squaring, multiplications, ...

plus de 3 ans il y a | 1

Réponse apportée
Interpolate Scattered Data on another mesh
But what is the problem? Using scatteredInterpolant, interpolate set 2 (x,y,z) using the data for set 1. Some of the points fr...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
I want to solve this equation for Xp while I know all others parameters.
In almost all cases when you have a variable that lies both inside, and outside of a nonlinear function, like sin or cos, log an...

plus de 3 ans il y a | 0

Réponse apportée
MATLAB can't symbolically solve a definite integration
Not all problems you can write down have some nuce simple algebraic solution. In fact, almost all problems you can write down do...

plus de 3 ans il y a | 0

Réponse apportée
Best Practice: Many Functions relying on Global Variables?
By far the simplest is to just stuff all of your variables into one struct. then pass it around to anything that will need it. T...

plus de 3 ans il y a | 3

Réponse apportée
Cart2pol function: wrong output angle is produced when input angle is in degrees, any help??
Perhaps your problem is in the conversion of degrees to radians. I think you just took an old code you had written to convert po...

plus de 3 ans il y a | 0

Réponse apportée
how to solve ODE with variable coefficients?
You cannot use a numerical ODE solver, if you don't provide all of the coefficients. Numerical solvers like ODE45 work ONLY with...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Creating curved alpha hull, similar to R-package
How can you do what R does? You can write the code. You will not find this directly in MATLAB that I know of. (I'm the author of...

plus de 3 ans il y a | 0

Réponse apportée
how to find eigenvalues using the determinant ?
This is a generalized eigenvalue problem. READ THE HELP FOR EIG. If you pass in both matrices, it still computes the eigenvalues...

plus de 3 ans il y a | 2

Réponse apportée
How to solve this symbolic nonlinear equation
This is a common problem, for some parametric matrix, solve for the parameter that makes the matrix singular. And, effectively, ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How do I generate all quadruplets?
You can't. Period. There are infinitely many such points. Can you generate infinitely many points? Can you store them all? Is yo...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
how to Write a script that asks for a number n and nxn matrix with a Normal distribution with mean 0 and std 1?
Read the help for randn. Does it tell you how to generate a matrix of samples from that distribution? help randn

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Hi every one. I have a moving point on the axes. How my point can move in this direction( look at picture)? Cause now it`s just moving from x 0 to x 3.6, idk what to do next
You will want to do this in a parametric form. That is, think about how x moves, as a function of TIME. Don't think about y as a...

plus de 3 ans il y a | 2

| A accepté

Réponse apportée
How to find the y from given x on fit line?
It completely depends on how you perform the fit. For example, with the curve fitting toolbox, just do this: X = rand(10,1); Y...

plus de 3 ans il y a | 0

Réponse apportée
how to compress 15x15x8 dobule to 15x15?
How long have you been using MATLAB? You have asked 51 questions on Answers. But just today, you asked two trivial questions in ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
how can I do subtraction between two symbolic functions with different arguments?
syms X(alpha,beta) syms Y(theta) syms delta Y(delta) X and Y are symfuns. MATLAB understands that they can be evaluated fo...

plus de 3 ans il y a | 0

Réponse apportée
solving nonlinear equation including max function
In general, things like the max function introduce non-differentiable points, and even discontinuities into a problem. And that ...

plus de 3 ans il y a | 0

Réponse apportée
How can I avoid a small value ignored during calculation?
Welcome to the wonderful, wacky world of floating point arithmetic. You need to understand that floating point numbers (doubles)...

plus de 3 ans il y a | 2

| A accepté

Réponse apportée
linprog failed to work. why? Did I do something wrong?
Bounded versus unbounded problems This is perhaps the most difficult sub-question to answer, partly because it will force me to...

plus de 3 ans il y a | 0

Réponse apportée
linprog failed to work. why? Did I do something wrong?
All solutions: https://en.wikipedia.org/wiki/Linear_programming In general, when someone wants to see all possible solutions ...

plus de 3 ans il y a | 0

Réponse apportée
VERT2CON - vertices to constraints
No. In fact, that is essentially impossible to solve, since a set of constraints will always be anded together. And if your cons...

plus de 3 ans il y a | 0

Réponse apportée
linprog failed to work. why? Did I do something wrong?
Feasibility, infeasibility If linprog tells you the problem is infeasible, that means it could not find a solution that satisfi...

plus de 3 ans il y a | 0

Discussion


linprog failed to work. why? Did I do something wrong?
I've now seen linear programming questions pop up on Answers recently, with some common failure modes for linprog that people se...

plus de 3 ans il y a | 1

Question


linprog failed to work. why? Did I do something wrong?
I've now seen linear programming questions pop up on Answers recently, with some common failure modes for linprog that people se...

plus de 3 ans il y a | 3 réponses | 1

3

réponses

Réponse apportée
Find all global minima und maxima of an Graph
A peak is a peak. If your data has many peaks in it, can findpeaks really know that? At the same time, findpeaks is the correct ...

plus de 3 ans il y a | 0

Réponse apportée
Using error in splinetool with more complicated functions
Looks like the code is a bit buggy. Save this function m-file on your search path. function y = myfun(x) y = x.*cos(x); Then...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Maximize Linear Programming using linprog Problem is unbounded?
Look carefully at the problem you have posed. Is there some direction we can move infinitely far out, and still obey those const...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to solve this multi equation using matlab program
It is a really, really, really bad idea to name a variable with the name pi. Why? Because as soon as you do, when you actually ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Are the top-ranked Matlab users working for MathWorks, or do they have another job ?
In most cases, we are not MathWorks employees. Those who do work there, have the word "staff" attached to their names. But Answe...

plus de 3 ans il y a | 2

Charger plus