I get this error, ive already checked parenthesis.Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error.

1 回表示 (過去 30 日間)
Aden
Aden 2022 年 12 月 3 日
回答済み: Voss 2022 年 12 月 3 日
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct
matrices, use brackets instead of parentheses.
this is the line with problems
f = figure ('position', [0, 0] scrz(3),scrz(4));

回答 (1 件)

Voss
Voss 2022 年 12 月 3 日
There is a comma missing:
f = figure ('position', [0, 0] scrz(3),scrz(4));
% ^^ missing a comma
However, I think you probably mean to say:
f = figure ('position', [0, 0, scrz(3), scrz(4)]);

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by