Answered

What are the commands for...

Column space basis orthogonal representations are obtained in MATLAB using either null or orth. In fact, they work regardless of...

What are the commands for...

Column space basis orthogonal representations are obtained in MATLAB using either null or orth. In fact, they work regardless of...

22 hours ago | 0

Answered

how to fit a function on my dara

When you get an error, don't just tell us you got an error. Paste in the complete error text. At least, you showed a picture of ...

how to fit a function on my dara

When you get an error, don't just tell us you got an error. Paste in the complete error text. At least, you showed a picture of ...

1 day ago | 0

Answered

Is cputime a linear function of the number of for-loops?

This is a complicated question, in the sense that you need to understand the mathematics FIRST. And I think you do not understan...

Is cputime a linear function of the number of for-loops?

This is a complicated question, in the sense that you need to understand the mathematics FIRST. And I think you do not understan...

2 days ago | 0

| accepted

Answered

Issue with gammainc(x,a) for small x and larger a

Sadly, you are limited in that no matter how hard you try, you will not be able to compute it in double precision when it is tha...

Issue with gammainc(x,a) for small x and larger a

Sadly, you are limited in that no matter how hard you try, you will not be able to compute it in double precision when it is tha...

2 days ago | 1

| accepted

Answered

interpolation between two fixed points

I'd never have guessed what the quetion was from the initial question as written. But the answer is to use discretize. You hav...

interpolation between two fixed points

I'd never have guessed what the quetion was from the initial question as written. But the answer is to use discretize. You hav...

3 days ago | 0

Answered

How to realize Riemann Siegel Theta Function with MATLAB？

You start by writing the formula for it. That can be found on virtually the first line in this link. https://en.wikipedia.org/w...

How to realize Riemann Siegel Theta Function with MATLAB？

You start by writing the formula for it. That can be found on virtually the first line in this link. https://en.wikipedia.org/w...

4 days ago | 1

| accepted

Answered

Find Beta in Half Rectifier on matlab

WHAT DID YOU TRY? If nothing, why not? Did you try using the symbolic toolbox? It looks like solve won't give an analytical res...

Find Beta in Half Rectifier on matlab

WHAT DID YOU TRY? If nothing, why not? Did you try using the symbolic toolbox? It looks like solve won't give an analytical res...

4 days ago | 1

| accepted

Answered

Why I am unable to recreate curve fitting equation?

I had to play with this for a while, because my first assumption was that you were using the wrong coefficients. In fact, while ...

Why I am unable to recreate curve fitting equation?

I had to play with this for a while, because my first assumption was that you were using the wrong coefficients. In fact, while ...

4 days ago | 0

Answered

Integral from sin(x+y) from dx shows wierd result

Computers don't really care that YOU think it looks wierd. The fact is, that form for the integral is correct, just as much so a...

Integral from sin(x+y) from dx shows wierd result

Computers don't really care that YOU think it looks wierd. The fact is, that form for the integral is correct, just as much so a...

5 days ago | 2

| accepted

Answered

Howto Replace Specified and Non-Specified Elements in Matrix with Strings

You cannot do so. Sort of. Ok, well, you can. sort of. A double precision matrix in MATLAB is a rectangular array that contains...

Howto Replace Specified and Non-Specified Elements in Matrix with Strings

You cannot do so. Sort of. Ok, well, you can. sort of. A double precision matrix in MATLAB is a rectangular array that contains...

5 days ago | 1

Answered

Solving an Incomplete Matrix such that A*transpose(A) = eye(n)

