Community Profile

photo

Bjorn Gustavsson


UIT, the Arctic University of Norway

Last seen: Today|Active since 2001

Statistics

All
  • 36 Month Streak
  • 指路明灯
  • Solver
  • First Submission
  • Explorer
  • Revival Level 2
  • 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
How to sample a signal using Golomb Ruler ?
The only idea that makes sense to me with sampling like this using a Golomb-ruler is that you're expected to get estimates of th...

4天前|1

Answered
Why does plot quality reduce when plotting line and scatter together?
The painters-renderer that produces vector-format output, like eps doesn't understand alpha-type transparency. Therefore when yo...

11days ago | 0

Answered
Curve Fitting in MATLAB
For this type of problems I learnt (before the arrival of the gui-curve-fitting tools) to use the standard function-minimization...

14天前|0

|accepted

Answered
2D FFT of a 4D matrix
Shouldn't this effectively be the same as running an FFT on the entire 4D-array (with some confusion about normalization-factors...

15 days ago | 0

Answered
Losing pixels with imrotate
This happens due to aliasing-effects the discrete pixel-squares will start to mix and spread out between some neighboring pixels...

15 days ago | 0

Answered
I have an array of 6,76,000 as txt file, how can I convert that into 52x13x1000.
You could try reshape, see the help and documentation of that function. If you dont get the elements in the right order with som...

17 days ago | 0

|accepted

Answered
Creating a gif file out of an animation
I had a great experience using gif from the file exchange to convert a series of plots into a gif-animation. Simple to use does ...

21 days ago | 0

Answered
How can i form a filename from MATLAB identifier and correcting sntax error in "3dinvert.m"
There are restrictions of the filenames for matlab-functions, and as far as I recall it is supposed to not start with a number (...

21 days ago | 0

Answered
does convex hull intersect?
You should have two file-exchange packages that solves your problem: fast-and-robust-curve-intersections curve-intersections ...

22 days ago | 0

Answered
How to make a line plot with a colorbar as the third variable?
When I want to plot colour-coded curves I use one of these functions from the file exchange: cline, cline-m or plot-3d-color-li...

22 days ago | 0

Answered
Polar Plotting of Data
The pcolor in polar coordinates is the polar version of pcolor. For those functions you will need some kind of 2-D surface-like ...

23 days ago | 0

Answered
how to apply stft to audio signal?
You might do this, but the call to seconds looks spooky. From audioread you get the sampling-frequency fs, that is the sampling-...

23 days ago | 0

Answered
Assign a value to each page of a 3D Matrix
If we stick to the first rule of programming (KISS) this should get the job done: A = zeros([3,4,5]); x = [10 20 30 2^.5 exp(1...

24 days ago | 0

|accepted

Answered
发现和想象一个向量函数的散度tion F = yzi xzj xyk. Please help me guys, please
Simply use the divergence function. Read the help and documentation to that one. If you have analytical expressions and access t...

24 days ago | 0

Answered
Solving eigenvalue problem with solve_bvp
In the mat4ode function the variable Ra is undefined. How would matlab know what value to give it? What dimension should it have...

24 days ago | 0

Answered
how to denoising rgb image?
Well nothing but a simple goof. You simply swapped the green and blue channels in this line: restored_image = cat(3, out_redCha...

25 days ago | 0

|accepted

Answered
contour3-With 3 dimensions input arguments
Maybe you get what you need with the slice function, or perhaps isosurface. From my naive understanding we can draw iso-contours...

25 days ago | 0

Answered
How to generate a rhythm that is based on an algorithm in matlab?
1, You search for some description of the algorithm that allows you to implement it. For example 5 minutes on googles first page...

25 days ago | 0

Answered
How to deblur an image in frequency domain?
Most likely you have a problem with division-by-zero in the: Inv = Conv./avgFilter_fft; step. If you try to set those componen...

29 days ago | 1

|accepted

Answered
Find Angle using point coordinates?
You could use the general formulas for angle between vectors found here: angle-between-two-vectors-in-3d, which is a good answer...

29 days ago | 1

|accepted

Answered
How to randomly propagate 100 random targets with random headings (uniformly sampled over [0, 2π])
Yes. The image is constructed with pixel-resolution, that is kind of the definition of a pixel-based image sensor. You model the...

29 days ago | 0

Answered
我怎么能延长polyfit重对数线吗scale ?
When you calculate yhat you only do that for the first and last element of your x-values that you use for the fit. You should tr...

29 days ago | 0

|accepted

Answered
Matlab 2020b "Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters."
It might well be that the "ˆ" symbol have been encoded to some othe character than "^" (I'm completely un-interested in characte...

2 months ago | 1

Answered
Is there a way to compress non-integer data without loss using the CFITSIO library?
If you have data in double (32 or 64 bit-format), and want to keep it that way, dont' cook up your own casting-trickery - set th...

2 months ago | 0

Answered
the differential equations by ode45
Start with the matlab on-ramp material. To find that search for "onramp" on the web-site. After doing that you should be able to...

2 months ago | 0

|accepted

Answered
Spectrogram: HOW TO CONTROL ZERO-PADDING for individual fft's of an ULTRA LONG sequence
Yes, in principle, zero-padding is used by spectrogram if nFFT is larger than the window-length. HTH

2 months ago | 0

Answered
Calculus limits with MATLAB
Well get to it. If you are very new to matlab then have a look at On-ramp material - which should have you up and running faster...

2 months ago | 0

|accepted

Answered
Remove edges from concave triangulation
You problem is dificult in principle. How are the unwanted triangles supposed to be determined? In a general enough case that yo...

2 months ago | 0

Answered
Plot spectra and spectrogram of acceleration data
Provided that your data actually spans 5 minutes your sampling-frequency is not 48 kHz, but rather 800 Hz. That changes the outp...

2 months ago | 0

|accepted

Answered
Which optimizer to use for SIR Epidemic Model?
One recommendation that you're not likely to like: The constant transition-probability of recovering/dieing has to be unbiologic...

2 months ago | 1

Load more