Showing me wrong Matrix Size.
古いコメントを表示
fds = fileDatastore(" " );
N= cell2mat(fds.Files);
kk= ones(64,1);
OO= N.*kk;
- I have created a Data store with a matlab data. The original size of the data was : 2031616x64.
- In the second line of the code I just convert the file from the cell type
- Created the ones matrix
- when i am trying to multiply , the reultant varibale "OO" is having the wrong size: 64x161. But if I have done it in a normal way (without creating Datastore) it's size would have been : 2031616x1 which is basically correct and I need.
My question is that , what mistake I am making here? I am newly working with the "Datastore" stuffs in MATLAB.
Thanks in Advance.
採用された回答
その他の回答 (1 件)
Fabio Freschi
2021 年 9 月 23 日
multiply without the 'dot'
OO= N*kk;
カテゴリ
ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!