Community Profile

# RG

Last seen: 3 months ago Active since 2015

#### Content Feed

View by

Swap number with a word
Excellent, thanks!

3 years ago | 0

Question

Swap number with a word
Hi all, I am wondering how I could swap a number in a vector with a word. I have a vector from 1 to 100 ( linspace(1,100) ) a...

3 years ago | 2 answers | 0

### 2

Question

How to access certain matrix elements and turn into NaN?
Hi, I have two matrices *z* and *interior* as shown below: z =[ 9.0000 17.6400 29.1600 43.5600 60.8400 81.0...

5 years ago | 1 answer | 0

### 1

Subscript indices must either be real positive integers or logicals
I had to first create a function called *sigma_TT*: function sigma_TT = sigma_TT(r, theta) sigma_TT = r.^4 .* cos...

5 years ago | 0

| accepted

Question

Subscript indices must either be real positive integers or logicals
Hei All, I have been getting the error message "Subscript indices must either be real positive integers or logicals. " refer...

5 years ago | 2 answers | 0

### 2

Question

How to replace RGB values
Hi Everyone, I was wondering if it is possible to replace the RGB values of an image with values of certain range? I have ...

5 years ago | 3 answers | 0

### 3

Question

How to extract columns of a matrix using a for loop?
Hi Everyone, I have a 3x6 matrix and trying to extract 1st and 3rd, 2nd and 5th, 3rd and 6th column using a loop. The matrix ...

5 years ago | 1 answer | 0

### 1

Question

Help with using "nargin"
Hi All, I got a function "replace(a,b,c)" where I am trying to replace input arguments with another input argument when some ...

6 years ago | 1 answer | 0