필터 지우기
필터 지우기

sliceViewer has uibutton error

조회 수: 4 (최근 30일)
Joshua Prince
Joshua Prince 2024년 3월 19일
답변: Himanshu 2024년 3월 22일
When I run the following code:
data=rand(100,100,100)
sliceViewer(data)
I get the following error:
Error using uibutton
'Parent' is not a valid STYLE for uibutton. STYLE must be 'push' or 'state'.
Error in sliceViewer/createViewComponents
Error in images.stacks.browser.internal.SliceViewer/set.Parent
Error in sliceViewer/parseInputs
Error in sliceViewer
It must have something to do with my specific version of the sliceViewer function, because it doesn't run on my machine but does run when using the "run code" command here.

채택된 답변

Himanshu
Himanshu 2024년 3월 22일
Hello Joshua,
I understand that you are encountering an error when attempting to use the "sliceViewer" function in MATLAB.
I experienced a similar issue while working with the "sliceViewer" function in the MATLAB Live Editor, version R2023b.
I discovered a workaround that involves either explicitly specifying a parent for the "sliceViewer" function or creating a named figure before calling the "sliceViewer" function.
I hope this helps.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by