Issue using the writeVTK.m

2 ビュー (過去 30 日間)
32sthide
32sthide 2012 年 9 月 10 日
hi, I have a file.img, a 3d volume binary file that I want to convert to vtk type format. But when I try to run it I get
??? Undefined function or method 'printf' for input arguments of type 'double'.
Error in ==> writeVTK at 25
printf(fid, '%s\n', '# vtk DataFile Version 3.0');
I'm doing it like this,
path ='/home/matt/Desktop/zzz/data/P450117JG_Macular Cube 512x128_5-4-2009_12-14-32_OS_sn1093_cube_raw.img';
destination = 'vtk';
writeVTK(path, destination);

採用された回答

Oleg Komarov
Oleg Komarov 2012 年 9 月 10 日
Valid MATLAB functions are fprintf() or sprintf().
edit vriteWTK()
And modify the call to printf into fprintf or sprintf.

その他の回答 (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