MATLAB面试有问题吗? [英] MATLAB interview questions?
问题描述
我在 MATLAB 中编程了很多年,但是在过去的几年中切换到仅使用R,所以我有点不习惯.我今天正在面试一位自称是MATLAB专家的候选人.
I programmed in MATLAB for many years, but switched to using R exclusively in the past few years so I'm a little out of practice. I'm interviewing a candidate today who describes himself as a MATLAB expert.
我应该问什么MATLAB面试问题?
What MATLAB interview questions should I ask?
其他一些具有相关资源的网站:
Some other sites with resources for this:
- 在Wilmott上的"Matlab面试问题"
- 在GlobaleGuildLine上"MATLAB问答"
- <在CoolInterview上"Matlab面试问题"
- "Matlab interview questions" on Wilmott
- "MATLAB Questions and Answers" on GlobaleGuildLine
- "Matlab Interview Questions" on CoolInterview
推荐答案
这有点主观,但我会咬...;)
This is a bit subjective, but I'll bite... ;)
对于自称是MATLAB专家的人,以下是我个人希望他们能够在访谈中说明的一些内容:
For someone who is a self-professed MATLAB expert, here are some of the things that I would personally expect them to be able to illustrate in an interview:
- 如何将算术运算符用于矩阵或基于元素的操作.
- 熟悉所有基本的数据类型以及如何轻松地在它们之间进行转换.
- 全面了解矩阵索引和赋值,无论是逻辑索引,线性索引还是下标索引(基本上,操纵多维数组的功能.
- 对优化的理解和常规用法,例如矢量化.
- 对如何处理文件I/O的理解用于多种情况.
- 熟悉处理图形和所有基本绘图功能.
- How to use the arithmetic operators for matrix or element-wise operations.
- A familiarity with all the basic data types and how to convert effortlessly between them.
- A complete understanding of matrix indexing and assignment, be it logical, linear, or subscripted indexing (basically, everything on this page of the documentation).
- An ability to manipulate multi-dimensional arrays.
- The understanding and regular usage of optimizations like preallocation and vectorization.
- An understanding of how to handle file I/O for a number of different situations.
- A familiarity with handle graphics and all of the basic plotting capabilities.
An intimate knowledge of the types of functions in MATLAB, in particular nested functions. Specifically, given the following function:
function fcnHandle = counter
value = 0;
function currentValue = increment
value = value+1;
currentValue = value;
end
fcnHandle = @increment;
end
在下面的代码中,它们应该能够告诉您变量output
的内容是什么,而无需在MATLAB中运行它:
They should be able to tell you what the contents of the variable output
will be in the following code, without running it in MATLAB:
>> f1 = counter();
>> f2 = counter();
>> output = [f1() f1() f2() f1() f2()]; %# WHAT IS IT?!
这篇关于MATLAB面试有问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!