Community Profile

photo

Tin Nguyen


Active since 2015

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


What am I doing wrong in my code? Trying to detect if array has NaN.
So this is my code: x = [ NaN NaN 24 ] if isnan(x)==1 A=2 else A=min(x) end So I ...

8 years ago | 1 answer | 0

1

answer

Question


How to find complex numbers in an array and turn it into something else?
So if I had an array that contains real numbers and complex number such as this: r = 0.2876 + 0.3069i 0.2876 - 0.30...

8 years ago | 1 answer | 0

1

answer

Question


How to select specific elements in a matrix?
Say I have a 10x10 matrix x = 17 24 1 8 15 23 5 7 14 16 4 6 13 20 ...

8 years ago | 1 answer | 1

1

answer

Question


Writing strings on multiple lines
Hi, I am trying to draw a graph with the following code: figure plot(x,dfdx4,'k-',x,dfdx5,'b-',x,dfdx6,'g-', x,fx4, ...

8 years ago | 2 answers | 0

2

answers

Question


How to find all the even numbers in a vector?
Say we have a vector x=[ 1 1 2 2 2 2 3 3 3 3 4 4 4 ] and I want to find all the even numbers but subtract is by 1 so that the ve...

8 years ago | 1 answer | 0

1

answer