Answered

arg(Z) is the function returns argument of the complex number Z. but it is showing error while executing arg(1+i) as" Undefined function 'arg' for input arguments of type 'double' ". Can anyone help me?.do u need to convert double to complex?. put u

No such function as arg. Use angle(1+i)

arg(Z) is the function returns argument of the complex number Z. but it is showing error while executing arg(1+i) as" Undefined function 'arg' for input arguments of type 'double' ". Can anyone help me?.do u need to convert double to complex?. put u

No such function as arg. Use angle(1+i)

7 years ago | 0

Answered

How to ensure a constant amplitude for a sin wave plot ?

I think if you increase the time resolution, that should solve your problem.

How to ensure a constant amplitude for a sin wave plot ?

I think if you increase the time resolution, that should solve your problem.

7 years ago | 0

| accepted

Answered

How to print the first 100 primes including 1 as a vector

To print prime numbers less than 100 use primeNums = [1 primes(100)] See - http://www.mathworks.com/help/matlab/ref/pr...

How to print the first 100 primes including 1 as a vector

To print prime numbers less than 100 use primeNums = [1 primes(100)] See - http://www.mathworks.com/help/matlab/ref/pr...

7 years ago | 0

Answered

How to avoid inf

Log of zero is -Inf. To avoid that add a small number before taking the log. For example - D = log(normcdf() - normcdf() ...

How to avoid inf

Log of zero is -Inf. To avoid that add a small number before taking the log. For example - D = log(normcdf() - normcdf() ...

7 years ago | 0

| accepted

Answered

Is assign a title to rows or columns possible?

In the newer versions of matlab (I think 2013b and beyond) there is a type of data type called *table*. This allows you to use ...

Is assign a title to rows or columns possible?

In the newer versions of matlab (I think 2013b and beyond) there is a type of data type called *table*. This allows you to use ...

7 years ago | 0

| accepted

Answered

I have a imaginary matrix C and I need to decompose it to B'AB. Where B should be of size (m,n) and A(m,m).

Without more information I can only assume you are trying to accomplish a Schur Decomposition. Please see <http://www.mathworks...

I have a imaginary matrix C and I need to decompose it to B'AB. Where B should be of size (m,n) and A(m,m).

Without more information I can only assume you are trying to accomplish a Schur Decomposition. Please see <http://www.mathworks...

7 years ago | 0

| accepted

Answered

How to find overlapping between multiple cell array in a row?

Matlab allows set operations. I can think of doing it a few ways using "ismember" or "union" methods. Please see http://www.m...

How to find overlapping between multiple cell array in a row?

Matlab allows set operations. I can think of doing it a few ways using "ismember" or "union" methods. Please see http://www.m...

7 years ago | 0

Answered

How to extract values from a multi column data within a for loop?

Let's say your matrix is A Use this code to combine the permutations in the first three columns into a vector B = [1...

How to extract values from a multi column data within a for loop?

Let's say your matrix is A Use this code to combine the permutations in the first three columns into a vector B = [1...

7 years ago | 0

| accepted

Answered

Matlab ambient busy sounds

There does not seem to be a solution for this from within matlab? When I am running long scripts, I usually put a sendmail entry...

Matlab ambient busy sounds

There does not seem to be a solution for this from within matlab? When I am running long scripts, I usually put a sendmail entry...

7 years ago | 0

Question

In Matlab when issuing a custom warning, the message-id is not being recognized. How do I correct this?

I am issuing a warning in my code like - warning('Custom:data-missing','Can''t access Customer Terms for data point #%d.',...

7 years ago | 1 answer | 1