There exist NO such values for a,b,c such that A*A' == eye(3). Look carefully at A*A'. vpa(A*A') ans = [ ...

Solving an Incomplete Matrix such that A*transpose(A) = eye(n)

There exist NO such values for a,b,c such that A*A' == eye(3). Look carefully at A*A'. vpa(A*A') ans = [ ...

6 days ago | 2

| accepted

Answered

Problem of color interpolation of surf plot

This is an interpolation artifact. The cause is a pretty simple one. Fixing it is slightly less trivial, because you need to und...

Problem of color interpolation of surf plot

This is an interpolation artifact. The cause is a pretty simple one. Fixing it is slightly less trivial, because you need to und...

6 days ago | 0

| accepted

Answered

How to extrapolate the plot of continuous data points so as to extend the region of plot

“In the space of one hundred and seventy six years the Lower Mississippi has shortened itself two hundred and forty-two miles. T...

How to extrapolate the plot of continuous data points so as to extend the region of plot

“In the space of one hundred and seventy six years the Lower Mississippi has shortened itself two hundred and forty-two miles. T...

6 days ago | 0

Answered

How do I create a polygon with n sides with only 90 degree or 270 degree internal angles?

I guess I don't really see the problem. And I don't really see where you are going with this, but... Start with a library of ev...

How do I create a polygon with n sides with only 90 degree or 270 degree internal angles?

I guess I don't really see the problem. And I don't really see where you are going with this, but... Start with a library of ev...

6 days ago | 0

Answered

Golden Section Search algorithm, golden number why is 0.381

I think you need to spend some time in class listening, lol. Or, maybe your instructor did not explain this. It is very possible...

Golden Section Search algorithm, golden number why is 0.381

I think you need to spend some time in class listening, lol. Or, maybe your instructor did not explain this. It is very possible...

7 days ago | 2

| accepted

Answered

"temp" was previously used as a variable, conflicting with its use here as the name of a function or command.

The MATLAB language does not include this syntax temp += 26 Just because it works in some other language, does not make it va...

"temp" was previously used as a variable, conflicting with its use here as the name of a function or command.

The MATLAB language does not include this syntax temp += 26 Just because it works in some other language, does not make it va...

7 days ago | 0

| accepted

Answered

"Scattered Interpolant" produces invalid values

I can shed light on your problem. What you think of as extrapolation is different from the way scatteredInterpolant sees the con...

"Scattered Interpolant" produces invalid values

I can shed light on your problem. What you think of as extrapolation is different from the way scatteredInterpolant sees the con...

7 days ago | 1

Answered

FZERO requires at least two input arguments

However you got the code you wrote, much of it is not valid syntax in MATLAB. This line, for example: fzero ltol = 10^-14; mid...

FZERO requires at least two input arguments

However you got the code you wrote, much of it is not valid syntax in MATLAB. This line, for example: fzero ltol = 10^-14; mid...

8 days ago | 0

| accepted

Answered

Contour plot ignores a set of data points

I've moved what was a comment into an answer, then added a bit... A very simple example of what I described is shown here: px ...

Contour plot ignores a set of data points

I've moved what was a comment into an answer, then added a bit... A very simple example of what I described is shown here: px ...

8 days ago | 1

| accepted

Answered

solve integral using ode45 (by derivative)

While what Ameer wrote looks like it will work, it still uses the dreaded & disallowed integral function. I'm adding this answer...

solve integral using ode45 (by derivative)

While what Ameer wrote looks like it will work, it still uses the dreaded & disallowed integral function. I'm adding this answer...

9 days ago | 1

| accepted

Answered

How can I PERMANENTLY change the path each time MATLAB is opened?

help savepath As well, if you were setting the path using pathtool, there is an option to SAVE the path. This leaves only the ...

How can I PERMANENTLY change the path each time MATLAB is opened?

help savepath As well, if you were setting the path using pathtool, there is an option to SAVE the path. This leaves only the ...

9 days ago | 0

Answered

Mean command gives wrong answer

No. the code gives the correct answer in terms of what you wrote. That the code you wrote does not solve the problem you want to...

Mean command gives wrong answer

No. the code gives the correct answer in terms of what you wrote. That the code you wrote does not solve the problem you want to...

9 days ago | 2

Answered

how to know if two lines are intersected ?

Just find the point where the lines are at their closest approach. If the point of closest approach is zero, they intersect. Gi...

how to know if two lines are intersected ?

Just find the point where the lines are at their closest approach. If the point of closest approach is zero, they intersect. Gi...

9 days ago | 1

| accepted

Answered

Finding zero crossing of equation

Are you trying to solve for a zero crossing of f(x)? if so, then computing the derivative is irrelevant, unless you might want t...

Finding zero crossing of equation

Are you trying to solve for a zero crossing of f(x)? if so, then computing the derivative is irrelevant, unless you might want t...

9 days ago | 0

Answered

Estimate best parameters using lscurvefit

You are getting lost and confused by the names x and y. They are irrelevant. You have 3 parameters. You have 5 data points, numb...

Estimate best parameters using lscurvefit

You are getting lost and confused by the names x and y. They are irrelevant. You have 3 parameters. You have 5 data points, numb...

9 days ago | 0

Answered

Scaling a vector-valued non-linear function-numerical optimization

To a large extent, I want to disagree with Michael in his recent comment, except that he is correct, in that a perusal of the gr...

Scaling a vector-valued non-linear function-numerical optimization

To a large extent, I want to disagree with Michael in his recent comment, except that he is correct, in that a perusal of the gr...

9 days ago | 0

Answered

FMINCON Linear Constraint Strictly Greater/Less Than

You cannot easily do so. fmincon assumes that the constraints do allow the bounds as possibilities. In fact, fmincon allows the ...

FMINCON Linear Constraint Strictly Greater/Less Than

You cannot easily do so. fmincon assumes that the constraints do allow the bounds as possibilities. In fact, fmincon allows the ...

10 days ago | 0

Answered

Generating random Gamma distribution

The trick is to understand how a transformation can solve the problem. This is a standard way to produce random numbers with som...

Generating random Gamma distribution

The trick is to understand how a transformation can solve the problem. This is a standard way to produce random numbers with som...

12 days ago | 0

Answered

can't plot exp * sin graph

Your problem lies in not understanding the difference between the .* and * operators. (In fact, this was probably why you were a...

can't plot exp * sin graph

Your problem lies in not understanding the difference between the .* and * operators. (In fact, this was probably why you were a...

12 days ago | 2

| accepted

Answered

whats wrong with my code

I wouldstart by saying this is not how you define a function. function fact[a,b,c]=my_fact(x) That is not valid syntax to defi...

whats wrong with my code

I wouldstart by saying this is not how you define a function. function fact[a,b,c]=my_fact(x) That is not valid syntax to defi...

12 days ago | 0