Community Profile

photo

Bjorn Gustavsson


UIT, the Arctic University of Norway

63 total contributions since 2015

Contact

Bjorn Gustavsson's Badges

  • 6 Month Streak
  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
View by

Answered
Frame by frame freqeuncy analysis of voice.
Have a look at the documentation for the spectrogram function, that should do what you want. 0.025 is a rather short time so per...

1 dag ago | 0

Answered
Making plots look beautiful
You shouldn't manipulate your data that way. Your counting data is statistically "perfect" so you have to treat it as such, you ...

2 dagen ago | 1

Answered
I got a difficult matlab code to interpret at my job
Get yourself some pairs of "valid input-files" then at the command-line type: dbstop in accuracy_result Then run the function ...

2 dagen ago | 0

Answered
How can numerically compute eigenvalues of an ordinary differential equation in MATLAB?
Have a look at what you can do with chebfun. It seem to cover eigenvalue/eigenfunctions of ODEs in some detail: Chebfun ODE-eig...

5 dagen ago | 1

Answered
Calculate derivative of erfcx(x) function
Just plug in the definitions of the erfcx function into your symbolic calculations? Or do the differentiation by hand? HTH

8 dagen ago | 0

Answered
How to plot Power spectral density vs. wavenumber for a two dimensional data
Well for the power-spectral density of the entire image you can just look at the power of the 2-D fft: fData = fft2(d); % pad w...

8 dagen ago | 0

Answered
I want to print this statement 200 times using a loop or fprintf
for i_n = 1:200 fprintf('text-for-row %d\n',i_n) fprintf('text-for-next-%02d-row\n',i_n) end HTH

9 dagen ago | 1

Answered
Substitution to solve Coupled differential equations
Just look at the examples for ode45 - there should be some example explaining how to write a function returning dxdt when calle...

9 dagen ago | 0

Answered
Image processing of an echocardiogram image
Well, for this homework task you'll get a hint: In the gray-scale area the R, G and B-layers of your image all have the same va...

9 dagen ago | 0

| accepted

Answered
Second argument must be a scalar or vector of length 2. (fzero)
Either you want a range for Mn0 where you want fzero to search for a minimum, or you want to run fzero with multiple starting po...

9 dagen ago | 0

Answered
solve differential equation that have a time variant function and terms ode45
That should be just what the odeNN-suite of functions are made for. Just write yourself a function where you express the 2nd ord...

10 dagen ago | 0

Answered
scatter polar plot interpolation
Have a look at the help for TriScatteredInterp, griddata those functions should help you interpolate between your measurement po...

10 dagen ago | 0

| accepted

Answered
How to fill between curves
Try something like: f_of_t = f(t); g_of_t = g(t); fill([t,flilr(t)],[f_of_t,fliplr(g_of_t)],'r') HTH

15 dagen ago | 0

Answered
Problem with fitting curve with a user defined function directly
Well replace P and γ in your equation with those fixed values - that should leave you with A, and w, as free parameters to fit ...

15 dagen ago | 1

| accepted

Answered
How to solve differential equations that are in matrix form?
This seems to be exactly the type of ODE the odeNN-functions are designed to solve. Just put your ode into a function: function...

15 dagen ago | 0

Answered
Matlab rasterizing vector graphics
I was under the impression that we only get proper vector-graphics when using the painters renderer, and that we get rasterized ...

16 dagen ago | 0

| accepted

Answered
"Quality" property of VideoWriter object doesn't do anything. How to get higher quality mp4 video?
It used to be so that movie2avi and VideoWriter didn't bother with the quality setting on Linux-machines - perhaps that's what y...

18 dagen ago | 0

Answered
filtfilt changes signal amplitude badly - how to choose the right filter?
Don't instantly start looking at your data after differentiation - differentiation is a noise-amplifying operation! First you ha...

22 dagen ago | 1

| accepted

Answered
Hints to smoothe noisy data
It sounds like you want a filter that is similar to what you get with the wiener2 function - from the top of my head I dont reme...

23 dagen ago | 0

Answered
2D contour of X,Y,Z vectors
If you've made a matrix Z corresponding to the x and y-values (that seems to be well-behaved) this should work: contour(x,y,z) ...

23 dagen ago | 0

Answered
How to validate high pass filtered images with original image?
Well "validate" a high-pass filtered image to the original image is a slightly confusing concept to me - by high-pass filtering ...

24 dagen ago | 1

Answered
Collapsing preallocated memory of sparse matrix
Is there a particular reason you dont collect the non-zero values and their matrix indices into 3 arrays and then after all thos...

25 dagen ago | 0

| accepted

Answered
Generating random number.
Well, slightly unclear question, but I'll try answering: "you need to generating some given number of random points from a Gauss...

25 dagen ago | 1

| accepted

Answered
HOW TO SEPARATE NUMERICAL DATA FROM A TEXTFILE?
Well you need to find out how many levels you have in your height-arrays, for that I suggest you take a look at the function uni...

25 dagen ago | 0

Answered
ODE Solver Running Very "Slowly"
No, no, no, noo! Do not use the ODE-suite functions to calculate trajectories of particles in B (and E) - fields. They are ut...

30 dagen ago | 1

Answered
How do I make a 2D density plot using 3 sets of coordinates?
After some searching this ListDensityPlot function seems to be similar to the matlab-function: pcolor Perhaps if you have thre...

ongeveer een maand ago | 0

| accepted

Answered
Find coefficient for the best second-order polynomial that fits my data, using least-square fitting
Try: help polyfit HTH

ongeveer een maand ago | 0

| accepted

Answered
Why my barchart's 'xticklabel' is skipping the odd numbers and adding 0 and another number at the end?
Well, matlab has its own way to select and adjust what tick-marks should be used. What you can add at the end is something like ...

ongeveer een maand ago | 0

| accepted

Answered
How can I find a fit to my data points and using triangulation to approximate the planar area?
One thing you could try to squeeze around some difficult parts of your problem is to run through a coordinate transformation - f...

3 maanden ago | 0

Answered
Image Processing with data of type single
For sake of simplicity - convert every image to double if you possibly can memory-wise. That way you won't have to deal with obs...

3 maanden ago | 0

Load more