SWITCH expression scalar or a character vector

Dear colleagues, I am using a software called "lead-dbs" that works through Matlab. When I try to run a calculation in the "lead-dbs" the following message appears: SWITCH expression must be a scalar or a character vector How can fix this? What is SWITCH in Matlab? As I am not an expert in Matlab, if anyone could in a simple way help me.... Many thanks Rubens Cury

1 Comment

"What is SWITCH in Matlab?"
This is the very first result that was returned when I searched for "MATLAB switch" using a major internet search engine:

Sign in to comment.

Answers (1)

Obviously the code contains a bug. You see the failing line in the error message. Ask the author to fix it.

Categories

Find more on MATLAB in Help Center and File Exchange

Products

Asked:

on 17 Sep 2018

Answered:

Jan
on 17 Sep 2018

Community Treasure Hunt

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

Start Hunting!