Getting an error For colon operator with char operands, first and last operands must be char.
10 ビュー (過去 30 日間)
古いコメントを表示
Im getting an error called "Error using : For colon operator with char operands, first and last operands must be char." I have the code that im trying to use for reference. I asked my professor about it and he doesnt have a solution for me and suggested me to talk to someone that might here.
3 件のコメント
Stephen23
2021 年 11 月 16 日
The error message is easy to reproduce:
1:'a':100
But because you do not explain anything about your code, we have no idea what you are trying to achieve or why.
回答 (1 件)
Stephen23
2021 年 11 月 17 日
This line
j=('Input number of crossings =')
should be
j = input('number of crossings =')
3 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!