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

2 Tage ago | 0

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

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

2 Tage ago | 0

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

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

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

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

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

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

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

15 Tage 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

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

17 Tage ago | 0

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

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

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

22 Tage 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) ...

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

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

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

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

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

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

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

etwa ein Monat 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 ...

etwa ein Monat 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...

etwa ein Monat ago | 0

Answered
Conversion of space-time data to wavenumeber-time data
Provided that your data is sampled on a regular spatial grid it should be as simple as to perform a (perhaps windowed) fft in th...

etwa ein Monat ago | 0

Answered
I have recorded a rgb video and extract g frames vector and calculate it's mean now I want to calculate beats per minute kindly help how can I calculate BPM
In order to estimate frequencies you have to look at the time-variation of your signal, depending on the variability of this you...

etwa ein Monat ago | 0

Answered
How to calculate image resolution (full-width-at-half-maximum) of a point source?
I'd start with some simple models for your image response (2-D Gaussian, sinc^2(x).*sinc(y)^2) and fitted the parameters of thos...

etwa ein Monat ago | 1

| accepted

Answered
generate random integer number with a specific mean
Have a look at the help and documentation of randi and then try and test some things. Finally have a deep think about what your ...

etwa ein Monat ago | 0

Answered
How can I save subplot figures together?
Wouldn't this do: print('-depsc2','-painters','Your2subplotfig.eps')

etwa ein Monat ago | 0

| accepted

Load more