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
Solving a system of linear equations with lots of o coefficients.
Matlab is designed to solve systems of linear equations. It is one of the fundamental operators of its matrix-algebra: % Your p...

alrededor de 22 horas ago | 0

Answered
Reading and analysing files in subfolders - indexing
Why not skip the generation of FileName and index into files directly inside the loop: dt = 0.005; tt = 0:dt:60; files = dir(...

1 día ago | 0

Answered
Trajectorys of 4 objects on 3D plane not symmetrical
Your main problem (or rather: step to take) is that you do the calculations element-by-element in the different arrays. That is ...

3 días ago | 0

| accepted

Answered
Trying to use central difference scheme to solve logistic equation
Well run your code line-by-line and figure out what the problem is. This is what you let us know about your script (My comments...

6 días ago | 1

Answered
How to calculate jacobian matrix for R^n X R^n system in matlab
Maybe this illustration of how to reshape your variable x and function f from n-by-n to n^2-by-1: syms x [2,2] % a small n-by-n...

6 días ago | 0

Answered
Plotting 2 functions on the same graph
Skip the calls to subplot? That would make your scrip "not put the graphs in 2 separate axes": x1 = Pos1(t); x2 = Pos2(t); ph...

7 días ago | 0

| accepted

Answered
How does Matlab uses memory inside a function?
Matlab is very clever in memory usage in functions, pass-by-reference-copy-on-modification. So as long as you only take values o...

7 días ago | 0

| accepted

Answered
Using Shooting Method on Euler Method to Solve Second Order BVP
To do that you should make functions out of this script. That way you will have a much cleaner programme, that is far easier to ...

8 días ago | 1

| accepted

Answered
Mapping toolbox: irregular measured geo referenced data into regular grid
"5m" sounds like a reasonably small region of data? If so, local topography might be more important than the curvature of Earth....

10 días ago | 0

Answered
Pseudo-spectral method solution for wave equation PDE: d^2p/dt^2=(c^2)*[d^2p/dx^2 + d^2p/dy^2 + d^2p/dz^2]
This is just a linear wave-equation with constant speed of the waves. The general solution is just: So you just have to deter...

10 días ago | 0

Answered
How i can solve limit this ODE question .
This is a Riccati equation. Convert it to a standard linear second-order differential equation and solve it that way, check what...

12 días ago | 0

Answered
extrapolation of contour data set
Since the minimum value of your counttest-variable is 0.0853 or thereabouts you will never get any contour for levels lower than...

13 días ago | 0

| accepted

Answered
Solving an ode for newton with vectors
The thing you have to fix here is the indexing of r in your equation-of-motion. You have to extract the 3 velcity-components for...

19 días ago | 0

| accepted

Answered
solving ode in a given grid
If you have the analytical function for how your t depends on x you should be able to calculate t for any x inside your ODE-func...

20 días ago | 0

Answered
Plotting meteorological data on Geographic maps
If you don't have access to the mapping toolbox you might find good use of the m_map toolbox: m_map. It have helped me make plot...

21 días ago | 0

Answered
How can I display text on pcolor map like in the image below?
If you have your text-strings and their respective location you should be able to do this brute-force: pcolor(X,Y,Z),shading in...

21 días ago | 0

Answered
How to add text to a line in the plot?
With text you specify both the x and y-coordinate of the text. For example: th = text(14,-0.5,'text-test that will start at x: ...

23 días ago | 1

Answered
How can I classify two different types of radar modulation from images obtained in the time-frequency analysis?
The second modulation is obviously a chirp. How can I be so sure? Well I cannot because there is no way I can distinguish a poin...

28 días ago | 0

| accepted

Answered
Raw data accelerometer to velocity
Acceleration is derivative of velocity, to get velocity from acceleration summation do you must.

28 días ago | 0

Answered
How to increase number of contour lines in a plot?
If you check the documentation you will find this advice: fcontour(f,'LevelList',[-1 0 1]) which adapted to your xy-region wou...

alrededor de 1 mes ago | 0

Answered
error in rgb2gray and imshow
It seems you have named a script or function gray.m in your C:\Users\amirg\OneDrive\Documents\MATLAB\ directory. That will cause...

alrededor de 1 mes ago | 0

| accepted

Answered
How to plot contour on imagesc for three variables?
Maybe it is enough for you to make this minor modification: figure('name','depolarization ratio') imagesc(Reff,EC,depi') hold...

alrededor de 1 mes ago | 0

| accepted

Answered
how to find DOA using time difference, considering 2 microphones of an audio signal.
If you know the speed of sound, lets say , and the positions of the microphones, lets say and . Now if you can determine the ti...

alrededor de 1 mes ago | 1

| accepted

Answered
Spectrogram - Piano sound length
Well there are one "music/instrument-based" problem with the question (that might be important or not): on pianos there are the ...

alrededor de 1 mes ago | 0

Answered
Can ode45 return two column vectors or a cell array?
From the help of ode45: For a scalar T and a vector Y, ODEFUN(T,Y) must return a column vector corresponding to f(t,y). So wha...

alrededor de 1 mes ago | 0

| accepted

Answered
Deblur image that has locally varying (but well known) motion blur
Some time ago I wrote a pair of simple "variable-psf-blurring and variable-psf-deblurring" functions. They at least work OK-ish ...

alrededor de 2 meses ago | 0

Answered
Can I extract NIR data from a NoIR camera?
To my QD-reading on this type of camera it is a normal RGB-camera but without IR-blocking filter. This would make it impossible/...

alrededor de 2 meses ago | 0

| accepted

Answered
How to take fft along a specific direction?
Perhaps it is a simple as: uh = fft(fft(ubar,[],1),[],2); %fft over periodic direction X and Y Since to my understanding the ...

alrededor de 2 meses ago | 0

| accepted

Answered
How to Plot the smooth envelope of 3D scattered points
You will get the tightest surface enclosing all points with the convhulln function. That will not be a smooth surface since it i...

alrededor de 2 meses ago | 0

Answered
How to traverse a range of three-dimensional space to calculate the function and draw the function diagram
It might be far better to write your function func as "vectorized" as possible and send the full 3-D arrays into it at once. Onc...

alrededor de 2 meses ago | 1

Load more