Azzera filtri
Azzera filtri

Randomly pick value in matrix and generate the function

1 visualizzazione (ultimi 30 giorni)
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 ?

Risposte (1)

David Hill
David Hill il 19 Mag 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 Commenti
Dai Nguyen
Dai Nguyen il 19 Mag 2021
Thank you so much
is it possible to record all the data and plot it ?

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by