Answered

Continuity of a function in a interval

It may seem basic to you. However, that just means you need to understand computing and floating point arithmetic. Nope. In fac...

Continuity of a function in a interval

It may seem basic to you. However, that just means you need to understand computing and floating point arithmetic. Nope. In fac...

25 días ago | 0

Answered

How to stop MATLAB from opening every time I switch on my computer?

This is not MATLAB that is your problem, but your MAC, and what you apparently told it to do. :) You have MATLAB set as a start...

How to stop MATLAB from opening every time I switch on my computer?

This is not MATLAB that is your problem, but your MAC, and what you apparently told it to do. :) You have MATLAB set as a start...

25 días ago | 0

Answered

understanding "<" operator line

In order to understand this, I'd STRONGLY recommend you do the MATLAB Onramp tutorials. Try some examples. Look at what happens!...

understanding "<" operator line

In order to understand this, I'd STRONGLY recommend you do the MATLAB Onramp tutorials. Try some examples. Look at what happens!...

26 días ago | 0

| accepted

Answered

Logical indexing of table failing

No. You do NOT know it contains 0.35. In fact, MATLAB cannot represent 0.35 exactly in floating point arithmetic. This is for th...

Logical indexing of table failing

No. You do NOT know it contains 0.35. In fact, MATLAB cannot represent 0.35 exactly in floating point arithmetic. This is for th...

26 días ago | 0

Answered

Summing using simspons rule for a given range

If I might suggest, your goal is actively a poor one. Why? Simpson's rule is a higher order rule. It tries to give you a higher...

Summing using simspons rule for a given range

If I might suggest, your goal is actively a poor one. Why? Simpson's rule is a higher order rule. It tries to give you a higher...

27 días ago | 0

Answered

Successive over-relaxation of Laplace equation is converging to slightly wrong value. Floating-point error or code error?

To understand what is happening, you need to first understand what the equations represent! Is this effectively a partial diffe...

Successive over-relaxation of Laplace equation is converging to slightly wrong value. Floating-point error or code error?

To understand what is happening, you need to first understand what the equations represent! Is this effectively a partial diffe...

27 días ago | 0

Answered

How can I find the eigenvalues of an n-by-n matrix using For Loops?

Simpler than what Matt has suggested is to just use matrix multiplication, coupled with deflation. That is, can you find the LA...

How can I find the eigenvalues of an n-by-n matrix using For Loops?

Simpler than what Matt has suggested is to just use matrix multiplication, coupled with deflation. That is, can you find the LA...

28 días ago | 0

Answered

Linear approximation of data set's points.

Don't do it that way!!!!!!! You cannot achieve a continuous piecewise linear function that way. Instead, use a tool designed to ...

Linear approximation of data set's points.

Don't do it that way!!!!!!! You cannot achieve a continuous piecewise linear function that way. Instead, use a tool designed to ...

28 días ago | 1

Answered

Matlab integration of numerical data

In order for it to be truly general, you will need to interpolate the "function". For example, we might do this: x = 0:10; y =...

Matlab integration of numerical data

In order for it to be truly general, you will need to interpolate the "function". For example, we might do this: x = 0:10; y =...

28 días ago | 0

Answered

How to select complementary elements from a vector?

d = [3 2 1 5 6 7 8 9 0]; I = [1 3 7]; setdiff(d,I) Note that your example is actually incorrect, in that you claim 7 should...

How to select complementary elements from a vector?

d = [3 2 1 5 6 7 8 9 0]; I = [1 3 7]; setdiff(d,I) Note that your example is actually incorrect, in that you claim 7 should...

29 días ago | 0

Answered

Applying Newton's Method to Sound Level Equation

Since we cannot solve it directly.... Are you absolutely positive of that? L0 = 80; beta = 32.2; L = 20; syms r solve(L0...

Applying Newton's Method to Sound Level Equation

Since we cannot solve it directly.... Are you absolutely positive of that? L0 = 80; beta = 32.2; L = 20; syms r solve(L0...

29 días ago | 0

Answered

Output all possible results on a 7 equation system

First, it can be proven that not all mathematical equations of this sort can be "solved". This goes back as far as Abel-Ruffini....

Output all possible results on a 7 equation system

First, it can be proven that not all mathematical equations of this sort can be "solved". This goes back as far as Abel-Ruffini....

30 días ago | 1

| accepted

Answered

solving equations with trigonometric functions

Note that x1, x2, x5, x6 are just NUMBERS. Defining them as syms in advance does nothing. MATLAB is a language with dynamic vari...

solving equations with trigonometric functions

Note that x1, x2, x5, x6 are just NUMBERS. Defining them as syms in advance does nothing. MATLAB is a language with dynamic vari...

30 días ago | 1

| accepted

Answered

error in matrix multiplication while solving system of differential equations

What you do not understand is that the exponential function is exp. Thus, instead of writing e^(-t), you write exp(-t). Next, y...

error in matrix multiplication while solving system of differential equations

What you do not understand is that the exponential function is exp. Thus, instead of writing e^(-t), you write exp(-t). Next, y...

alrededor de 1 mes ago | 0

Answered

How to solve an optimization problem over two variables using fmincon?

You CANNOT use fmincon on a problem with binary variables or any form of discrete variables. However, IF y is indeed binary, th...

How to solve an optimization problem over two variables using fmincon?

You CANNOT use fmincon on a problem with binary variables or any form of discrete variables. However, IF y is indeed binary, th...

alrededor de 1 mes ago | 0

Answered

Equation to Matlab code

ALWAYS show what you wrote. Ony you know what you mean by dealing with vectors, etc. In the first case, do you have a vector of ...

Equation to Matlab code

ALWAYS show what you wrote. Ony you know what you mean by dealing with vectors, etc. In the first case, do you have a vector of ...

alrededor de 1 mes ago | 0

| accepted

Answered

How to calculate partial area-under-the-curve?

After all of those comments, to be honest, sorry, but you were both working far too hard on a moderately simple problem. Simpl...

How to calculate partial area-under-the-curve?

After all of those comments, to be honest, sorry, but you were both working far too hard on a moderately simple problem. Simpl...

alrededor de 1 mes ago | 0

Answered

How to call fminsearch on my function

Um, you misunderstand the problem. Your function has TWO arguments. PR and PC, both of which you want to be optimized. And while...

How to call fminsearch on my function

Um, you misunderstand the problem. Your function has TWO arguments. PR and PC, both of which you want to be optimized. And while...

alrededor de 1 mes ago | 0

Answered

Uniform Random Variable PDF

What are you doing wrong? Um, pretty much everything? Sorry, but true. ;) However, you do seem to have made some credible effort...

Uniform Random Variable PDF

What are you doing wrong? Um, pretty much everything? Sorry, but true. ;) However, you do seem to have made some credible effort...

