es soll ein Netz mit Messpunkten im Raum in 3 Ebenen gespannt. Der erste Wert wird als Vektor gegeben (X,Y,Z1).
Der Abstand zwischen allen X-Y Werten ist gegeben und immer gleich. Es gibt 3 Ebenen, welche als Z Informationen (h1-h3)vorliegen.
Ich habe es manuell ausprogrammiert und suche nun eine deutlich kuerzere Form:
Code:
%coordinates of each measure point (100cm ; 155cm ; 210cm )
%point 1 to 15 100cm
%point 16 to 30 155cm
%point 31 to 45 255cm
%variable between measurepoints horizontal (1m)
v = 1;
qom = 45; quantity of measure points
for i = 1:(qom - 1) if(i == 15) %if setup for the first 15 measure points ready
S(3) = h2; %go to 2nd floor end;
if(i == 30) %if setup for the second 15 measure points ready
S(3) = h3; %go to 3rd floor end;
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.