Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Loops, Arrays, Average, and 3D shapes display help? please and thank you

1 vue (au cours des 30 derniers jours)
Mat Lab Help 2019
Mat Lab Help 2019 le 4 Oct 2019
Clôturé : MATLAB Answer Bot le 20 Août 2021
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.
2. 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.Tip: this can be easier to do with ‘while’ loop, and with using ‘if’ statement.
3. 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. Tip: create additional variable v which will 'remember' values of i from each iteration.
4. Check if any element of v is not a number 5. Calculate average v
6. Modify one of the above loops in such a way that Matlab will ask you to specify in the command window the initial value of i.
7. Make an interactive plot which will allow you to draw a continuous line with 3 segments
8. 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.
9. Make 3 dimensional plot to display Arr
10. Check if sum of values in 2nd row is bigger than sum of values in 4th row of Arr
VER

Réponses (1)

Daniel M
Daniel M le 4 Oct 2019
Modifié(e) : Daniel M le 4 Oct 2019
I suggest you take the MATLAB onramp course.

Cette question est clôturée.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by