tell me the code for how to place scatterrers in a cylindrical volume?

1 回表示 (過去 30 日間)
vinod kumar govindu
vinod kumar govindu 2016 年 10 月 18 日
コメント済み: Walter Roberson 2016 年 10 月 19 日
place different scatterrers in a cylindrical volume
  7 件のコメント
Walter Roberson
Walter Roberson 2016 年 10 月 18 日
Then my code below is a solution. You do not need to plot the X Y Z points if you do not want to. Adjust the radius and height parameters according to your needs. N is the number of points to generate. The K'th scatterrer is located at (X(K), Y(K), Z(K))
vinod kumar govindu
vinod kumar govindu 2016 年 10 月 18 日
編集済み: Walter Roberson 2016 年 10 月 18 日
is this the way to create cylindrical volume?
X=[-1,1];
Y=[-1,1];
Z=[30,34];
cylinder=[X,Y,Z];
r=input('enter tha value of range gate=');
deltar=[r-2,r+2];
N=input('enter the value of number of scatterrers=');
s=rand(N,1);
if it is wrong help me how to create that ?

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

採用された回答

Walter Roberson
Walter Roberson 2016 年 10 月 18 日
radius = 5;
height = 18;
N = 1000;
r = sqrt(rand(1,N)) * radius;
th = rand(1,N) * 2 * pi;
h = rand(1,N) * height;
[X, Y, Z] = pol2cart(th, r, h);
scatter3(X, Y, Z)
  3 件のコメント
vinod kumar govindu
vinod kumar govindu 2016 年 10 月 19 日
thanks roberson.
i am trying on one coding since last week i am not getting time series response properly. I will explain my project crearly will you please provide code for that if possible?
Walter Roberson
Walter Roberson 2016 年 10 月 19 日
Backscatter and radar is not a topic I know anything about.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTimetables についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by