Answered

Extrapolating intersection points (signal processing/curve fitting)

Download Doug Schwarz's utility: intersections. https://www.mathworks.com/matlabcentral/fileexchange/11837-fast-and-robust-curv...

Extrapolating intersection points (signal processing/curve fitting)

Download Doug Schwarz's utility: intersections. https://www.mathworks.com/matlabcentral/fileexchange/11837-fast-and-robust-curv...

18 Tage ago | 0

Answered

How to generate below matrix

Lets be serious here. You want to learn to create a general matrix, with elements in various places, that may, or may not, be wh...

How to generate below matrix

Lets be serious here. You want to learn to create a general matrix, with elements in various places, that may, or may not, be wh...

18 Tage ago | 0

| accepted

Answered

how can i show that this equation has at least one solution with the given itnerval

We should not be doing your homework. But since Star has already answered your question, let me see if I can give you an idea. ...

how can i show that this equation has at least one solution with the given itnerval

We should not be doing your homework. But since Star has already answered your question, let me see if I can give you an idea. ...

19 Tage ago | 1

| accepted

Answered

fmincon with nonlinear equality constraints

This is barely an optimization problem at all. Many of your nonlinear constraints are just a kludge, a way to use a nonlinear e...

fmincon with nonlinear equality constraints

This is barely an optimization problem at all. Many of your nonlinear constraints are just a kludge, a way to use a nonlinear e...

19 Tage ago | 1

Answered

System implementation for loop

Don't create a list of 84 distinct numbered variables. This is a bad idea, terribly poor programming style. It willl create bugg...

System implementation for loop

Don't create a list of 84 distinct numbered variables. This is a bad idea, terribly poor programming style. It willl create bugg...

19 Tage ago | 0

| accepted

Answered

Multiplication of 2 matrix different

You should proably read the getting started tutorials, as this is a pretty basic question. In your early math courses, where t...

Multiplication of 2 matrix different

You should proably read the getting started tutorials, as this is a pretty basic question. In your early math courses, where t...

19 Tage ago | 0

Answered

Line search algorithm: nonlinear least squares method for fitting experimental data to a model

A bad idea: to write your own code to implement a numerical method, because you cannot make professionally written code to do th...

Line search algorithm: nonlinear least squares method for fitting experimental data to a model

A bad idea: to write your own code to implement a numerical method, because you cannot make professionally written code to do th...

19 Tage ago | 0

Answered

Generate N random uniformly distributed points in a specific area

+1 to ytzhak goussha for the correct solution of course. A rejection method is really the logical way to solve it. What I'll poi...

Generate N random uniformly distributed points in a specific area

+1 to ytzhak goussha for the correct solution of course. A rejection method is really the logical way to solve it. What I'll poi...

20 Tage ago | 0

Answered

Matlab String (1000) conversion into (1 0 0 0)

Is x a character vector, or a string vector? If char, do this: x = '1000'; y = x - '0'; If a string, you could simply convert...

Matlab String (1000) conversion into (1 0 0 0)

Is x a character vector, or a string vector? If char, do this: x = '1000'; y = x - '0'; If a string, you could simply convert...

20 Tage ago | 0

| accepted

Answered

My plot is in radians. How can I change it to multiples of pi. Also, I need to plot the standard deviation as well. Thank you.

You want to know how many multiples of pi? So you would divide by pi.

My plot is in radians. How can I change it to multiples of pi. Also, I need to plot the standard deviation as well. Thank you.

You want to know how many multiples of pi? So you would divide by pi.

20 Tage ago | 0

Answered

Trying to integrate sinx using the integrate function but when I plot the integral, instead of plotting from -1 to 1 it plots from 0 to 2. Does anyone know why this happens?

Actually, the integral of sin(x) is NOT -cos(x). This is a mistake that people frequently make. The integral is -cos(x), PLUS a ...

Trying to integrate sinx using the integrate function but when I plot the integral, instead of plotting from -1 to 1 it plots from 0 to 2. Does anyone know why this happens?

Actually, the integral of sin(x) is NOT -cos(x). This is a mistake that people frequently make. The integral is -cos(x), PLUS a ...

21 Tage ago | 1

| accepted

Answered

Solve exponential and trig function using roots?

Simple answer - No. Roots is designed to solve only one function, polynomial root finding. It does that well. You cannot make co...

Solve exponential and trig function using roots?

Simple answer - No. Roots is designed to solve only one function, polynomial root finding. It does that well. You cannot make co...

21 Tage ago | 1

Answered

Solve an overdetermined problem with lsqlin

lsqlin is not written to allow multiple right hand side vectors. But each column of d is just a separate, distinct, independent ...

Solve an overdetermined problem with lsqlin

lsqlin is not written to allow multiple right hand side vectors. But each column of d is just a separate, distinct, independent ...

21 Tage ago | 0

| accepted

Answered

How can I increase the numerical precision of my calculations?

NO. MATLAB does NOT output this: 1/1.0001 = 0.999900009999000099990000999900009999000099990000999900009999000099990000999900009...

How can I increase the numerical precision of my calculations?

NO. MATLAB does NOT output this: 1/1.0001 = 0.999900009999000099990000999900009999000099990000999900009999000099990000999900009...

22 Tage ago | 0

Answered

Is it possible to creare a matrix of functions?

