Community Profile

photo

nty huy


Actif depuis 2019

Statistiques

Content Feed

Afficher par

Question


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

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Question


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

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Question


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

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Question


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

plus de 4 ans il y a | 1 réponse | 0

0

réponse

Question


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

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Question


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

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Question


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

plus de 4 ans il y a | 1 réponse | 0

0

réponse

Question


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.
how to answer this question i think there is subplots?

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Question


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

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Question


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?

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Question


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

plus de 4 ans il y a | 2 réponses | 0

2

réponses

Question


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

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Question


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

plus de 4 ans il y a | 2 réponses | 0

2

réponses

Question


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

plus de 4 ans il y a | 1 réponse | 0

1

réponse