Randomly pick value in matrix and generate the function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi I want to builld a matlab code that can generate the plot and calculate the volume
L=[147:50:180]
R=[157:50:180]
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/623623/image.png)
is it possible to plot it ?
0 Kommentare
Antworten (1)
David Hill
am 19 Mai 2021
[r,l]=meshgrid(157:173,147:180);
v=pi*r.^3+pi*r.^2.*l;%all possibilities
k=randi(numel(r));
A=[r(k),l(k),V(k)];%random element of v
2 Kommentare
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!