Community Profile

# Jeah MK

Last seen: 21 Tage ago Active since 2022

View badges

#### Content Feed

View by

Question

Does it have a statement for replacing repeated multiple if and elseif statements?
I have a code: a = 0:0.001:1; b = 0.03*sin(a); for i = 1:length(a), d = 0; if b(i) <= 0.02; if 0 < b(...

4 Monate ago | 2 answers | 0

### 2

answers

Question

generate a vector with a condition of a vector
I have a vector a a = 1:1:20; and each increment of a by 1 and a <= 10 creates a vector b with condition: a = 1 => b = 1:1:1...

4 Monate ago | 1 answer | 0

### 1

answer

Question

How can I rearrange a vector?
I have a vector a = [9 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 9]; How can I rearrage it to a = [0 0 0 0 0 4 3 2 1 0 1 2 3 4 0 0 ...

4 Monate ago | 1 answer | 0

### 1

answer

Question

how to sum each element in vector
I have a vector a = 1:1:10; I want to make a vector by sum each elements; for example, s = [1+0 1+2 3+3 6+4 10+5 ...... ]; I...

5 Monate ago | 1 answer | 0

### 1

answer

Question

The sum of elements by multiplying two different vectors
I have an equation like this: where vector = 1:1:10 and vector time = 0:0.001:1; and b should be resulted in length of t (...

5 Monate ago | 1 answer | 0

### 1

answer

Question

How can I plot a reverse x-axis on the same graph?
I have x = [0 1 2 3 4 3 2 1 0]; and y = 2*x; how can I plot(x,y) and see the value on x-axis as [0 1 2 3 4 3 2 1 0]?

5 Monate ago | 1 answer | 0

### 1

answer

Question

How to add two different vectors?
I have a question regarding two vectors dimensions. x = 0:1:10000; y = 2*x; Then I would like to take 10 points from vector...

5 Monate ago | 1 answer | 0

### 1

answer

Question

Two circles geometry problems
Circle1 with radius intersects with Circle 2 with radius . The Circle 1 has center , and Circle 2 has the center at the initial...

6 Monate ago | 1 answer | 0

answer