MATLAB Answers

0

Do I need to reference matlab in an academic paper?

Asked by Liu Xiaoyue Liu on 27 May 2019
Latest activity Edited by Rik
on 27 May 2019
HElP!!!!!!!!!!!!! I'm writing an academic paper. Some figures in it are plotted by MATLAB. So, do I need to reference MATLAB at the end? If yes, how?

  0 Comments

Sign in to comment.

2 Answers

Answer by the cyclist
on 27 May 2019

The most common thing I have seen is to state the software and version used (e.g. MATLAB ver. R2018b), within the Methods section somewhere.
If you want to reference specific functions, then you could use the suggestion from the Support Team in this answer.

  0 Comments

Sign in to comment.


Answer by Rik
on 27 May 2019
Edited by Rik
on 27 May 2019

That depends a bit on the context and the journal. You can ask your supervisor what they think. Personally I also do some parts of the analysis with Matlab, so I use it for more than just plotting. In such cases I use the information below in my LaTeX biblography. Depending on your citation manager you can probably import this (save as a text file with .bib instead of .txt).
@manual{MATLAB:2017b,
address = {Natick, Massachusetts},
organization = {The Mathworks, Inc.},
title = {{MATLAB version 9.3.0.713579 (R2017b)}},
year = {2017}
}
Don't forget to change the version to whatever the version function returns.
Alternatively, you can also run the code below to autmatically generate the .bib file from within Matlab.
v=version;
rel=ver;rel=rel(1).Release;
rel=strrep(strrep(rel,'(',''),')','');
if numel(rel)==6
year=rel(2:5);
else
year=ver('MATLAB');year=year.Date(8:end);
end
idx=strfind(v,'Update');
if ~isempty(idx)
idx=idx(end)+numel('Update ');
rel=sprintf('%s_u%s',rel,v(idx:end));
end
bib_file_name=sprintf('matlab_cite_key_%s.bib',rel);
lines=cell(6,1);
lines{1}=sprintf('@manual{MATLAB:%s,',rel);
lines{2}=' address = {Natick, Massachusetts},';
lines{3}=' organization = {The Mathworks, Inc.},';
lines{4}=sprintf(' title = {{MATLAB version %s}},',v);
lines{5}=sprintf(' year = {%s},',year);
lines{6}='}';
fid=fopen(bib_file_name,'w');
for n=1:numel(lines)
fprintf(fid,'%s\n',lines{n});
end
fclose(fid);

  0 Comments

Sign in to comment.