![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/2024022_1522088628775_DEF.jpg)
Sebastian Holmqvist
Chalmers University of Technology
Followers: 0 Following: 0
Statistics
RANK
1,641
of 293,471
REPUTATION
39
CONTRIBUTIONS
9 Questions
14 Answers
ANSWER ACCEPTANCE
66.67%
VOTES RECEIVED
10
RANK
of 20,032
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Possible to vectorize xcorr?
After some time, I realized that x is the same throughout all calculations, which means that I can pre-calculate both it's FFT a...
11 years ago | 0
Question
Possible to vectorize xcorr?
Greetings. Currently my workstation can't keep up when I attempt to calculate the cross correlation for very long signals. ...
11 years ago | 1 answer | 0
1
answerQuestion
Extreme gain for low pass filter
% Filter constants Wp = 5e3*2*pi; Ws = 9.5e3*2*pi; Rp = 2; Rs = 45; % Butterworth lowest order [n,Wn] = ...
12 years ago | 1 answer | 0
1
answerQuestion
Arduino Run on Target Hardware + Stateflow
Hi! I'm trying to setup Arduino through Simulink on R2012a and use Stateflow. But when I try to deploy (Run on Target) it com...
12 years ago | 2 answers | 0
2
answersHow can I get in code the path of currently running deployed matlab function
_pwd_ also returns the current path. This is what I use in my GUIs.
12 years ago | 0
| accepted
The thickness of border lines on a plot (different than that of the inner lines)
I found that the figure automatically chooses the renderer ZBuffer, which is the cause of your display issues. I can't answer as...
12 years ago | 0
How to tell Matlab to ignore NaNs in calculations/loops
data_vec = [1 2 3 4 5 NaN 7 8 NaN 10 12]; data_vec(~isnan(data_vec)) ans = 1 2 3 4 5 7 8 10 12
12 years ago | 0
How to calculate hash sum of a string (using java)?
*Solution:* The trick here is to input an ascii representation of your string (hence, the double(string) call). MessageDigest...
12 years ago | 3
| accepted
Question
How to calculate hash sum of a string (using java)?
Couldn't find this very easily (without including a bunch of c-mex files etc) so I thought I'd post it here for future reference...
12 years ago | 2 answers | 0
2
answersQuestion
Count the number of trend changes in a vector.
I need to count the number of times a vector increases/decreases. E.g vec = [0 0 1 2 4 4 2 0 1 2 3] diff(vec) ans ...
12 years ago | 3 answers | 0
3
answersQuestion
XML parsing vs regexp
I'm trying to extract values from two elements in a pretty large xml. I'm stuck between doing it "the right way" and doing it "t...
12 years ago | 1 answer | 1
1
answerEigenvalue calculation in MATLAB
From <http://www.mathworks.se/help/techdoc/ref/eig.html> [V,D] = eig(A,B,flag) specifies the algorithm used to compute eigen...
12 years ago | 2
Having trouble compiling uigetfile function
It always works for me. It could be that you only call filename = uigetfile('*.xls','Select your file'); Instead, you sho...
12 years ago | 2
| accepted
Changing values in 2D array using logical operators
aa = rand(10, 10); aa(aa < 0.5) = NaN;
12 years ago | 0
| accepted
Count the number of trend changes in a vector.
I think I've cracked it. My logic follows from; # I wish to count the number of first derivative changes. # I wish to exclud...
12 years ago | 0
How can I Read or get the Values one by one from matrix variable or array?
z_elem = nnz(nnz == 0) nz_elem = nnz(nnz ~= 0) Then do your calculations on each.
12 years ago | 0
Add new column a vector.
x = [0 0 2 2 1 0 0 2 0]'; y = [43 43 34 34 34 0 0 0 0]'; % Must be of same length You could either cat(2, x, y) ...
12 years ago | 1
My global variables are disappearing!
You could utilize e.g setappdata(handles.gui_element, 'stored_var', data_var) ... data_var = getappdata(handles.gui_e...
12 years ago | 0
| accepted
How can I run a .m-file with an endless loop and use the command window at the same time?
A not-so-pretty solution would be to include a pause(0.001) at the end of each loop. I use it to allow my GUI to render some tex...
12 years ago | 0
grid on in gui
axes_handle = axes(n) plot(x, y) grid(axes_handle, 'on')
12 years ago | 1
| accepted
Question
Cheapest path through populated matrix
I'm attempting to calculate an "optimal" (if possible) path through a data set matrix (position over time). Each "cell" has a co...
12 years ago | 0 answers | 0
0
answersQuestion
Create a struct inside a cell array
I'm using struct2xml from FileExhange and it's quite picky on the format of the structure to export. Basically I loose informati...
12 years ago | 1 answer | 0
1
answerQuestion
Targetinstaller not working on Mac OS X
I just installed Matlab R2012a on my OS X Lion machine. When I start up targetinstaller, I get to choose between installing from...
12 years ago | 1 answer | 0