Skip to content

isempty(sweepVar) is never true (it is scalar string), thus no warning is issued #2

Description

@benjaminkraus

If I put my cursor on line 4 of this file:

a = 1;
x = linspace(0,4*pi,1000);
y = a.*sin(x);
plot(x,y);

The function ConnectButtonPushed calls splitCode which outputs a scalar string object called sweepVar. Because it is always a scalar string object, isempty(sweepVar) is never true, so the code assumes it found valid line of code and does not issue the expected warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions