Info

この質問は閉じられています。 編集または回答するには再度開いてください。

work with the array

2 ビュー (過去 30 日間)
Maksim Tiurin
Maksim Tiurin 2019 年 7 月 21 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
t is time step (for example t=3). G=8.
(((3*k-2)*G+1):(3*k*G)) - this dependency must persist
for k = 1:t
intcon(1,:,k) = (((3*k-2)*G+1):(3*k*G))
end
this loop creat the array 1x16x3, but I need intcon with size 1x48, how can I extract 3 lines and create one lines. Problem is that t is variable and each time we have different size. maybe from the very beginning (formation of the loop), it is worth doing differently.
Thank you in advance for your response.
  2 件のコメント
Walter Roberson
Walter Roberson 2019 年 7 月 21 日
reshape(intcon,1,[])
Maksim Tiurin
Maksim Tiurin 2019 年 7 月 21 日
:-O
Thank you, kind man. It seems my little brain needs to have a pause

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by