photo

nty huy


Attivo dal 2019

Followers: 0   Following: 0

Statistica

Feeds

Visto da

Domanda


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

circa 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 5 anni fa | 0 risposte | 0

0

risposte

Domanda


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

circa 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 5 anni fa | 0 risposte | 0

0

risposte

1

risposta

Domanda


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

circa 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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?

circa 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 5 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 5 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 5 anni fa | 1 risposta | 0

1

risposta