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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 2

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

Answered
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

4 years ago | 0

| accepted

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

4 years ago | 2

| accepted

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 2

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 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...

4 years ago | 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...

4 years ago | 3 answers | 1

3

answers

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

4 years ago | 0

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

4 years ago | 1

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 2

Answered
is it possible to make this code shorter?
Even if I could make the code you show shorter, I would not do so, not to create that huge mess of variable names. EVER. Anyway,...

4 years ago | 0

| accepted

Answered
Unable to find explicit solution
Does a solution exist for EVERY possible function you can write down? (NO.) In fact, it is trivially easy to write down infinite...

4 years ago | 0

Answered
How do I perform the inverse of a number to be applied in the encryption and decryption in multiplication encoding in MATHLAB? With GUI.
A gui is irrelevant. It is YOUR job to write a gui, if you need one. You compute the inverse of a number by dividing it into 1...

4 years ago | 1

Answered
Solve equation without symbolic toolbox
Do you understand this is not a simple quadtatic polynomial? In fact, it is equivalent to a rather high order polynomial. And is...

4 years ago | 0

Answered
How do you verify if a training curve is overfitting?
This is why you need to segregate some of your data for validation purposes. Split your data into two parts, perhaps selected r...

4 years ago | 0

Answered
H,S,V components
trivial, really. help rgb2hsv So simply convert to HSV. Then you can use a tool like imshow waves = imread('waves.jpg'); wav...

4 years ago | 1

Load more