alrededor de 1 mes ago | 0

Answered

Solving Exponencial fuction is not returning the right answer

Yes, you THINK the true answer is 3. But it is not. format long g log(2653/2500) / log(51/50) And that is effectively the exa...

Solving Exponencial fuction is not returning the right answer

Yes, you THINK the true answer is 3. But it is not. format long g log(2653/2500) / log(51/50) And that is effectively the exa...

alrededor de 1 mes ago | 1

| accepted

Answered

Solving an inequation of first degree issue

syms x a = 3*x + 21 <= 5*x + 13 asol = solve(a,'returnconditions',true) asol.x asol.conditions It looks like x >= 4 is the ...

Solving an inequation of first degree issue

syms x a = 3*x + 21 <= 5*x + 13 asol = solve(a,'returnconditions',true) asol.x asol.conditions It looks like x >= 4 is the ...

alrededor de 1 mes ago | 1

| accepted

Answered

datetime values appear to be equal but return not equal

format long does NOT tell you every single digit in the number!!!! format long does NOT tell you every single digit in the numb...

datetime values appear to be equal but return not equal

format long does NOT tell you every single digit in the number!!!! format long does NOT tell you every single digit in the numb...

alrededor de 1 mes ago | 0

| accepted

Answered

Distribute data in the form of a circle

You say you want to distribute data, which implies you want to see random numbers, based on some vague, unspecified distribution...

Distribute data in the form of a circle

You say you want to distribute data, which implies you want to see random numbers, based on some vague, unspecified distribution...

alrededor de 1 mes ago | 0

| accepted

Answered

Cody Problem 19. Swap the first and last columns

This is NOT a provblem with the Cody problem, but with your code to solve it. First, see what happens when A is 1. I'll show wh...

Cody Problem 19. Swap the first and last columns

This is NOT a provblem with the Cody problem, but with your code to solve it. First, see what happens when A is 1. I'll show wh...

alrededor de 1 mes ago | 0

| accepted

Answered

How I can separate a matrix that is not positive definite, into two matrices?

Please learn to use operators and to clearly explain your question. Are you asking to find a new matrix Sq, such that the linea...

How I can separate a matrix that is not positive definite, into two matrices?

Please learn to use operators and to clearly explain your question. Are you asking to find a new matrix Sq, such that the linea...

alrededor de 1 mes ago | 0

Answered

Search for combination of parameters that make minimum function output.

Before you go too far, some ideas to consider. I hope you have a FUNCTION, not a script. Learn to use functions. You will need...

Search for combination of parameters that make minimum function output.

Before you go too far, some ideas to consider. I hope you have a FUNCTION, not a script. Learn to use functions. You will need...

alrededor de 1 mes ago | 0

Answered

Interpolating non-independent values

x is non-monotonic as a function of time. I have no idea what you mean by bounce, but I assume it indicates the failure to be mo...

Interpolating non-independent values

x is non-monotonic as a function of time. I have no idea what you mean by bounce, but I assume it indicates the failure to be mo...

alrededor de 1 mes ago | 1

Answered

Is not there a way to erase all the NaNs from a mxn matrix once and left the index values empty ?

A matrix cannot have "empty" elements. Well, a cell array can, or if you wrote a completely new class of your own, but standard ...

Is not there a way to erase all the NaNs from a mxn matrix once and left the index values empty ?

A matrix cannot have "empty" elements. Well, a cell array can, or if you wrote a completely new class of your own, but standard ...

alrededor de 1 mes ago | 1

| accepted

Answered

Can't solve for x with (a = y/x)

I'm not sure what a rational integer is. How is that distinct from an integer? Anyway, assume x and y are integers, with a comp...

Can't solve for x with (a = y/x)

I'm not sure what a rational integer is. How is that distinct from an integer? Anyway, assume x and y are integers, with a comp...

alrededor de 1 mes ago | 0

Answered

How can I use while loops to determine if an element is larger than the element below it and store the results in a vector with 1 representing true and 0 representing false?

"While" this does not answer your question, I would not use a while loop at all. Learn to use MATLAB as it is designed. A = ran...

How can I use while loops to determine if an element is larger than the element below it and store the results in a vector with 1 representing true and 0 representing false?

"While" this does not answer your question, I would not use a while loop at all. Learn to use MATLAB as it is designed. A = ran...

alrededor de 1 mes ago | 2