Respondida
Trouble plottiing a trig function
Ok. You knew you had to use the .^ operator to raise the elements to a power, element-wise. There are also .* and ./ operators, ...

más de 3 años hace | 2

| aceptada

Respondida
how to make a 3x3 matrix a 9x1 matrix?
The point to the answers you have gotten is if you want it to run across columns, then you can easily convert columns into rows,...

más de 3 años hace | 1

Respondida
RREF with unknown variables
WTP? Why not try it? syms a b c rref([1, 2, 3, a; 4, 5, 6, b; 7, 8, 9, c])

más de 3 años hace | 1

Respondida
Various functions depending on X
If the function is symbolic, then use piecewise. help piecewise Note that your function lacks definition, since you do not say...

más de 3 años hace | 0

Respondida
How can I fix my issue with regstats "design matrix has more predictor variables than observations"?
Get more data. Simple enough. Supose you want to fit a very simple linear model with say three independent variables. With a co...

más de 3 años hace | 0

Respondida
How to derive a function from 6 variables
Knowing which function to use, given 6 independent variables is terribly difficult to know. If you lack knowledge of a good nonl...

más de 3 años hace | 0

| aceptada

Respondida
how to pass from x y z plane to toroidal coordinate?
You have a line in three dimensionas, and you want to find the equation of that line in a toroidal coordinate system? First, wh...

más de 3 años hace | 0

Respondida
Singular value decomposition method for solving least squares problems
Please stop asking this same question multiple times. If you are asking how to solve a least squares problem of the form A*x = ...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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, ...

más de 3 años hace | 1

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 3

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 2

Respondida
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, ...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 2

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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 ...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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 ...

más de 3 años hace | 0

Respondida
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)...

más de 3 años hace | 2

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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 ...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Cargar más