필터 지우기
필터 지우기

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 CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by