Accessing dlarray elements for further processing

3 ビュー (過去 30 日間)
Jubeyer Rahman
Jubeyer Rahman 2019 年 12 月 16 日
回答済み: Sourav Bairagya 2019 年 12 月 20 日
Hi,
I have a 1000X7520 matrix which I would like to convert to dlarray. But I need to do further processing with part of it, like for example I need to use first 500 rows for one operation and 2nd 500 rows for another operation. How can I do that?
I have tried with smaller examples (small 3X3 matrix converting to dlarray), but don't get what is going on as it seems like dlarray is reduced to a vector from a matrix.

回答 (1 件)

Sourav Bairagya
Sourav Bairagya 2019 年 12 月 20 日
You can follow this approach,
A = randn(6,6);
A = dlarray(A);
A1 = A(1:3,:);
A2 = A(4:6,:);
Here, A is a matrix of 6X6 dimension which is converted to 'dlarray' object of dimesion 6X6. From this two another 'dlarray' objects are created.
Capture.PNG

カテゴリ

Help Center および File ExchangeCustom Training Loops についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by