Can you use command prompt to input a nifti file?

2 views (last 30 days)
I want to create a sort of GUI to ask user to input a file, I have found that input() only works with singel numbers.
Is there a function that allows you to input full images/ volumes?

Answers (1)

Walter Roberson
Walter Roberson on 29 Apr 2025
See uigetfile to prompt for the file name.
After you have the file name, you would need to take appropriate importing steps, such as imread()
If you are dealing with volumes then you might consider instead using uigetdir together with medicalVolume

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!