フィルターのクリア

Extracts columns using functions

4 ビュー (過去 30 日間)
Ganesh Kini
Ganesh Kini 2020 年 3 月 27 日
回答済み: Anurag Agrawal 2020 年 3 月 30 日
Hi,
I have raw .mat file. The data inside the file is not in the form of the matrix.
However based on few conditions i need to extract one coulmn of data.
How do i do that using a function ?
Kindly help.
  2 件のコメント
Peng Li
Peng Li 2020 年 3 月 27 日
your question is too broad, and thus too vague. In one .mat file, there might be multiple variables. It is not clear what kind of data you want to work on. You can load the .mat into workspace, and check how many variables there are. and specify which variable you want to work on. and you have to specify the conditions. Otherwise, I can only answer in a broad and thus vague way. lol
Ameer Hamza
Ameer Hamza 2020 年 3 月 27 日
What do you mean by raw .mat file? Are you trying to open .mat file in some other software?

サインインしてコメントする。

採用された回答

Anurag Agrawal
Anurag Agrawal 2020 年 3 月 30 日
Your question sounds incomplete. However from my understanding, you can use matfile function to access and change variables in MAT-file without loading file into memory.
For example, if you have matrix a saved in abcd.mat, you can access it using:
myObj = matfile('abcd.mat');
Then you can access 3rd column like
x = myObj.a(:,3);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by