필터 지우기
필터 지우기

Alternative to use uigetfile in Matlab code generation

조회 수: 7 (최근 30일)
Keshav
Keshav 2024년 3월 7일
답변: UDAYA PEDDIRAJU 2024년 3월 13일
uigetfile is not supported for code generation. Any alternative for that!
  댓글 수: 2
Image Analyst
Image Analyst 2024년 3월 7일
What do you mean by that. Are you trying to use MATLAB Coder, the MATLAB Compiler Toolbox, or something else?
Keshav
Keshav 2024년 3월 8일
Yes, I am using MATLAB Coder for making my code standalone.
'uigetfile'-the command which is absolutely supported for importing the images from the current folder of MATLAB.

댓글을 달려면 로그인하십시오.

답변 (1개)

UDAYA PEDDIRAJU
UDAYA PEDDIRAJU 2024년 3월 13일
Hi Keshav,
For code generation in MATLAB where "uigetfile" isn't supported, consider these alternatives:
  • Directly input file paths as parameters, bypassing the need for interactive selection.
  • Utilize the file dialog functionalities of your target environment (e.g., WinAPI for Windows) to select files before passing them to your MATLAB-generated code.
  • Develop MATLAB functions that handle file paths as inputs for testing, which can be replaced or modified for actual code generation to avoid "uigetfile".
  • Try "dir" function which is given as alternative to "uigetfile" in the documentation: https://www.mathworks.com/help/matlab/ref/uigetfile.html

카테고리

Help CenterFile Exchange에서 Dialog Boxes에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by