Why matlab is not as intelligent as python
2 次查看(过去 30 天)
显示 更早的评论
I used python before and when I add
#titile
to the python and I press Alt+3 to uncomment, it will not uncomment this because it know it is a title.
However, when I use the same trick in matlab script,
I press
%titile
This time when I uncomment, it reduces the %.
My question is why can python distinguish between #titile and # title, while matlab can't distinguish from %title and % title?(note there is a space between % and the word title.)
0 个评论
回答(1 个)
John D'Errico
2025-2-3
移动:John D'Errico
2025-2-3
Why? Why is anything the case? Because it is. Because they are two different languages, with different capabilities, and different sets of people doing the implementations, with different priorities, different resources they are willing to allocate to any given target. Heck, maybe they just never thought of the idea. Were both languages identical in their abilities and syntax, we would all be using only one language. And yes, some might think that a good idea. I think it would make the world a boring place.
If you think this is truly something important and worth getting your knickers in a knot over, then your goal should be to contact MathWorks directly (NOT via Answers) and suggest it as a feature request. If you don't do that, then it suggests you are not really serious, and this is not something of true importance to you. So contact tech support.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Bartlett 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!