Community Profile

photo

Jeah MK


Last seen: fast 2 Jahre vor Aktiv seit 2022

Followers: 0   Following: 0

Statistiken

  • Thankful Level 2
  • Thankful Level 1

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


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(...

etwa 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 ...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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 (...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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]?

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort