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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 2

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 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...

mehr als 3 Jahre vor | 1

Frage


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

mehr als 3 Jahre vor | 3 Antworten | 1

3

Antworten

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 2

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

mehr als 3 Jahre vor | 0

| akzeptiert

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 0

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

mehr als 3 Jahre vor | 1

Beantwortet
I get "Warning: Unable to determine poles" when I try to find the poles and zeros of a 5th-order equation with multiple variables.
You need to understand that this becomes a problem of solving for the roots of a general 5th degree polynomial. If ALL of the co...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How can I find the mean of multiple variables in for loop
You have asked 22 questions so far, and are still numbering your variables? This is yet another reason for why you need to learn...

mehr als 3 Jahre vor | 1

Beantwortet
Equation and plot of an image
NO polynomial function will EVER have that shape, thus s nice smooth parabolic looking shape, and then almost perfectly constant...

mehr als 3 Jahre vor | 0

Beantwortet
Finding local extrema of sinusoidal points
You can do it using my SLM toolbox. load matlab.mat x = WaveProf1(1:545,1); y = WaveProf1(1:545,2); [f,gof,out] = fit(x,y,'s...

mehr als 3 Jahre vor | 1

Beantwortet
A problem with function handle
NaNs are like wire coathangars, they multiply. Or perhaps evil zombies is a better description. They slime everything they touch...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to define a constant inside the 'fittype' function?
Use a function handle, as documented by fittype. fittype ft = fittype(@(a1,a2,b1,b2,b3,x) 1.21+(a1+a2.*T1).*x+s.*log((b1+b2./T...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do I find the minimum Surface area of a cylindrical shape and its corresponding minimum radius and height which have a range of values
You did write JUST enough MATLAB that I cannot in good faith close this as a homework assignment with no effort made. So I'll an...

mehr als 3 Jahre vor | 0

Beantwortet
Сalculate total contact area of two bodies?
The contact area as you have drawn is it zero. For example, the area where a plane touches a sphere? ZERO. A single point of con...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can I fit curve quadratically such that fit goes like in the picture?
It appears you have chosen to fit a quadratic polynomial to your data. And you say you want a quadratic polynomial, but you DREW...

mehr als 3 Jahre vor | 0

Beantwortet
Find x and y cordinates and t for z=0
It seems that from your comments, you want to find where z == 0, so the (x,y) coordinates where that happens, and t at that poin...

mehr als 3 Jahre vor | 0

Beantwortet
Split big matrix in many submatrices having same size
So many times this gets asked for. DON'T DO IT. Instead, learn to use arrays, of many types. For example, just make it into a 3 ...

mehr als 3 Jahre vor | 0

Mehr laden