Community Profile

# Bjorn Gustavsson

### UIT, the Arctic University of Norway

Last seen: 2 giorni fa Attivo dal 2001

All

#### Content Feed

Visto da

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

3 giorni fa | 0

| accettato

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

6 giorni fa | 0

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

6 giorni fa | 1

| accettato

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

7 giorni fa | 0

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

8 giorni fa | 1

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

8 giorni fa | 0

| accettato

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

8 giorni fa | 0

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

14 giorni fa | 0

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

14 giorni fa | 0

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

14 giorni fa | 0

| accettato

Risposto
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？

20 giorni fa | 1

| accettato

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

20 giorni fa | 0

| accettato

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

21 giorni fa | 0

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

22 giorni fa | 0

Risposto
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); %...

25 giorni fa | 0

| accettato

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

25 giorni fa | 0

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

26 giorni fa | 1

| accettato

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

27 giorni fa | 0

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

27 giorni fa | 0

| accettato

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

29 giorni fa | 0

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

circa un mese fa | 0

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

circa un mese fa | 1

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

circa un mese fa | 0

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

circa un mese fa | 1

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

circa un mese fa | 0

| accettato

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

circa un mese fa | 1

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

circa un mese fa | 1

| accettato

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

circa un mese fa | 0

| accettato

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

circa un mese fa | 0

| accettato

Risposto
Find two contours at different levels around the same peak
You could (QD algorithming-from-the-hip) use the contour-coordinates in c1 and c2. Typically I find it easiest to break them con...

circa un mese fa | 0

| accettato