Community Profile

photo

Knut


Active since 2011

Statistics

All
  • Personal Best Downloads Level 1
  • First Review
  • 5-Star Galaxy Level 1
  • First Submission
  • Thankful Level 3
  • Knowledgeable Level 1
  • First Answer
  • Solver

View badges

Content Feed

View by

Question


Microphone giving only zero-samples for 2019b on macOS 10.14 Mojave
What I did: recObj = audiorecorder; recordblocking(recObj, 5); y = getaudiodata(recObj); While talking out loud. Expected ...

nästan 3 år ago | 0 answers | 2

0

answers

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...

ungefär 4 år ago | 1 answer | 0

1

answer

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...

mer än 4 år ago | 0 answers | 0

0

answers

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...

nästan 5 år ago | 1 answer | 1

1

answer

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...

ungefär 5 år 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];...

mer än 5 år ago | 2 answers | 0

2

answers

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); ...

nästan 6 år ago | 1 answer | 0

1

answer

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...

nästan 6 år ago | 1 answer | 0

1

answer

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. ...

nästan 6 år 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...

nästan 6 år 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 ...

nästan 6 år 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...

nästan 6 år ago | 0 answers | 0

0

answers

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...

mer än 6 år 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 ...

mer än 6 år ago | 1 answer | 0

1

answer

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...

mer än 6 år ago | 4 answers | 1

4

answers

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 ...

mer än 6 år ago | 1 answer | 1

1

answer

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...

nästan 7 år ago | 0 answers | 0

0

answers

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...

ungefär 7 år ago | 1 answer | 0

1

answer

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...

ungefär 7 år ago | 0 answers | 3

0

answers

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 =...

mer än 7 år ago | 1 answer | 0

1

answer

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: ...

mer än 9 år 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...

mer än 9 år ago | 0 answers | 0

0

answers

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...

mer än 9 år 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...

mer än 9 år ago | 3 answers | 0

3

answers

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...

mer än 9 år 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...

mer än 9 år ago | 1 answer | 0

1

answer

Answered
Dumb mistakes we make with MATLAB.
for i = 1:3 disp(exp(i*pi)); end Instead of: for i = 1:3 disp(exp(1i*pi)); end

mer än 9 år ago | 1

Question


Functional form of the colon (:) operator?
This is a post about "how to write neat, efficient, readable MATLAB code". I get the job done by doing work-arounds, but I would...

ungefär 10 år ago | 4 answers | 0

4

answers

Question


mex debugging, integer division cause crash?
Obviously, I am doing something wrong, and my code is too complex to repeat here. I have tried to distill the parts that seems p...

ungefär 10 år ago | 1 answer | 1

1

answer

Answered
about parfor and spmd speedup
So the spot where parfor can really shine is loops that are : a)Simple enough that parfor can do them in parallell b)complex/n...

mer än 10 år ago | 0

Load more