Community Profile

photo

Bjorn Gustavsson


UIT, the Arctic University of Norway

Last seen: Today Active since 2001

Statistics

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

View badges

Content Feed

Answered
Standard Deviation of an histogram
You don't want the standard deviation of the histogram. You want the standard deviation of the pixel intensities in the image. Y...

7 hours ago | 0

Answered
Differential Equations with Inputs (Tank Draining Problem)
What you should do is to make a small modification of your ODE-function - such that it takes an additional input argument where ...

5 days ago | 0

| accepted

Answered
Shift a square matrix along a bigger square matrix by one
Have a look at the help and documentation for the function circshift. That function should solve the problem you have described....

8 days ago | 0

Answered
Who owns the copyright of the code?
This will surely differ from country to country. Ask your trade union. In Sweden it is (at least used to be) so that if the com...

8 days ago | 1

| accepted

Answered
How to access the double cell 5*1 ?
You could use cell2mat to convert the 5x1 cell-array with elements n_j x 3 into a matrix with n_many x 3 and then proceed as per...

9 days ago | 0

Answered
How to find the count of vertical lines in an image using Fourier Transform in MATLAB?
Why in the world do you want to use the Fourier transform to do that? You might be OK-ish for this specific pattern since it (su...

10 days ago | 1

Answered
Solving a differential equation
According to your description you don't have a differential equation if you have the values of C and the known dependent values ...

10 days ago | 0

| accepted

Answered
How to convert XYZ coordinate into nodes (like Xi, Yj) on the grid curve surface?
Are you looking for something like this: xy2sn? HTH

10 days ago | 0

Answered
Deconvolution of experimental peaks
Have a look at the help and documentation of deconvblind. If you make sure that the curve you want to deconvolve and the point-s...

16 days ago | 0

Answered
how to make curved arrow
There are a number of submissions on the File Exchange that helps you with this: circular-arrow-around-vector, circular_arrow, ...

16 days ago | 0

Answered
How to get the numerical rank of the matrix in matlab?
If you can afford it you might consider looking at the singular vaules that you obtain from the svd of your A-matrix. That will ...

16 days ago | 0

| accepted

Answered
Is there a way to export the results of PDE's solution to the gradient?Or the gradient can be calculated from the exported triangular node result?
You should have access to the pdegrad-function that should handle your case. Or if that doesn't suit your particular need some o...

22 days ago | 1

| accepted

Answered
Summing and multiplying matrices of different size
Check that you get what you expect from each product and term separately. Then figure out what you should do to fix your discrep...

22 days ago | 0

| accepted

Answered
Unexpected phase delay via cross-correlation ? Method issue or bad data?
The phase-jump is just the branch-cut of angle (or atan2). As a measure of phase-shift between 2 harmonic signals it is equivale...

23 days ago | 0

Answered
How do I plot a Poincare plot for a non-autonomous ODE's?
This sound like a perfect example of when one should use the events capabilities of the ODE-solvers. If you look at the code of ...

24 days ago | 0

Answered
How to get average of data using different time range?
QD-suggestion (from someone too lazy/stupid/old/stubborn to learn to use arrayfun): Temperature = randi([-20 40], 24*365, 1); %...

27 days ago | 0

| accepted

Answered
Parse 1 large column of uneven data into an array of columns by nth rows.
If your file contains an equal number of samples for every "loop" and the files contains data from full "loops". Then something ...

27 days ago | 0

Answered
Grid colormap with colorized circles
Something like this shouldn't be too complicated to cook up. Perhaps this is a start: function h = cwheel(x0,y0,phi0,r,nspokes)...

28 days ago | 1

| accepted

Answered
Reconstructing a surface from mesh points and function values (from COMSOL)
Are you sure that you need to use scatteredInterpolant at all? The points in the first plot seem to be on a regular grid. If tha...

29 days ago | 0

Answered
Unable to find explicit solution
This looks like an attempt to derive and solve equations of motion with Euler-Lagrange equations. If that's the case there are t...

29 days ago | 0

| accepted

Answered
Unable to understand how to use the function given on the site below
files with the extension .gz are typically compressed with gzip, that use the Lempel-Ziv coding. The most effective way to handl...

1 month ago | 0

Answered
How to implement this kind of coding ?
You while-loop will continue as long as the test-condition is true. You want to continue "a couple" of iterations after your des...

1 month ago | 0

Answered
Converting multiple lines into separate equations from jpeg?
In similar situations I typically separate the problem into two steps, first extracting the curves, then fit parameters for equa...

1 month ago | 1

Answered
How can I transform this curved wall to a flat wall without any distortions in the image? Is there any code available for it?
Sure thing. First assume that all bricks are flat bricks of exactly the same size. Then identify the edges of each brick in the ...

1 month ago | 0

Answered
griddata vs griddedinterpolant vs scatteredInterpolant for given data
griddedinterpolant expects points on a regular grid pretty much like interp2 - so that function seems unsuitable for your case. ...

1 month ago | 1

Answered
pcolor LOOP of current speed and a map of the area.
If you take care of the handle you get from pcolor you should be able to do something like this: H = pcolor(...) % Initial pl...

1 month ago | 0

| accepted

Answered
Optimise vertical position of nodes for shortest sum of paths
If this is a one-off calculation just brute-force search shouldn't be too bad, the y-position of the nodes should be within a sm...

1 month ago | 1

Answered
Installation on Ubuntu 22.04 LTS finished but there is no Matlab
To me this sounds like you forgot to create a link to the executable from a directory on your path. Here's how I check where I h...

1 month ago | 1

| accepted

Answered
Diffraction pattern of plane wave through Circular Aperture
Your first problem is surely that all your variables are 1-D arrays and it seems you still only model some kind of linear apertu...

1 month ago | 0

| accepted

Answered
Remove specific contours or make them invisible
The easiest way is to continue with the algorithm where you save the level-2-contours with a level one contour inside. Then you ...

1 month ago | 0

| accepted

Load more