Skip to main content

Questions tagged [matlab]

This challenge is related to the MATLAB language. Note that challenges that require the answers to be in a specific language are generally discouraged.

Filter by
Sorted by
Tagged with
6 votes
4 answers
2k views

Generate Matlab plot markers

Matlab has a useful command for visualizing data: plot. It draws data points using "markers" in 2-D space, connecting them with lines; however, for this challenge, ...
anatolyg's user avatar
  • 13.9k
17 votes
13 answers
2k views

Tips for golfing in MATLAB

What general tips do you have for golfing in MATLAB? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to MATLAB (e.g. "remove comments" is ...
RAM's user avatar
  • 977
-1 votes
1 answer
460 views

Matlab/Octave Eratosieve using minimal big-O iterations [closed]

I'm trying to come up with ways to write Sieve of Eratosthenes in Octave that vectorize as much as possible (ie minimizing the number of times iterating over the for-loop/while-loop/recursive call) I ...
dspyz's user avatar
  • 933