フィルターのクリア

OnRamp Example Question/Troubleshooting

1 回表示 (過去 30 日間)
Pat Wilkie
Pat Wilkie 2022 年 6 月 9 日
回答済み: Chunru 2022 年 6 月 9 日
Hello, how are you?
I'm on Matlab Onramp, Vectors and Matrices, Task2. It asks to 'Create an array named y with two elements: 7 and 9.'
Based on the example/sample given, this is what I got(
y = [7 9]
y =
7 9
It said that it was an 'invalid expression. CHeck for missing or extra characters.'
What could I be missing?
Thanks for your time

回答 (1 件)

Chunru
Chunru 2022 年 6 月 9 日
You should type "y = [7 9]" only. The second and third lines is the output of the command when you run it and they are not matlab statements.
y = [7 9]
y = 1×2
7 9

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by