14 total contributions since 2019

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

3 months ago | 1 answer | 0

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

3 months ago | 1 answer | 0

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

3 months ago | 1 answer | 0

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

4 months ago | 0 answers | 0

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

4 months ago | 1 answer | 0

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

4 months ago | 1 answer | 0

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

4 months ago | 0 answers | 0

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?

4 months ago | 1 answer | 0

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

4 months ago | 1 answer | 0

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?

4 months ago | 1 answer | 0

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

4 months ago | 2 answers | 0

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

4 months ago | 1 answer | 0

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

4 months ago | 1 answer | 0

Question

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

how to do

4 months ago | 1 answer | 0