Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
特定の列フォーム .mat ファイルをロードした後、ワークスペースに既に存在するファイルをロードしたいのですが、どうすればよいですか?
MATFILEコンストラクター (R2011b 以降で使用可能)を使用して、MAT ファイルに保存された変数の一部にアクセスできます。別の同様の質問に対する私の回答を確認してください。
たとえば、行列がファイルにa保存されているmatlab.mat場合、matfile オブジェクトを次のように構築します。
a
matlab.mat
matObj = matfile('matlab.mat');
次に、のように 2 列目にアクセスできますx = matObj.a(:,2);。
x = matObj.a(:,2);