Community Profile

photo

Bjorn Gustavsson


Last seen: Today

UIT, the Arctic University of Norway

418 2015 年以降の合計貢献数

連絡する

Bjorn Gustavsson's バッジ

  • Explorer
  • 12 Month Streak
  • Knowledgeable Level 4
  • Pro
  • First Review
  • Revival Level 1
  • First Answer

詳細を表示...

貢献した分野
表示方法

回答済み
Why is memory reduced for an identical copy of a sparse array?
It seems to be so that your difference of 16 bytes is simply due to the longer name of your AA: AA = sparse([1,1,2],[1,1,2],[pi...

2日 前 | 0

回答済み
Overlay gradual circular blur/fade over image
That seems like a reasonably simple task to do, if I've understood what you want to get done that is... Maybe something like th...

3日 前 | 0

| 採用済み

回答済み
ode solver returns too many results
When you get an error in matlab instantly set the debugger on: dbstop if error then rerun the command that caused the error, t...

17日 前 | 1

回答済み
How to plot three functions in three separate figures and simultaneously in one figure but in three different windows of the same figure?
When you create figures you can do something like this: fig1 = figure; fig2 = figure; fig3 = figure; Then when you want to p...

17日 前 | 0

回答済み
Generation of random numbers in batches
if you know from the start how many point in each set just do something like: a2 = randn(1,num_points_in_a2); a = a2(1:min(num...

20日 前 | 0

回答済み
Animated X, Y scatter plot
Have you tried to look at scatter? That should let you do this simply like this: for i1 = 1:10:(numpoints-10), plot(xP(1:i...

21日 前 | 0

| 採用済み

回答済み
Why can't OCR detect the text in this photo?
It seems to have something to do with automatic thresholding. If I cut out most of the black background it seems to work just fi...

23日 前 | 0

| 採用済み

回答済み
solve differential equation with matrix
Yes your system of ODEs are on the form (with singular mass-matrix, C) that ode23t and ode15s can handle, at least according to ...

23日 前 | 0

回答済み
Matrix integral over layers
For this I would try cumtrapz - it calculates the cumulative (sp?) trapezoidal integral in the same manner as cumsum calculates ...

23日 前 | 0

回答済み
Matlab shrinking subplot graphs when running the code
Sometimes that (used to) happen, as far as I understood it had something to do with repeated plotting (possibly with titles and ...

24日 前 | 0

回答済み
Pcolor equivalent for 3D array
The type of plot you've presented is easily reproduced by this: [x,y,z] = meshgrid(0:3,0:4,0:5); F = floor(4*rand(size(x))); ...

28日 前 | 0

| 採用済み

回答済み
Pcolor equivalent for 3D array
For visualization of 3-D data matlab has a couple of builtin functions: slice, scatter3 and isosurface. They does tasks at least...

29日 前 | 0

回答済み
How to create multiple files with given one file name
I'd do something like this: fn = '/some/where/output.csv'; [pth,nmn,ext] = fileparts(fn); nnmn = fullfile(pth,[nmn,'_std',ext...

30日 前 | 0

| 採用済み

回答済み
How to ensure that dsolve provides a trigonometric solution to a second order differential equation?
Since you have a linear ODE with a right-hand-side composed of harmonic terms you know that you can solve for the homogenous and...

30日 前 | 0

| 採用済み

回答済み
Asymmetric spring with two different stiffnesses
Yeah, I think that should be the correct test. In the modeling you do you have rather big difference in spring constant. When I ...

約1ヶ月 前 | 1

| 採用済み

回答済み
Solving differential equation with parameters takes forever
If both x and theta varies with t you cannot solve one first and the other separately later, you should treat them as a system o...

約1ヶ月 前 | 1

| 採用済み

回答済み
Code initiates again after exiting while loop which is within an if statement
In your outer for-loop you use you use i as loop-index. The way matlab has implemented things this is done (IIRC) such that ther...

約1ヶ月 前 | 0

| 採用済み

回答済み
Asymmetric spring with two different stiffnesses
ODE45 takes a function, f(t,y), describing the differential equation. You have a differential equation something like this w...

約1ヶ月 前 | 0

回答済み
I was wondering if this code could be vectorized, and if so, can it be done without conditionals or loops? It would be great if the vectorized form could be written out so that I could run and follow
Sure, you could generate 2 coordinate matrices x and y with meshgrid: nPix = 66; [x,y] = meshgrid(1:nPix); Then you'll have t...

約1ヶ月 前 | 2

回答済み
Error: "SVD does not support sparse matrics. Use SVDS to compute a subset of the singular values and vectors of a sparse matrix." while training SOM.
It means that your SOM-training function somewhere uses (or tries to use) the svd function. That function expects a full matrix,...

約1ヶ月 前 | 0

| 採用済み

回答済み
Why do colors "gray out" when I save figure as .eps
Ah, from the way your figure looks, it seems the "error-shade" function you use uses alpha-blending - that is colour-patches tha...

約1ヶ月 前 | 0

回答済み
1-D Transient Heat Conduction With No Heat Generation [FDM] [Crank-Nicholson]
My suggestion is that you add a line: Tall(:,k) = Tb; at the end of your "time-step"-loop. Then after you're done with it all...

約1ヶ月 前 | 1

回答済み
Transposing matrices of a Dataset
Take a look at the help and documentation of the matlab-function permute. HTH

約1ヶ月 前 | 0

回答済み
Inversion of block tridiagonal matrices
If you have a small enough problem which is not ill-conditioned just use \, if it is ill-conditioned but you can do an SVD of yo...

約1ヶ月 前 | 0

| 採用済み

回答済み
Matlab is installed in ubuntu but i am unable to open it
If you try to execute something like ./matlab from your terminal you tell the shell to run an executable command "matlab" in the...

約1ヶ月 前 | 1

回答済み
How to find peaks of the given signal and find the phase shift with respect to the Oscillator 1 signal?
If you had regularly sampled data (it doesn't seem so) this would best be done with spectrogram. That would give you the spectro...

約1ヶ月 前 | 0

回答済み
How to solve the reduced eigenvalue poblem
Have a look at the eig function. It solves for eigenvalues-eigenvectors - also for the generalized eigenvalue-problem you seem t...

約1ヶ月 前 | 0

回答済み
Plot signal from fits file?
To read data in fits-format you can use fitsread and fitsinfo, but when I try that on an image from SETI-projects web-site I got...

約1ヶ月 前 | 0

回答済み
How to make a plot with x-axis that has different scales on different specific regions?
Either you can use something like set(gca,'xscale','log') if that brings you close enough. If you want to plot on some other ...

約1ヶ月 前 | 1

| 採用済み

回答済み
Avoid ''Dot indexing is not supported for variables of this type.'', exist(...) isn't working
If you want to check if a struct has a field your're interested in you should check with isfield, check the help and documentati...

約1ヶ月 前 | 0

Load more