R不能做的MATLAB能做什么? [英] What can MATLAB do that R cannot do?

查看:83
本文介绍了R不能做的MATLAB能做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常听到人们抱怨 MATLAB 许可证的价格昂贵.然后,我想知道为什么他们不只是使用八度

I often hear people complain how expensive MATLAB licenses are. Then I wonder why they don't just use Octave or R. But is the latter right? Can you use R to replace MATLAB?

推荐答案

可以使用R代替MATLAB吗?

Can you use R to replace MATLAB?

是的

我使用MATLAB多年,但最近3年主要切换到R.在这一点上,它们有很多共同点.这部分取决于您的领域和用例.正如 Spencer Graves先前所说的,这还取决于哪个您碰巧经常去教堂".最好看看 MATLAB工具包

I used MATLAB for years but switched primarily to R in the last 3 years. At this point, they have much more in common than not. It partially depends on your field and use-case. And as Spencer Graves said previously, it also depends on which "church you happen to frequent". It's best if you look at the MATLAB toolkit vs. CRAN for a specific task before you decide.

类似的问题几年前在R-Help上提出最近又重新. David Hiebeler (缅因大学)拥有广泛的 R/MATLAB比较 ,它是关于主题.您还可以查看基本功能比较.

A similar question asked on R-Help a few years ago and again more recently. David Hiebeler (at the University of Maine) maintains an extensive R/MATLAB comparison, and is the best reference on the subject. You can also review this comparison of basic functions.

这是我过去观察到的一些事情,都不应该成为破坏交易的事情.

Here are some of the things that I've observed in the past, none of which should be deal-breakers.

  • 通常,MATLAB具有更好的编程环境(例如,更好的文档,更好的调试器,更好的对象浏览器),并且使用起来更加轻松"(如果需要,您可以在不进行任何编程的情况下使用MATLAB). Simulink 允许您通过连接图形中的块来直观地进行编程. REvolution R通过提供更好的IDE和改进的调试来解决其中一些差异,但这仍然是一个步骤后面.
  • 使用常规配置,MATLAB的速度要快一些(请参阅此基准以获取示例),尽管如果有问题可以采取一些措施来提高R性能.
  • 由于它是商业产品,因此可以说它还有更多的产品"(从集成附件的意义上来说)和支持(但您要为此付费).请参阅产品列表.例如,它具有 MATLAB编译器之类的东西,它创建可以部署的可执行MATLAB程序.
  • 就软件包/工具包而言,MATLAB对物理科学的支持更多,而R在统计方面更强,这并不是说其他​​人不能执行这些任务.而且它们都可以轻松扩展.
  • Generally, MATLAB has a better programming environment (e.g. better documentation, better debuggers, better object browser) and is "easier" to use (you can use MATLAB without doing any programming if you want). Simulink allows you to visually program by connecting blocks in graphs. REvolution R is addressing some of these differences by providing a better IDE with improved debugging, but it's still a step behind.
  • MATLAB is a little faster with the normal configuration (see this benchmark for an example), although there are things that can be done to improve R performance if that becomes an issue.
  • Since it's commercial, it also arguably has more "products" (in the sense of integrated add-ons) and support (but you pay for it). See the product list. For instance, it has things like the MATLAB compiler which creates executable MATLAB programs that can be deployed.
  • So far as packages/toolkits are concerned, MATLAB has much more support for the physical sciences while R is stronger for statistics, which is not to say that the other can't perform these tasks. And they can both be easily extended.

因此,如果易用性不是主要问题(并且没有其他商业理由要避免使用开源工具),那么我认为使用R确实是有道理的.它周围有一个非常强大的社区(R邮件列表很棒),正在迅速发展(请参阅CRAN),并且免费(这不是小问题!).

So, if ease-of-use isn't a primary concern (and there's no other business reason to avoid using an open-source tool), then I think that there's a real case to be made for using R. It has a very strong community around it (the R mailing lists are amazing), is rapidly developing (see CRAN), and it's free (which isn't a small issue!).

我要再补充一点:这本书包括有关"Matlab和R语言的本质比较"的一章.这涵盖了一些重要的语法差异(例如点的解释或方括号[]的含义).对于那些对函数式编程感兴趣的人(用任何一种语言),这本书本身都是值得阅读的.

I would just add one further point to this: the book "Functional Data Analysis with R and MATLAB" includes a chapter on the "Essential Comparisons of the Matlab and R Languages". This covers some important syntax differences (such as the interpretation of a dot, or the meaning of square brackets []). The book itself is well worth reading for anyone interested in functional programming (in either language).

这篇关于R不能做的MATLAB能做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