MATLAB is an engineering programming language with various toolboxes that has a dedicated Question and Answer (Q&A) platform on the MathWorks website, which is similar to Stack Overflow (SO). Moreover, some MATLAB users ask their questions on SO. This paper aims to compare these two Q&A platforms to see what kind of questions are asked and how developers answer these questions in each platform. The result of our analysis on 80,382 MATLAB questions on SO and 266,367 questions on MathWorks show that MATLAB questions on topics ranging from the MATLAB software installation to questions related to programming received high votes and accepted answers on MathWorks. However, the questions about basics of programming such as plots, functions, and variables and questions on converting MATLAB code to other programming languages are very likely to receive answers on SO. Our detailed analysis on SO shows that users answer MATLAB questions with the same rate of the accepted answer as other popular programming languages like Java and Python, but the rate of unanswered questions and questions without an accepted answer for Simulink and the three most popular MATLAB toolboxes -- image processing, signal processing, and computer vision -- are very high. To analyze the evolution of MATLAB questions on SO, we studied 80,382 MATLAB questions using the SOTorrent dataset. The patterns in MATLAB questions’ evolution are: 1) Most of the revisions to questions are text-related and not on code snippets. 2) Most of the code-related revisions were performed by the original poster (OP). 3) Non-original posters (Non-OPs) usually revise code snippets’ appearance, while OPs usually revise code snippets’ content and logic.
[1]
Yan Xiao,et al.
Identifying Textual Features of High-Quality Questions: An Empirical Study on Stack Overflow
,
2017,
2017 24th Asia-Pacific Software Engineering Conference (APSEC).
[2]
William Palm,et al.
Introduction to Matlab 7 for Engineers
,
2004
.
[3]
Christoph Treude,et al.
SOTorrent: Studying the Origin, Evolution, and Usage of Stack Overflow Code Snippets
,
2018,
2019 IEEE/ACM 16th International Conference on Mining Software Repositories (MSR).
[4]
Francisco Servant,et al.
What Edits are Done on the Highly Answered Questions in Stack Overflow? An Empirical Study
,
2019,
2019 IEEE/ACM 16th International Conference on Mining Software Repositories (MSR).
[5]
Ahmed E. Hassan,et al.
How Do Users Revise Answers on Technical Q&A Websites? A Case Study on Stack Overflow
,
2020,
IEEE Transactions on Software Engineering.
[6]
Christoph Treude,et al.
How do programmers ask and answer questions on the web?: NIER track
,
2011,
2011 33rd International Conference on Software Engineering (ICSE).
[7]
Chanchal Kumar Roy,et al.
Answering questions about unanswered questions of Stack Overflow
,
2013,
2013 10th Working Conference on Mining Software Repositories (MSR).
[8]
Nicole Novielli,et al.
How to ask for technical help? Evidence-based guidelines for writing questions on Stack Overflow
,
2017,
Inf. Softw. Technol..