node creation using for loop

how can we create nodeset having data like node_number, x,y,z coordinates say for 20 nodes using for loop

6 commentaires

KSSV
KSSV le 10 Sep 2020
Attach your data.
Shahrukh s
Shahrukh s le 10 Sep 2020
node_number = 1:20
x = 100:120
y =10:20
z = 0
KSSV
KSSV le 10 Sep 2020
You cannot have 20 nodes for given x and y. You will have more number of nodes. Check the links given in the answer.
Steven Lord
Steven Lord le 10 Sep 2020
What do you want to do with this data once you've chosen the "best" data structure to store your nodeset? Plot it? Connect nodes into a network graph? Something else?
Shahrukh s
Shahrukh s le 10 Sep 2020
i just want a for loop programme to execute this type data structure
KSSV
KSSV le 10 Sep 2020
x = 100:120 ;
y =10:20 ;
[X,Y] = meshgrid(x,y) ;
mesh(X,Y)

Connectez-vous pour commenter.

Catégories

En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange

Tags

Commenté :

le 10 Sep 2020

Community Treasure Hunt

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

Start Hunting!

Translated by