Community Profile

photo

Bjorn Gustavsson


Last seen: Today

UIT, the Arctic University of Norway

802 total contributions since 2001

Contact

Bjorn Gustavsson's Badges

  • First Submission
  • Explorer
  • 5-Star Galaxy Level 5
  • 12 Month Streak
  • Knowledgeable Level 4
  • Personal Best Downloads Level 2
  • Pro
  • Editor's Pick
  • First Review
  • Revival Level 1
  • Thankful Level 1
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
plotting of |y| graph
plot(t,abs(y)) HTH

ungefär 14 timmar ago | 0

Answered
Integration with both limits variable
Matlab has both a numerical and a symbolic version of the error-function. That will be the answer to your problem. The numeric v...

en dag ago | 0

Answered
Reduce computational time for ODE solver
Have you tried the other ODE-integrating functions? From your problem description it sounds like your ODEs are stiff - for that ...

en dag ago | 0

| accepted

Answered
2D colormaps. MxN matrix of RGB values for 4 colors gradient
If you do something like this: [hsvImg] = rgb2hsv(Imrgb); x_lims = [1 184; 199 383; 397 581; ...

3 dagar ago | 1

Answered
Integrating min and max function
This might not be the most elegant solution to this, but it's a first stab. Take a quick-look at what the function looks like: ...

3 dagar ago | 0

Answered
Maximization of a Function
When I create a sequence of functions like that I always have to have the input-variables explicitly visible on the right-hand s...

5 dagar ago | 0

Answered
Improving the computation speed of loops
When you want to search for ways to optimize your code always run it with the profiler to identify where the time is spent. pro...

5 dagar ago | 0

Answered
Image fusion of 3 images
Perhaps: Im_fused = Im1/3 + Im2/3 + Im3/3; or more generally: w = [1 2 3]; w = w/sum(w); Im_wfused = w(1)*Im1 + w(2)*Im2 + ...

5 dagar ago | 0

Answered
Legend Color doesn't Match the Curves Color
That's peculiar. What happens if you keep the plot-handle from your calls to semilogy and send that to legend? ph = semilogy(z,...

6 dagar ago | 0

Answered
Fourier transform of a picture?
Note that the actual Fourier transform is the second row of your equation, while the first factor you can see as a matrix with n...

10 dagar ago | 1

Answered
Harmonic Oscilation. When I plot f towards time amplitude is increasing I don't know why. It should be constant. what's wrong?
Well if you have an equation of motion you should write it as an ordinary differential equation and solve it with a more ambitio...

10 dagar ago | 0

| accepted

Submitted


Varying Point-Spread-Function
This contribution allows the user to apply image-blurring with a spatially varying PSF, and Lucy-Richardson type de-blurring of ...

11 dagar ago | 2 downloads |

Thumbnail

Answered
Axis not working with loglog
Simple reason: log10(0) is a very small "number". So that is an impossible request. Also when you set the axis limits before plo...

13 dagar ago | 1

| accepted

Answered
Scaling Multiple Subplots to the Same Scale
A usefult tool to utilize for this is linkaxes - that allows you to something like this: for i1 = 1:many sph(i1) = subplot...

17 dagar ago | 1

Answered
How can I create a break in the y-axis (looking like a flash; example below)?
There are several options on the File Exchange that claims to do exactly what you want. Have a look: FEX: break axis Tust a la...

17 dagar ago | 0

Answered
In a random distribution of points in square area how can we determine the density information of points in each region
So this is simply counting the number of points in each region. You can do this "by hand" region-by-region, something like this:...

17 dagar ago | 1

| accepted

Answered
How can I normalize images in matlab?
Once upon a time I had to make my own versions of histogram equalization because at that time that function in the image process...

18 dagar ago | 0

Submitted


contourinflectionpoints
contourinflectionpoints finds inflection-points on contour-lines

18 dagar ago | 12 downloads |

Thumbnail

Answered
Can't call my function to another m file
If you have your third m-file in another directory and the first directory is not on the matlab-path then matlab will not know a...

19 dagar ago | 0

| accepted

Answered
Solve first-order ordinary differential equations
Your calculation of grad_xm and grad_ym looks peculiar to me. Since you seem to use x and y for the coordinates of Vm, it seems ...

19 dagar ago | 1

| accepted

Answered
Satellite Orbit, Friction Acceleration Function
Recently I've good experiences using this tool: RKN1210 - A 12th/10th order Runge-Kutta-Nyström integrator It is sightly differ...

20 dagar ago | 0

| accepted

Answered
How can I add a zoom in the peak of the curve ?
My prefered tool for this is: on-figure-magnifier - at the moment, my preferences vary since you can find a range of similar too...

22 dagar ago | 1

Answered
Is there a way to optimise following loop using 1:end notation?
You should get an identical fft in one step if you do this: E1mat = fft(A,[],1); Here the third argument is the dimension of A...

23 dagar ago | 0

Answered
how to describe this matlab function?
At the commandline prompt type this: dbstop in select1 Then call the function from the commandline: select1 That will open t...

23 dagar ago | 0

Answered
pcolorm ignores lines of data
The way I've understood pcolor (which I assume pcolorm is a modification of) makes a colour-patch with corners at [x(n,m),y(n,m...

24 dagar ago | 0

| accepted

Answered
Solving using an ode
You want to integrate your ode for a couple of values of s. To do that you can either create one ode-function for all 6 values o...

24 dagar ago | 0

Answered
Splines: How to find vector/array from smoothing line (function - csaps), or another function (still using a smoothing parameter)?
For that purpose I used something like this: y_smoothed = fnval(pp, x); If you check out the documentation for Spline postproc...

24 dagar ago | 1

| accepted

Submitted


contour_on_surf
3-D contour plot on a surface. Plot a contour on a 3-D surface, for example contour-plot of surface-temperature over a topograph...

24 dagar ago | 19 downloads |

Thumbnail

Answered
Optimizing calculation in for loop for convolution
This should work: Hea = heaviside(x-tzero); % your shifted Heaviside sliding_gaussian=exp(-(x/sigma).^2); % Gaussian sliding_...

25 dagar ago | 0

Answered
Blackbody curve fitting to data
This looks uggly. Matlab impresses me in this case, in that it still manages to obtain some kind of result. The uggliest problem...

25 dagar ago | 0

Load more