フィルターのクリア

how do i plot a rectangle havng cetain dimensions and inside it even number of parametric cordinates such dat the centres of all cordinates and centre of rectangle coincide?

2 ビュー (過去 30 日間)
i have to define a plan geometry in which my parametric input will be numb of columns..i wish to put columns in such a way dat dey are symetrically placed inside the rectangle..

採用された回答

Image Analyst
Image Analyst 2014 年 7 月 29 日
I don't understand the question. Please give a numerical example. Maybe you can define the midpoint
xMid = (xLeft + xRight) / 2;
Then calculate other x based on distances from that
% Set up.
numberOfColumns = 4
xLeft = 1;
xRight = 11;
spacing = 0.2;
% Do it:
xMid = (xLeft + xRight) / 2
incr = 1 : numberOfColumns;
xRight = xMid - spacing * fliplr(incr)
xLefts = xMid + spacing * incr
  3 件のコメント
Image Analyst
Image Analyst 2014 年 7 月 30 日
And my code doesn't do that? It finds the midpoint and makes several pairs of columns symmetrically on either side of the midline column. If that's not what you want then attach a diagram.

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by