How to use enviwrite in matlab?

4 ビュー (過去 30 日間)
Devendra
Devendra 2024 年 4 月 20 日
回答済み: Walter Roberson 2024 年 4 月 20 日
I am using enviwrite function of matlab as follows
image = data(logical_mask);
fname = string(img_names(m)) + '_' + '7bands' + '.dat'
enviwrite(image,fname);
it is displaying the information and errors as follows
fname = "20240319_7bands.dat"
20240319_7bands.dat
Incorrect number or types of inputs or outputs for function enviwrite.
enviwrite(image,fname);
please suggest me how to use enviwrite in matlab.
Devendra

回答 (2 件)

Rishi
Rishi 2024 年 4 月 20 日
Hello Devendra,
I understand from your query that you want to know the error in the way you are using the 'enviwrite' function in MATLAB.
The 'enviwrite' function expects a 'hypercube' object as its first parameter. This object the data cube, wavelength and related metadata. Ensure that variable 'image' used by you is a 'hypercube' object.
You can learn more about the 'enviwrite' function and the 'hypercube' functions from the below documentations:
Hope it helps!

Walter Roberson
Walter Roberson 2024 年 4 月 20 日

カテゴリ

Help Center および File ExchangeArray Geometries and Analysis についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by