I want to define a small plane in which 'x' changes from (0.5 to 49.5), 'y' changes from (0 to 4.8) and 'z' changes from lets say (2.5 to 4.4). Its like a small piece of a pitched roof placed at an angle of about 22 degrees. I want to get the Cartesian points (x,y,z) of each point in this plane to use them later in some formula to get its solar coordinates. Lets just say that I want to get the coordinates of one solar panel (black region) in the given figure.
gty.PNG

Réponses (1)

KALYAN ACHARJYA
KALYAN ACHARJYA le 3 Fév 2019
Modifié(e) : KALYAN ACHARJYA le 3 Fév 2019
What I have undestood from your question is- you have the x,y,z points for a plane.
Is there any issue to use
[theta,rho,z]=cart2pol(x,y,z)
for complete set of data.
You will get the sets of theta, rho and z data of polar plane.
Read hereRead here

1 commentaire

rehan younas
rehan younas le 3 Fév 2019
@kalyan acharya
I have to use a different formula to calculate the solar coordinates. I have been able to define the interested plane(figure and plot attached), the only thing left is how can I get the cartesian coordinates of each point in the highlighted region? Hope to hear back from you.
helop.PNG
clc;
close all;
clear all;
x = linspace(0.5,49.5,100);
y = linspace(0,4.8,100);
z = linspace(2.5,4.4,100);
[X,Y,Z]=meshgrid(x,y,z);
v = X.*Y.*Z; %Creating a volume region
% Data defining a surface
[xs, ys] = meshgrid(x,y);
zs = 2.5+(tand(22).*ys);%Defining the slope of the roof
% Slice along it
slice(X, Y, Z, v, xs, ys, zs);
colorbar

Connectez-vous pour commenter.

Catégories

En savoir plus sur Solar Power dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by