Randomly pick value in matrix and generate the function

2 次查看(过去 30 天)
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]
is it possible to plot it ?

回答(1 个)

David Hill
David Hill 2021-5-19
[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

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by