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 ???

回答(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

类别

帮助中心File Exchange 中查找有关 MATLAB 的更多信息

回答:

2017-3-7

Community Treasure Hunt

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

Start Hunting!

Translated by