# Interesting Matlab puzzle - analysis

DevFeed: [Interesting Matlab puzzle - analysis](<https://devfeed.tech/articles/interesting-matlab-puzzle-analysis-22321.md>)

Original publisher: [Read original article](<https://undocumentedmatlab.com/articles/interesting-matlab-puzzle-analysis>)

Author: Yair Altman

Published: 2019-04-09T11:52:00Z

Content type: article

Language: en

Sources: [Undocumented Matlab](<https://devfeed.tech/sources/undocumented-matlab.md>)

Topics: [MATLAB](<https://devfeed.tech/topics/matlab.md>), [Parsing](<https://devfeed.tech/topics/parsing.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [code](<https://devfeed.tech/tags/code.md>), [console](<https://devfeed.tech/tags/console.md>), [if-statement](<https://devfeed.tech/tags/if-statement.md>), [medium-risk-of-breaking-in-future-versions](<https://devfeed.tech/tags/medium-risk-of-breaking-in-future-versions.md>), [medium-risk-of-breaking-in-future-versions-undocumented-feature](<https://devfeed.tech/tags/medium-risk-of-breaking-in-future-versions-undocumented-feature.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [pure-matlab](<https://devfeed.tech/tags/pure-matlab.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [undocumented-feature](<https://devfeed.tech/tags/undocumented-feature.md>)

## AI overview

An analysis of a Matlab puzzle explains how a same-line expression after an if condition is parsed as a separate expression. The false branch is skipped, the else branch displays "Daba," and the potentially erroneous or function call is never evaluated.

## Source excerpt

Solution and analysis of a simple Matlab puzzle that leads to interesting insight on Matlab's parser. The post Interesting Matlab puzzle - analysis appeared first on Undocumented Matlab. Related posts: Interesting Matlab puzzle A simple Matlab puzzle that leads to interesting insight on Matlab's parser. ... An interesting uitree utility ExploreStruct is a utility that shows how custom uitrees can be integrated in Matlab GUI... A couple of internal Matlab bugs and workarounds A couple of undocumented Matlab bugs have simple workarounds. ... Matlab compiler bug and workaround Both the Matlab compiler and the publish function have errors when parsing block-comments in Matlab m-code. ...