OnRamp Example Question/Troubleshooting
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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]
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multidimensional Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!