applying loading from nodes

Hi can someone please tell me how i can apply loading which is called load in my programme from node 1 to node 10 then from node 11 to node 16 and.
would it be load=1:10 then load=11:16 ???

Answers (1)

nnode = 16 ; % number of nodes
load = zeros(nnode,1) ;
load(1:10) = 2 ; % assign your given load
load(11:end) = 4 ; % assign your given load

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 6 Mar 2017

Answered:

on 7 Mar 2017

Community Treasure Hunt

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

Start Hunting!