Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How can i create a specific loop which stores values in a matrice?

1 vue (au cours des 30 derniers jours)
Philipp Mueller
Philipp Mueller le 9 Sep 2016
Clôturé : MATLAB Answer Bot le 20 Août 2021
Dear Community,
First of all thank you for your support in the last days. Here is my last question. I Promise (the question is not the same like last time).
I have an input-table. It has 3 columns and some rows -> The first column are my x-coordinates and the second column are my y-coordinates. (Of my start points) This start point is always my left bottom corner point of my rectangle. From this point i want to draw my rectangle. (height and width should be a constant). I have big problems with loops and matrices..
My output must be looking like: AllPoints= [0,0;1,0;1,1;0,1;5,5;10,5;10,10;5,10;2,2;4,2;4,4;2,4]; -> Explanation see screenshot
clc % löscht den Bildschirm
clear all % löscht alle Variablen
%Table -> (start Points...)
%12 0 10
%14 0 30
%16 0 54
%18 0 51
%20 0 35
%22 0 12
%14 2 25
%16 2 35
Input_Matrix = readtable('Testbeispiel_Rainflow.dat',...
'Delimiter','\t','ReadVariableNames',false)%,'Format','%f%f%f')
Thank you! Have a pleasant day
  1 commentaire
per isakson
per isakson le 11 Sep 2016
I fail to see the relation between the data in your script and AllPoints.

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by