Very strange situation. By some reason the questdlg() does not work within a function:

6 visualizaciones (últimos 30 días)
Very strange situation. By some reason the questdlg() does not work within a function:
function = Heat_Test()
answer = questdlg('quest')
end
Got result:
>> Heat_Test()
Error: File: Heat_Test.m Line: 1 Column: 11
Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.
Outside the function works normally

Respuestas (1)

Henry Giddens
Henry Giddens el 21 de Nov. de 2019
Your function definition is wrong. Try
function answer = Heat_Test()
answer = questdlg('quest')
end

Categorías

Más información sobre Dialog Boxes en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by