Community Profile

photo

Bjorn Gustavsson


UIT, the Arctic University of Norway

241 2015 年以降の合計貢献数

連絡する

Bjorn Gustavsson's バッジ

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

詳細を表示...

貢献した分野
表示方法

回答済み
Dynamic model of a bending spring
Start reading up on the topic of beam-theory. Then come back with matlab or ODE/PDE-based questions which are more suitable for ...

約7時間 前 | 0

回答済み
How to assign to an already 3d surface a colormap based on a set of values ?
This is how I'd do this: surf(x,y,z,Temps),shading flat This you dont have to view from above. HTH

約18時間 前 | 0

回答済み
i want to fill zeros inbetween vector elements
Looks like you should turn to matlab's sparse arrays. Something like this should be a shortest-ish code-snippet to do what you n...

1日 前 | 0

回答済み
Coherence as a function of time
Have a look at mscohere, and its help and documentation. It should allow you to calculate the coherence. My version resides in t...

1日 前 | 0

回答済み
Using spectralFlux to plot Flux of a vector
It is not at all clear what you want to do, spectral flux is not a term I've heard before - this might be because I'm ignorant, ...

1日 前 | 0

回答済み
matrix contain index track
Sure: I = [1, 3, 1, 4; 2, 3, 2, 4]; % Then operate away... But it is very unclear if that is what you really want. Do...

7日 前 | 0

回答済み
Problems with waitbar sizing
Have a look at this command-line progress-bar version. It is less visually intrusive when working with other stuff while matlab ...

7日 前 | 0

回答済み
Histogram with circular bars
I would do something like this: edges = 0:15:360; N_all(1,:) = histcounts(M1,edges);% Put one histogram per row into N_all N_...

7日 前 | 0

回答済み
Unusual arrangement of plot
Seems like you want the plot done with the radii sorted? (plot plots what you feed it, if you have the x-variable unsorted the p...

10日 前 | 1

回答済み
How to find the square root fo complex square
What's wrong with: sqrtZ = sqrt(Z); ? Then possibly work out the other root if necessary. HTH

10日 前 | 0

回答済み
Problem implementing finite difference method at edges of periodic functions
What I'd usualy have to do in this situation is to extract the differentiation matrices - just to check that all elements become...

10日 前 | 0

回答済み
What starting point to choose so fsolve always returns a solution when any exists?
This depends on how you have parameterized your surface. For the most general case (curve - circle), where you have a curve para...

13日 前 | 1

回答済み
How does MATLAB deal with wanted linear dependencies?
That's not the problem. What you should look at is how "wellconditioned" your model-matrix X is. Look at this example: [x,y] = ...

14日 前 | 0

回答済み
create freehand region of interest
Have a look at ginput (there are a couple of improved/modified versions on the file exchange), that function should give you the...

14日 前 | 0

回答済み
What is the best way to animate a rocket trajectory through matlab?
I would look for some of the arrow-contributions on the file exchange: Arrow3, arrow - and then simply loop over time calculate ...

15日 前 | 1

回答済み
How to make a common color bar?
This is how I do this neatly: subplot(1,1,1) cbh = colorbar_labeled(''); subplot(2,2,3) plot([0 2]) subplot(2,2,2) imagesc...

15日 前 | 0

| 採用済み

回答済み
Subscript indices must either be real positive integers or logicals. how can i change? thanks!
Matlab uses 1-based indexing to vectors, so your line: i(0) = v0; %initial condition Has to be changed to: i(1) = v0; %initia...

15日 前 | 0

回答済み
finding all local minima of histogram
If you read the help of the hist function you'll find: N = HIST(Y) bins the elements of Y into 10 equally spaced containers...

20日 前 | 0

回答済み
Cut a matrix after a certain value
Try: rowNum = find(any(Acum1 > 2500,2),1,'first'); % 1440*60= 86400 secondi. è il tempo disponibile nella giornata if isempty(...

21日 前 | 0

| 採用済み

回答済み
scatteredInterpolant giving unexpected plateaus
When I tried to download the mat-file I get nothing when I try to load it, it seems empty, could you check that the one you actu...

21日 前 | 0

回答済み
Visualization of 4D Plot
Perhaps you're asking for something like this: [X,Y,Z] = cylinder(linspace(1,1.5,100),100); % You have to specify your cylinder...

21日 前 | 0

| 採用済み

回答済み
Linear least squares overdetermined system
If I understand your problem correct you want to solve a reasonably large number of very small linear systems? In that case you...

22日 前 | 0

回答済み
difference between 2 spectrograms
Spectrogram called without input arguments seems to plot log10 of the power. try this: im = pcolor(h/1000,(t/60),log10(abs((s')...

22日 前 | 0

回答済み
ODE45 Solution for a coupled equation
When running your function I get an initial growth of T, which is due to the k_ISC*n(1) term in your ode - that would represent ...

22日 前 | 0

| 採用済み

回答済み
How can I create a subplot of ode45 for a mass spring damper where the two plots have a different k value?
Simply add another parameter to your msdfunc for k: function zprime= msdfunc(t,z,k) m = 4; b = 0.25; if nargin < 2 || isempty...

24日 前 | 1

| 採用済み

回答済み
Solving nonlinear diferential equations system
That's a system of coupled first-order ODEs. Have a look at the help and documentation for ode45, ode23. HTH

24日 前 | 1

回答済み
How to generate Publication quality( for conferences/Journals) figures in MATLAB?
In the File menu go to print preview - from there you can set a number of different behaviours of matlab's print. Then print you...

24日 前 | 1

| 採用済み

回答済み
How to perform convolution with a dataset?
In matlab this should be as simple as f = A*(C*exp(alpha*t + D*exp(beta*t))); % or whatever you have for that part. G = psf; ...

25日 前 | 0

回答済み
Plot a scalar as a function of a parameter
It should be as simple as: for n = 1:N for t = 2:T pipiVal(1,n) = pipiC(t,n); % or however you get the phipi-values cor...

25日 前 | 0

回答済み
How do I create a colormap for a flat plane?
Use something like this: surf(x,y,z-1,x+0.5*y),shading flat You can use whichever linear combination of x and y to have your g...

27日 前 | 0

| 採用済み

Load more