Community Profile # nty huy

2019 以来アクティブ

#### Content Feed

Make a loop in such way that i will be increasing by 5 from 4 up to 30 and by 3 from 30 till up to 50.
im still confused on using while loops and if loops can someone help me with this question

### 1

Im programming a mini game and i wanted help with how to rank based on time
i wanted to rank the player based on time say 10 second is first, 20 seconds is second and so on, what code can i use for that i...

### 1

Count how many ‘a’ are in str and eliminate those ‘a’
so for ex in a str= i have an apple and we want to see how many a and remove them we would use str1= 'a' ind = strfind(str...

### 1

Make 1 figure with 2 plots in 1 row. First plot will be empty, and second plot will contain bar plot of all values of i from one of the above loops.
subplot(1,2,1); subplot(1,2,2); bar(i) but howto add additional variable v which will 'remember' values of i from each iter...

### 0

Make an interactive plot which will allow you to draw a continuous line with 3 segments
figure; hold on xlim([0 1]) ylim([0 1]) plot(rand(1),rand(1),'o') for i = 1 : 3 [x1 y1] = ginput( 1 ); plot( x...

### 1

Make an array Arr where element Arr(m,n)=i(m)+j(n)*i(m), and i is changing from -5 to 20 and j is changing from -13 to 9.
can somone help me with this, i know basic arrays which are [- 5 5 10 15 20] but this array is a little diffrent

### 1

Make 1 figure with 2 plots in 1 row. First plot will be empty, and second plot will contain bar plot of all values of i from one of the above loops.
create additional variable v which will 'remember' values of i from each iteration. so i have this subplot(1,2,1); subplo...

### 1

Write a loop which will be increasing variable i by 5 at each iteration till i reaches 50. Initial value of i is 12.
im having a bit trouble with loops if somone can help me with this answer and explain as well it would be nice

### 1

Change column in array
Arr= [ 5 5 5 5 ; 5 5 5 5; 5 5 5 5 ; 5 5 5 5; 5 5 5 5] how to change all elements in a column to a diffrent number?

### 1

Help on text and colours
so i have this graph t = linspace(0,5*2*pi)'; y = cos(t); plot(t,cos(t)) and i want some text in the middle how do i ...

### 2

Change all elements in 2nd column to 3
vArr = [ 5 5 5 5; 5 5 5 5 ; 5 5 5 5; 5 5 5 5; 5 5 5 5 ] so i have this and i knw how to change one element but how to change...

### 1

Create array Arr with 5 rows and 4 columns with each element = 5
vArr = [ 5 6 7 8; 2 3 4 5 ; 2 3 4 5; 2 3 4 5; 2 3 4 5 ] but what does it mean with each element = 5 all number has to be 5???...

### 1

Create array Arr with 5 rows and 4 columns with each element = 5
how to do