Community Profile

Bjorn Gustavsson

UIT, the Arctic University of Norway

Last seen: Today Active since 2001

All

Content Feed

View by

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

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

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

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

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

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

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

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

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

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

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

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？

22 days ago | 1

| accepted

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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