MATLAB面试有问题吗? [英] MATLAB interview questions?

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

问题描述

我在 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:

  • "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:

  • 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屋!

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