Community Profile

photo

Bjorn Gustavsson


UIT, the Arctic University of Norway

Last seen: Today Active since 2001

Statistics

All
  • Guiding Light
  • Revival Level 2
  • Solver
  • First Submission
  • Explorer
  • 24 Month Streak
  • 5-Star Galaxy Level 5
  • Knowledgeable Level 4
  • Personal Best Downloads Level 2
  • Editor's Pick
  • First Review
  • Thankful Level 1

View badges

Content Feed

Answered
Spectrogram of Audio Signal
Have a look at the help and documentation of the spectrogram function. That allows you to calculate the spectrogram as such: [S...

alrededor de 17 horas ago | 0

Answered
How can i calculate PDF and CDF of non-parametric distribution?
You get some start towards estimates of the PDF/CDF from histogram and ksdensity. See the help and documentation to those functi...

alrededor de 17 horas ago | 1

Answered
3Dplot suggestions on azimuthal data
You seem to have your x and y-coordinate values along the first row and column of the data. If so: x = test(1,2:end); y = test...

1 día ago | 2

Answered
How to change the color of only some arrows using quiver?
From the help of quiver: quiver(U,V,S) or quiver(X,Y,U,V,S) automatically scales the arrows to fit within the grid and...

1 día ago | 0

| accepted

Answered
open Linux Konsole from Matlab
From the man-page of xterm I get this suggestion: -e program [ arguments ... ] Which should be applicable to your case? HTH...

4 días ago | 0

| accepted

Answered
Converting irregular nested python list to matlab array
Wouldn't that become a 3-D cell-array of 1-by-2 arrays? Maybe something like this: nested_list{1,1,1} = [1,1]; nested_list{1,1...

10 días ago | 0

| accepted

Answered
How to Plot Smooth psuedo wigner Ville Distribution of multiple signals and save them each in a folder.
If you can do something like this: ECG_files = dir('your-data-files.ECG'); % modify to read your data-files... output_dir = 'W...

10 días ago | 0

| accepted

Answered
What functions does the main file call?
My prefered tool is m2html, combined with GraphViz you can get a very neat cross-referenced documentation for your scripts and t...

10 días ago | 0

| accepted

Answered
How to add a specific path to Matlab in -batch mode?
To my understanding and brief testing (Ubuntu, 2020a) it should work by simply adding paths as normal in/from your batch-script:...

11 días ago | 1

Answered
Saving High Quality graphs within loop
The first input-argument to exportgraphics is supposed to be a handle to any type of axes. The handle you send in might very wel...

11 días ago | 0

Answered
Scatter plot with multiple variables and colors
Something like this gives me 2 colours, and 2 sizes. You might modify the colours by switching colormap, size-mapping you'll hav...

14 días ago | 0

Answered
How do I recover continous signal from descrete measurements?
Maybe you get something thats a bit more general (and perhaps?) more robust by simple least-square fitting: m_fun = @(pars,x) r...

19 días ago | 0

| accepted

Answered
Returning Incorrect index of array
It returns 1 for the index because the way you call min, x(x>0) becomes the array [0.5 4 5], and the first element of that array...

22 días ago | 0

| accepted

Answered
Trouble in ODE45 with "Array indices must be positive integers or logical values." error
The initial condition variable, y in your case, should be an array with values for all components (in the case you solve a set o...

23 días ago | 1

| accepted

Answered
What does Matlab have to offer for ill-conditioned inverse problems?
Have a look at the excellent regtools toolbox. It contains all sorts of regularization functions Tikhonov, damped sdv, maximum-e...

23 días ago | 0

Answered
How to plot stacked variables with common x-axis?
Another option is the multiwaveplot function from the file exchange: stacked-line-plot. HTH

24 días ago | 0

| accepted

Answered
How 'normalization by standard deviation' works?
Read the help and documentation of normalize to find out. If that information is lacking you can "read the code, Luke"... HTH...

24 días ago | 0

Answered
Zero Mean White Gaussian Noise with Covariance Matrix Given
Check the help and documentation for mvnrnd. HTH

25 días ago | 0

Answered
Determine point spread function of a single pixel image
Your question is a bit confusing since you have two different pixel-domains where a PSF could be estimated - the micro-display a...

29 días ago | 0

| accepted

Answered
Superimpose two images on top of each other.
If your images are of equal size you can put them into different RGB-layers. Something like this: merged(:,:,3) = fixed; merge...

30 días ago | 0

Answered
How do I solve an ODE that is piecewise defined, and oscillates between the two states?
This modification seems to work "sensibly" OK: Modify the ODEs into one: function y_dot = spring_ext_comp(t,y,m,c,k,a,w,Amp) ...

alrededor de 1 mes ago | 1

Answered
2D vector field video quiver
You seem to never release the hold on the plots - the result is that all subsequent plots are added to the current one. So somew...

alrededor de 1 mes ago | 0

| accepted

Answered
Axis position is shifted when YtickLabel gets different number of digits in App designer.
The cumbersome way of explicitly aligning the the position of the axes after each plotting might work? Something like this perha...

alrededor de 1 mes ago | 0

Answered
Regarding flat fielding of an image
By flat-field you mean correct the image intensities for vignetting (optical and mechanical), right? If so provided that you're...

alrededor de 1 mes ago | 0

Answered
Exact solution of ode using matlab dy/dx=x^2+y^2 condition y(0)=0
That is a Riccatti ODE. See Riccati_equation for information on how to solve it analytically. My version of matlab spits out a l...

alrededor de 1 mes ago | 0

| accepted

Answered
Can I obtain the covariance matrix of a stochastic process with plenty of measurements?
To me it seems that you have misunderstood the dimensions. Your covariance-matrix should, to my understanding be 50x50 when you ...

alrededor de 1 mes ago | 0

Answered
Contour-plot - Delete lines in legend colorbar
If you keep track of the handle returned by colorbar then it is easy to supress the ticks: cbh = colorbar; set(cbh,'TickLength...

alrededor de 1 mes ago | 0

| accepted

Answered
How to difine the frequency range with the function 'nufft'?
To understand what you get out of a non-uniform Fourier-transform I find it educational to calculate the dftmtx and then purge t...

alrededor de 1 mes ago | 0

Answered
Consider preallocating for speed
In your code you change the values and type of Werte 4 times. That seems a bit excessive. I'd try something like this: 1 while ...

alrededor de 1 mes ago | 0

| accepted

Answered
Coordinate Interpolation between mutiple points
To me it sounds like you in principle want to interpolate both your coordinates with respect to time between your hourly samples...

alrededor de 1 mes ago | 0

Load more