Community Profile

photo

Bjorn Gustavsson


UIT, the Arctic University of Norway

122 2015 年以降の合計貢献数

連絡する

Bjorn Gustavsson's バッジ

  • Revival Level 1
  • Knowledgeable Level 3
  • 6 Month Streak
  • First Answer

詳細を表示...

貢献した分野
表示方法

回答済み
how do i plot number of iteration verses accuracy
Something like this should be doable: i_iterations_to_try = [10:5:200].^2; % Some array with number of iterations to run throug...

7日 前 | 1

回答済み
how to solve a trigonometric equations
If you are a matlab-beginner I suggest you read through the getting started-type documentation, that you work yourself through d...

7日 前 | 0

回答済み
Smooth contours of a colormap
Why do you want your contours to be smooth? You have some idea that the surface doesn't have corner-like edges where slopes in d...

8日 前 | 0

回答済み
how can I read .dat file
What is the data format? Do you have a file? Is it reasonably sized? Could you share it? If you type: more gsmap_rnl.20010101....

8日 前 | 0

回答済み
regarding Fourier transform of sinc function
Well, before plotting try to check what your variable fy is: whos fy Then when you see that it is a complex variable you have ...

8日 前 | 0

| 採用済み

回答済み
How to draw line between specific points?
For the first time around your loop you plot: plot(data(1, 1:2), data(1, 3:4)); % i.e. plot(A(1,:),B(1,:)) that corresponds...

8日 前 | 0

| 採用済み

回答済み
How can I have multiple colormaps in single map using mapping toolbox?
Give freezecolors a try, it has solved similar problems before, though not completely without fail. HTH

10日 前 | 0

回答済み
diffusion equation with crank nickolson method
That doesn't look like C-N. Since C-N uses the values at t_i + dt/2 to calculate the gradients you end up with a system of equat...

10日 前 | 0

| 採用済み

回答済み
"Spectrogram" - does it produce spectral amplitudes, or can it ONLY produce power spectral densities/amplitudes?
In my version of matlab I have to go down halfway through the help text - which is very goog to read - to find_: [S,F,T,P] = sp...

13日 前 | 0

| 採用済み

回答済み
Solving 2nd order ODE with ODE45
Dont bother with the hassle to go through symbolic-variables and ode2vectorfield when transforming your 2 clean 2nd-order ODEs. ...

15日 前 | 2

| 採用済み

回答済み
Slice with temperature and position
To use slice you first have to re-interpolate your data to a regular 3-D grid. Depending on your matlab-version you can use: gri...

16日 前 | 0

| 採用済み

回答済み
Narrowband beamforming in transmission
In the direction of yor transmitted beam the waves from the different antennas have to interfere constructively. To achieve this...

16日 前 | 0

回答済み
Add colorbar of colored plot on grayscale image
Something like this: % Assuming your grayscale image is: d in double format grayscaleIM(:,:,3) = (d-min(d(:)))/(max(d(:))-mi...

16日 前 | 1

| 採用済み

回答済み
How can i smooth my contour map?
Have a look at these file-exchange contributions: contour-line-smoothing, Smoothing 2D-Contours Using Local Regression Lines. T...

20日 前 | 0

回答済み
reindexing a correlation matrix
If you want to reindex a correlation matrix you should maintain the correct correlation-structure - so you have to apply the sam...

30日 前 | 0

回答済み
Errorbars on scatter plot
You could use something like this function: function h = scatter_ellipse(X,Y,C,Cov,varargin) %SCATTER_ELLIPSE - colored ellips...

約1ヶ月 前 | 0

回答済み
Cumtrapz for matrix including NaN values
Well, I think that in addition to calculating a cummulative integration you also should/need to extract the limits over which yo...

約1ヶ月 前 | 0

| 採用済み

回答済み
mean and Standard deviation of ratio of normal variables?
Well, you have the document to read. If that's not good enough there is always: Ratio-distributions (wikipedia), Distribution-...

約1ヶ月 前 | 0

回答済み
Deconvolution of a Convolved Gaussian and Expoential curve
To my understanding the deconv-functions work for evenly spaced data. In your case I'd either try to do the convolution analytic...

約1ヶ月 前 | 0

| 採用済み

回答済み
Plot data points as points when using 'errorbar'
Doesn't this work for you?: errorbar(x,y,e,'.-','markersize',18) HTH

約1ヶ月 前 | 0

| 採用済み

回答済み
fitting a function with 3 parameter
This is a simple linear fitting problem, you solve it this way: M = [x(:),y(:),z(:)]; % creating a matrix of all your independe...

約2ヶ月 前 | 0

回答済み
How to change r code to Matlab
Well if it is as simple as a fit of a line to data you can always use polyfit, or lscov if you have known uncertainties in your ...

約2ヶ月 前 | 0

| 採用済み

回答済み
Delete specific contour line from contour plot
It is not obvious to me which contour you want to remove, but if you don't want, for example the 0-level contour you do: contou...

約2ヶ月 前 | 0

| 採用済み

回答済み
how to interpolate x and y coordinates of contour?
You extract the contours wrong, at least if you have multiple contours at the same level v(i). It is simpler if you plot all the...

約2ヶ月 前 | 0

| 採用済み

回答済み
How to superimpose images, making one of them transparent
Perhaps something like this: B = imread('peppers.png'); % Just to get a sample image subplot(2,2,1) imagesc(B) [i1,j2] = gin...

約2ヶ月 前 | 0

回答済み
exponential function phase reversal
Try: phi = linspace(-5*pi,5*pi,5*360+1); Phi = angle(exp(1i*phi)); plot(phi,Phi) grid on set(gca,'XTick',[-2.5*360:180:2.5*...

約2ヶ月 前 | 0

回答済み
Vectorizing nested for loops
You find a nice contribution from J Kirk on the file exchange: Distmat In my historic appreciation efforts there is this Acklam...

約2ヶ月 前 | 1

回答済み
Parse Error in funtion
Simples, k++ is not valid matlab syntax, sadly according to some, but fact. You'll have to do an excplicit incrementations: ...

約2ヶ月 前 | 0

| 採用済み

回答済み
imwarp large image running out of memory
Maybe you can get weasle your way around the problem by divide-and-conquer? Would it work if you applied your warping on a sub-s...

約2ヶ月 前 | 0

Load more