フィルターのクリア

Randomly pick value in matrix and generate the function

1 回表示 (過去 30 日間)
Dai Nguyen
Dai Nguyen 2021 年 5 月 19 日
コメント済み: David Hill 2021 年 5 月 19 日
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
  2 件のコメント
Dai Nguyen
Dai Nguyen 2021 年 5 月 19 日
Thank you so much
is it possible to record all the data and plot it ?
David Hill
David Hill 2021 年 5 月 19 日
surf(r,l,v);%data is all recorded in r, l, and v

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by