Error "too many inout arguments" using "diary"

I'm a beginner in Matlab and I'm receiving a message error saying "too many input arguments" when I try to use "diary" at the beginning of the code... I don't know what I am doing wrong. Could someone help me?
My code is
>> diary C:\Analise de Regressao\EXUnidade1.txt
Error using diary
Too many input arguments.

回答 (1 件)

Cris LaPierre
Cris LaPierre 2020 年 10 月 20 日

0 投票

Because there are spaces in your path, you need to enclose your file path+name in quotes.
diary 'C:\Analise de Regressao\EXUnidade1.txt'

1 件のコメント

Anadia Cattarin
Anadia Cattarin 2020 年 10 月 20 日
Thanks so much!! Now it works :)

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeEntering Commands についてさらに検索

質問済み:

2020 年 10 月 20 日

コメント済み:

2020 年 10 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by