Do you want to create function handles? For example, fmat = {@(x) sin(x), @(x) cos(x), @(x) exp(x), @(x) x^2 + 1}; fmat{1}(...

Is it possible to creare a matrix of functions?

Do you want to create function handles? For example, fmat = {@(x) sin(x), @(x) cos(x), @(x) exp(x), @(x) x^2 + 1}; fmat{1}(...

23 Tage ago | 3

Answered

How To Remove Repeating Pattern From Vector

x(find(diff(x) == 0) + 1) = []; That just drops out the consecutive reps, changing x. If you want to create a new vector, you ...

How To Remove Repeating Pattern From Vector

x(find(diff(x) == 0) + 1) = []; That just drops out the consecutive reps, changing x. If you want to create a new vector, you ...

23 Tage ago | 0

| accepted

Answered

How to find the normal to a hemisphere surface

Think about what the normal vector means. It points straight out from the hemisphere. What other known point is on the same line...

How to find the normal to a hemisphere surface

Think about what the normal vector means. It points straight out from the hemisphere. What other known point is on the same line...

24 Tage ago | 1

| accepted

Answered

how to generate random points located on the surface of a hemisphere with its center at (2, 1, 3) and a radius of 6?

Actually, there are easier ways than those proposed, with no loops required. The trick is easy too, basd on the symmetry of rand...

how to generate random points located on the surface of a hemisphere with its center at (2, 1, 3) and a radius of 6?

Actually, there are easier ways than those proposed, with no loops required. The trick is easy too, basd on the symmetry of rand...

24 Tage ago | 1

Answered

How to generate random matrices that are rank-deﬁcient by generating their SVD ﬁrst?

You do it by understanding what a rank deficient matrix is, and what the svd means. The svd of a matrix is a decomposition of th...

How to generate random matrices that are rank-deﬁcient by generating their SVD ﬁrst?

You do it by understanding what a rank deficient matrix is, and what the svd means. The svd of a matrix is a decomposition of th...

24 Tage ago | 1

| accepted

Answered

Gamfit function not working

Do you seriously expect to recover the exact values of those parameters? With only 100 samples, the CI are pretty wide. [p,ci] ...

Gamfit function not working

Do you seriously expect to recover the exact values of those parameters? With only 100 samples, the CI are pretty wide. [p,ci] ...

25 Tage ago | 0

Answered

Spline Interpolation with derivative condition for knots

Technically, this is impossible to accompish, at least in terms of a cubic spline. A cubic spline is twice continuously differ...

Spline Interpolation with derivative condition for knots

Technically, this is impossible to accompish, at least in terms of a cubic spline. A cubic spline is twice continuously differ...

25 Tage ago | 0

| accepted

Answered

how to generate random numbers with constraints?

This is not simple, if you want to find a truly uniform set. In 24 dimensions, things get fairly complicated. And the domain the...

how to generate random numbers with constraints?

This is not simple, if you want to find a truly uniform set. In 24 dimensions, things get fairly complicated. And the domain the...

25 Tage ago | 2

| accepted

Answered

Trying to minimise a function subject to nonlinear constraints

Simple mistake(s) here. You have TWO equality constraints. But your constraint function is written to have ONE equality constrai...

Trying to minimise a function subject to nonlinear constraints

Simple mistake(s) here. You have TWO equality constraints. But your constraint function is written to have ONE equality constrai...

25 Tage ago | 1

| accepted

Answered

choose a number from a matrix based on probability parameter

I think perhaps you do not understand probability. Imagine that you have a "fair" coin. Flip it once, and you expect to see it c...

choose a number from a matrix based on probability parameter

I think perhaps you do not understand probability. Imagine that you have a "fair" coin. Flip it once, and you expect to see it c...

26 Tage ago | 2

Answered

Finding intersection of 2 parabolic curve fits with different y-axes

Um, trivial, sort of? You want to find the intersection of these two polynomial curves as plotted? They are quadratics, for g...

Finding intersection of 2 parabolic curve fits with different y-axes

Um, trivial, sort of? You want to find the intersection of these two polynomial curves as plotted? They are quadratics, for g...

26 Tage ago | 1

Answered

optimization code with pso

You can't optimize two things at once, unless they both happen to be optimal at the same location. However, you can try to optim...

optimization code with pso

You can't optimize two things at once, unless they both happen to be optimal at the same location. However, you can try to optim...

26 Tage ago | 0

| accepted

Answered

Curve fitting tool generating different results with same data

Has nobody answered this question? The common reason why a method produces different results on a repeated start is there was a ...

Curve fitting tool generating different results with same data

Has nobody answered this question? The common reason why a method produces different results on a repeated start is there was a ...

26 Tage ago | 1

Answered

Undefined function or method 'unit8'

Perhaps the problem is with your typing or your spelling. ;-) While unit8 does not exist, uint8 does. MATLAB can be so picky.

Undefined function or method 'unit8'

Perhaps the problem is with your typing or your spelling. ;-) While unit8 does not exist, uint8 does. MATLAB can be so picky.

27 Tage ago | 3

| accepted

Answered

Generate unevenly-spaced synthetic time series

It failed, because the colon operator does not accept a random increment. Anyway, randn(1:5) does not generate a random number b...

Generate unevenly-spaced synthetic time series

It failed, because the colon operator does not accept a random increment. Anyway, randn(1:5) does not generate a random number b...

28 Tage ago | 0

Answered

Shuffle matrix rows so that common elements are in completely different order than in a said row

What you are looking for is a variation of derangement - thus a permutation such that no element is in the same location as it s...

Shuffle matrix rows so that common elements are in completely different order than in a said row

What you are looking for is a variation of derangement - thus a permutation such that no element is in the same location as it s...

28 Tage ago | 1