フィルターのクリア

how can i deal with .mat file in Matlab?

2 ビュー (過去 30 日間)
shivan artosh
shivan artosh 2020 年 3 月 9 日
編集済み: shivan artosh 2020 年 5 月 12 日
hi

回答 (1 件)

BobH
BobH 2020 年 3 月 9 日
See load
It will add variables from the mat file to your workspace.
  2 件のコメント
BobH
BobH 2020 年 3 月 9 日
is 'complete_mednode_dataset' a directory with images in it? Your added code will try to read image files from that path.
Or is 'complete_mednode_dataset' your .mat file? You will have to use a command like load to bring the variables into your workspace. Those variables will not be image files. They may be image data which can be written to an image file using imwrite
BobH
BobH 2020 年 3 月 10 日
I'm still uncertain how you want to use .mat files.
It seems you have no .mat files that already exist, so I assume you want to save some of your variables into a .mat file? For example. to save the variable that is created by your call to imageDatastore, use
save( 'savedimds.mat', 'imds');
or to save several variables, keep adding their names to the end of the command, for example
save( 'savedvars.mat', 'imds', 'augmenter', 'options');
To recall from a mat file, use load.
load( 'savedimds.mat' ); % restore saved variable 'imds' from mat

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

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by