Question

Passing parameters to plot() and axes() functions?

I would like to make a function that adds functionality on top of plot. I.e. a specialized plot. Say, function my_plot(vara...

10 months ago | 1 answer | 0

Question

Silly user input causing MATLAB to grind to a halt

set(gca, 'YTick', 0:10*1e4); Causes my (OSX) MATLAB to grid to a halt. Of course, I should have written: set(gca, 'YTi...

1 year ago | 0 answers | 0

Question

Deleting an irregular "row"/"column" from 2-d array

I have a 2d array, and I want to eliminate the same _number_ of elements in each row (or column) (e.g. 1 element), but the index...

1 year ago | 1 answer | 1

Answered

How to read a yuv (or avi file) into matlab for video processing

The weights in the top of your code seems to be the Y-weights in standard YCbCr: https://en.wikipedia.org/wiki/YUV Thus it i...

How to read a yuv (or avi file) into matlab for video processing

The weights in the top of your code seems to be the Y-weights in standard YCbCr: https://en.wikipedia.org/wiki/YUV Thus it i...

1 year ago | 0

Question

Spacing in defining complex numbers?

I just spent a while puzzling over a problem until it dawned on me: a1 = [3.98994e-05 +1i*-0, 4.21732e-05 +1i*3.69849e-05];...

2 years ago | 2 answers | 0

Question

Indexing irregular, constant width "stripes" of a 2-d array

I want to index an array in asynchronous stripes of constant width. Perhaps best described by an example: bob = magic(7); ...

2 years ago | 1 answer | 0

Question

regexp string to numeric array

I have what seems like a common problem: a series of strings containing numeric data mixed with text. I want to extract those nu...

2 years ago | 1 answer | 0

Answered

Anti-Aliasing Filter code for an image?

Anti aliasing is usually applied when going from a continous/high-resolution implementation to a low-resolution implementation. ...

Anti-Aliasing Filter code for an image?

Anti aliasing is usually applied when going from a continous/high-resolution implementation to a low-resolution implementation. ...

2 years ago | 0

Answered

How can one convert a 3d matrix of ones and zeros this into a 3d image with the ones being solid voxels and the zeros being empty voxels. thanks :)

Sounds like you want to visualize a 3-d array in the same way that image() lets you visualize 2-d arrays. I did, and ended up...

How can one convert a 3d matrix of ones and zeros this into a 3d image with the ones being solid voxels and the zeros being empty voxels. thanks :)

Sounds like you want to visualize a 3-d array in the same way that image() lets you visualize 2-d arrays. I did, and ended up...

2 years ago | 0

Answered

Bar Graph that does not start from zero

Google sent me here in the search for a "bipolar" bar graph. It is my understanding that the baseline property is global, while ...

Bar Graph that does not start from zero

Google sent me here in the search for a "bipolar" bar graph. It is my understanding that the baseline property is global, while ...

2 years ago | 0

Question

Live Script - comments and critique

I think it is great that Matlab is finally doing something like Live Script. I have been envious of Python collegues for some ti...

2 years ago | 0 answers | 0

Submitted

radar plot

A variant on radar/spider plot where different dimensions can have different scaling

2 years ago | 8 downloads |

Solved

Throw common elements of two vector arrays

Throw common elements as output of two given input vector arrays

3 years ago

Answered

Feature request: Breakpoint stop on errors in non Mathworks code

I am aware of the call stack and the link in the error message. What I requested was slightly different though. Let me try to ex...

Feature request: Breakpoint stop on errors in non Mathworks code

I am aware of the call stack and the link in the error message. What I requested was slightly different though. Let me try to ex...

3 years ago | 0

Question

Feature request: drag and move breakpoint

Occasionally, I'll have a conditional break point in my code that contains the right conditions, but is positioned at the wrong ...

3 years ago | 1 answer | 0

Question

Feature request: Breakpoint stop on errors in non Mathworks code

I like to use the "stop on errors" function. This allows me to run and test my stuff, and whenever some error occurs, I have ins...

3 years ago | 4 answers | 1

Solved

Most nonzero elements in row

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

3 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

3 years ago

Solved

The Hitchhiker's Guide to MATLAB

Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

3 years ago

Question

2015b OSX 10.11.2 graphical/figure bug(s)

I am using a late 2013 macbook pro connected to two external displays # Open MATLAB # Type "figure()" in the MATLAB command ...

3 years ago | 1 answer | 1

Question

Matlab mobile plot navigation

Great little app. I am missing a simple script editor and navigation in plots. You got these interesting visuals and an app that...

3 years ago | 0 answers | 0

Question

Anything like IPython Notebook for MATLAB

I am using MATLAB a lot for prototyping, for communicating ideas and for documenting stuff for later use. Whenever you make a Ma...

3 years ago | 1 answer | 0

Question

Plots are shown as upper left cropped on OSX in 2015b

When plotting on my retina macbook pro connected to a non-retina external display, figures are always shown as a cropped upper l...

3 years ago | 0 answers | 3

Question

expanding arrays to take all permutations for add/subtract operations

a = reshape(1:9,3,3) b = reshape(0:0.1:0.5,2,3) arows = size(a,1); brows = size(b,1); for m = 1:arows for n =...

4 years ago | 1 answer | 0

Answered

Would a BSXFUN operator family be a good idea?

I occasionally use the kron() function, and I probably should use bsxfun() more. What I seem to be banging my head up against: ...

Would a BSXFUN operator family be a good idea?

I occasionally use the kron() function, and I probably should use bsxfun() more. What I seem to be banging my head up against: ...

6 years ago | 0

Question

What hardware/OS/.. to use for speed?

Does MATLAB 2013a exploit the Intel AVX/AVX2 256-bit SIMD to any degree? Does MATLAB tend to be shipped with the most recent...

6 years ago | 0 answers | 0

Answered

How to create an image puzzle?

Hi. I was not entirely sure what you were requesting, so I choose to do some interpretation. The snip below will load a stand...

How to create an image puzzle?

Hi. I was not entirely sure what you were requesting, so I choose to do some interpretation. The snip below will load a stand...

6 years ago | 1

| accepted

Question

What is the preferred way to interface MATLAB with SPICE?

I have a lot of experience with MATLAB, and very little experience with SPICE (did some stuff back in university). I'd like to s...

6 years ago | 2 answers | 0

Answered

How to overlay a log-plot on top of an image

Here is my suggested solution. Nothing ground-breaking, but a bit fiddly for my skills using axes. %%generate some trivial d...

How to overlay a log-plot on top of an image

Here is my suggested solution. Nothing ground-breaking, but a bit fiddly for my skills using axes. %%generate some trivial d...

6 years ago | 0

| accepted

Question

How to overlay a log-plot on top of an image

Here is the use-case: You have access to an image of a MATLAB semilogx() plot from a paper, a website or something similar. The...

6 years ago | 1 answer | 0