file problems with Matlab in Windows CMD running?

Running this piece of codes doesn't work:
D:\> matlab -nodesktop -noplash -r a=importdata('data folder/dataFile. txt')
if I run "a=importdata('data folder/dataFile. txt')" in matlab command window, it works.
Why in command line it doesn't work? (no output on the screen)

Respuestas (1)

Bruce
Bruce el 19 de Mzo. de 2014
Editada: Bruce el 19 de Mzo. de 2014

0 votos

it seems if I put double quotation marks before and after my matlab codes, i.e. "a=importdata('data folder/dataFile. txt')", it will work in WinCMD. Anyone can explain?

La pregunta está cerrada.

Preguntada:

el 19 de Mzo. de 2014

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by