Plot approximately 200 different angles in MATLAB
Mostrar comentarios más antiguos
How can i solve this problem : to create 1000 different integer random numbers between -100 to+100, and then rank these numbers from small to large, then plot a graph of these values that consists of blue triangles with interconnecting lines, and the values at approximately 200 different angles.
Respuestas (1)
Image Analyst
el 23 de Nov. de 2020
Editada: Image Analyst
el 23 de Nov. de 2020
Afrah:
Sounds like homework. Is it?
Hint:
- r = randi(............
- rSorted = sort(r...............
- plot(rSorted, 'b...........
I have no idea where or how you're supposed to get angles from 1000 random integers. But once you have the angles in an array called "angles" you can get the first 200 by simple indexing:
first200Angles = angles(1:200);
And are the blue triangles ...
- the "markers" that are placed at each data point (integer y value) or
- are the triangles somehow constructed from triplets of the 1000 points (and if so, how)?
Categorías
Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!