<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><span style="font-size: 14px;" class="">Hi all,</span><div class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div class=""><span style="font-size: 14px;" class="">I have a two-dimensional variable like a=(/100,100/), and I want create a new variable like b=(/12,100,100/). I want to assign values of a to b such as b(0,:,:) = a; b(1,:,:) = a…. So the values of b do not change in its first dimension. </span><span style="font-size: 14px;" class="">I don’t want to use do loop.</span></div><div class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div class=""><span style="font-size: 14px;" class="">Any ideas?</span></div><div class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div class=""><span style="font-size: 14px;" class="">Thanks!</span></div><div class=""><span style="font-size: 14px;" class=""><br class=""></span></div><div class=""><span style="font-size: 14px;" class="">Xueyan</span></div></body></html>