Filter löschen
Filter löschen

Unexpected MATLAB operator. how declare correctly?

1 Ansicht (letzte 30 Tage)
Alma Martinez
Alma Martinez am 1 Jun. 2018
Kommentiert: Walter Roberson am 6 Jun. 2018
[status]= abmsdk('SetDestinationFile', C:\ABM\B-Alert\Data\1830);
|
Error: Unexpected MATLAB operator.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 1 Jun. 2018
[status]= abmsdk('1830_b30_112311_122300.def', 'C:\ABM\B-Alert\Data\1830_1');
  4 Kommentare
Alma Martinez
Alma Martinez am 4 Jun. 2018
Bearbeitet: Walter Roberson am 4 Jun. 2018
Yes, i want to connect the B-Alert with matlab. And the format its:
[status]= abmskd ('SetDestinationFile'), destinationFilepath);
where the input is destinationFilepath-Absolute path to destination folder and name. But in anycase i have invalid command.
Walter Roberson
Walter Roberson am 4 Jun. 2018
Try
status = abmsdk('SetDestinationFile', 'C:\ABM\B-Alert\Data\1830_1\1830_b30_112311_122300.def')
But if that is an existing file, make a back-up copy of it first, in case it overwrites the file.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Alma Martinez
Alma Martinez am 6 Jun. 2018
Bearbeitet: Walter Roberson am 6 Jun. 2018
ok, i intent all. And the correct sintaxys, is:
[status]= abmsdk('SetDestinationFile',C:\ABM\B-Alert\Data\1830);
|
where the input is destinationFilepath-Absolute path to destination folder and name
But another
Error: Unexpected MATLAB operator. appear, is the C: maybe? Or another solution?
  1 Kommentar
Walter Roberson
Walter Roberson am 6 Jun. 2018
[status]= abmsdk('SetDestinationFile', 'C:\ABM\B-Alert\Data\1830');
Filenames should always be placed in quotes.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by