Question


poor MATLAB 2011b performance on OSX 10.6
I tend to use debug mode a lot, step into code, test temporary stuff in the command window while at a break-point etc. On any wi...

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

1

answer

Answered
FFT / IFFT question .
Actually: >> ifft([1 2 3 2 1], 'symmetric') ans = 2.2000 -0.5236 -0.0764 -0.0764 -0.5236 >> ifft([1 2 3 ...

mer än 12 år ago | 0

Question


Explicitly specifying line colors when plotting a matrix
x = 1:3; y = [1 2 3; 42 40 34]; plot(x,y,'Color', [0.5 0.5 0.5; 1 0 0]) produce an error: Error using plot Co...

mer än 12 år ago | 4 answers | 9

4

answers

Question


ifft of symmetric data: do I need to provide the redundant input?
Is it possible to lure ifft(X,[],'symmetric') into working on only the non-redundant input? It seems that the low-level FFTW ...

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

0

answers

Question


load() into workspace?
If I place load() into a m-file script, it will load into the workspace, available for the caller. If I place it into a m-fil...

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

2

answers

Answered
Fast calculation of short cumulative product vector
Thank you for all your help. There seems to be many different ways to accomplish this, each with different speed-tradeoffs. The ...

mer än 12 år ago | 0

Question


Fast calculation of short cumulative product vector
I want to calculate a reasonable short vector many times with variable inputs a and len %y = [a a^2 a^3...a^(len)] My method...

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

6

answers

Answered
Writing elegant MATLAB code
Regarding question#2: idx = []; period = 10; duty_cycle = 3; for i=0:length(x) if rem(i,period) < duty_cycle ...

nästan 13 år ago | 0

Question


Writing elegant MATLAB code
I have a great interest in writing my MATLAB code the "right" way. I want it to be compact, readable and fast. As such, I have a...

nästan 13 år ago | 5 answers | 0

5

answers

Question


Export figure is painfully slow. Save as png is fast. Why?
I tend to export some figures for use in presentations etc. I have noticed that for some figures (perhaps those with lots of dat...

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

1

answer

Answered
Increase the speed of the program
Whenever I see a "for" statement in MATLAB, I question myself if that operation can be vectorized. Is it possible to use dlmread...

nästan 13 år ago | 1

Answered
[DEPRECATED] What frustrates you about MATLAB?
The fact that once you schedule a low-level function, you cannot in any way stop it. Such as conv(zeros(umpteen,1), ones(umpteen...

nästan 13 år ago | 4

Answered
ploting a file with variable name
If you use the {} Code tags, you will make the code a lot more readable for other users, and increase the chance that someone bo...

ungefär 13 år ago | 1

| accepted

Answered
Simple visualization of a 3-d array (volumetric?)
Thank you for your answers, but I was not able to use them for my thing. In the end, I wrote a small script for myself that is c...

ungefär 13 år ago | 2

| accepted

Question


Simple visualization of a 3-d array (volumetric?)
I use image(sc) a lot for visualizing the contents of any 2-d array that I may be working on. Sometimes I am working on 3-d arra...

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

4

answers

Question


Define shared subfunctions inside a classdef *.m file?
I want to define a relatively small class (small enough that it makes sense to do everything inside of one file). I want to reus...

ungefär 13 år ago | 2 answers | 0

2

answers

Question


multidimensional colon operator?
I want to do something like that below: copy an N-dimensional array into a N+1-dimensional array at index t in the last dimensio...

ungefär 13 år ago | 2 answers | 3

2

answers