Community Profile

photo

Bjorn Gustavsson


Last seen: Today

UIT, the Arctic University of Norway

962 2001 年以降の合計貢献数

連絡する

Bjorn Gustavsson's バッジ

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

詳細を表示...

貢献した分野
表示方法

回答済み
Finding smaller and larger values than user's input for 2D interpolation
Have a look at the help and documentation for the functions interp2 and scatteredInterpolant. Either of those two functions will...

1日 前 | 0

回答済み
manipulating derivative of function handle
When you do this it is easy to confuse things when trying to take 2-3 steps at once (in my experience...). Do it stepwise: f = ...

2日 前 | 0

回答済み
Calling a Script within another script?
This you can do this way: if flag1 == 1 ohm end if flag2 == 1 programaultimate end HTH

2日 前 | 0

| 採用済み

回答済み
Integrals with syms over the variable x
If you have the symbolic toolbox this can be done: syms E A0 L P c1 c2 c3 P x e1=E*A0*x * (c1*(2 - (x/L)) + c2*(4*x - 2* (x^2)...

3日 前 | 0

| 採用済み

回答済み
resample matrix by distance
Since you have approximately 1.5 mm between samples on average you will have to do some re-interpolation of your data. This work...

3日 前 | 1

| 採用済み

回答済み
How can i add legend to the figure in matlab?
It is often preferable to add the legend after the other adjustments. I often find that legends and colorbars doesn't perfectly ...

3日 前 | 0

回答済み
Solve coupled second order differential equation with ODE 45
This looks like the old nugget of wisdom "Programs are meant to be read by humans and only incidentally for computers to execute...

4日 前 | 0

回答済み
How to combine Space and dot expressions in Matlab?
This seems to work: ylab = sprintf('$\\dot{\\psi}%s [deg/s]$', repmat('\ ',1,12)); ylabel(ylab,'interpreter','latex'); ...

4日 前 | 0

回答済み
How to add tolerance for isequal?
If you had asked for tolerances for regular arrays this would've been reasonably straightforward. Something like this: isapprox...

4日 前 | 1

| 採用済み

回答済み
4d smooth plot with slices
I suggest you use the slice function for that, this type of plots is what that function was designed for. If your Data are not...

5日 前 | 0

回答済み
how to solve this coupled ODE problem using ode solvers ?
If you want to use the odeNN functions you need to rewrite your 2 2nd-order ODEs into 4 1st-order ODEs, something like this: fu...

5日 前 | 0

| 採用済み

回答済み
How can I remove the additive periodical noise from the image?
Your Filterimage is not the notch-filter you need, that is only the 1-D amplitude (possibly power) of the 1-D fft of the filter ...

6日 前 | 0

| 採用済み

回答済み
How to convert 'DDMMYYYYhhmm' into 'DD-MM-YYYY hh:mm'
You can do something like this to convert a date-string to another date-string: datestr(datenum(char(['190120211029';'140219671...

6日 前 | 0

| 採用済み

回答済み
How does the time step affect the results of ODE solvers?
The way you call ode15s you simply chop up the time-intervall into sub-intervalls and integrate sub-intervall by sub-intervall. ...

7日 前 | 1

| 採用済み

回答済み
running MATLAB ode45 back-to-back
Well if you have a problem like this (improvising for simplicity) ode1 = @(t,y,alpha) alpha*y; % exponential growth t_span1 = ...

7日 前 | 1

回答済み
Why does not coefficients vector include zero?
When I change the polynomial to: cf = fliplr(coeffs(x*3 + 2*z, [x y z],'All')) I get a 3-D array for the coefficients, as expe...

7日 前 | 0

回答済み
Using the cpsd function
Simply use the spectrogram function to calculate the spectrograms of your two time-series, something like this: [S1,F1,T1] = sp...

10日 前 | 0

回答済み
3d Plot “pile up 100 2d images” in 3d plane
You can use the function slice (see the help and documentation for details), but to do that you'll have to use 3-D arrays as inp...

13日 前 | 0

| 採用済み

回答済み
Probability density function calculation from data
Step 1, combine the daily rain-data to a 20-by-365 matrix: for iY = 20:-1:1 rain_20years(iY,:) = rain_daily{iY}; % You'll ...

13日 前 | 0

回答済み
data fitting by Integration with variable limit with a unknown parameter.
You can do something like this: y_fcn = @(CT,x) CT(1) * 74.826 * (x./CT(4)).^3 * integral(t.^4.*exp(t)./(exp(t)-1).^2), 0, CT(4...

14日 前 | 0

| 採用済み

回答済み
video camera data processing
Simplest way might be to use VideoReader: vidObj = VideoReader('Your-video.mp4'); Frame1 = read(vidObj,1); idx1toExtract = ...

14日 前 | 0

回答済み
Solving a system of ODE with Crank Nicholson
Note that you have a set of coupled ODEs not PDEs. The Crank-Nicholson method is developed for solving PDEs where we have both "...

17日 前 | 1

回答済み
How to create 3D array out of multiple 2D arrays of different dimensions?
Something like this ought to work: M2Dall = {m1,m2,m3,mN}; % Puting all matrices into one cell-array. for i3 = numel(M2Dall):-...

17日 前 | 0

回答済み
Pr4oblem with an ODE 45 " not enough input arguments"
Your definition of the ODEs is unconventional. I've always used to define coupled ODEs such that the dependent variables are in ...

18日 前 | 0

| 採用済み

回答済み
How to plot contourf using following information?
You would have to make one contour-plot for each time-step: i_time = 1; contourf(lon,lat,pr(:,:,i_time)') If I understood the...

18日 前 | 1

回答済み
how to create noisy image based on Poisson's noise
Well poissrnd is what you want, as far as I understand. If you have an "ideal image" with intensity I: I = repmat(1+[0:11].^2,[...

18日 前 | 0

回答済み
How can I optimize function output by tuning 3 input parameters?
You'll have to modify (at least for simplicity) your function to something like this: function [Pressures] = myFunc(KpKdKi) ...

18日 前 | 0

回答済み
Getting Meters per Pixel out of the camera calibration app?
If you know the size of the squares on the checkerboard and your objects are at the same distance then you only need to count th...

19日 前 | 0

回答済み
How to specify points in on two curves in plot?
This seems like a task for interp1. Have a look at the help and documentation for that function. I'd do something like this: sc...

19日 前 | 0

| 採用済み

回答済み
How do I generate a spherical image from a 3D matlab figure
Currently matlab has 'orthographic' and 'perspective' for the 'projection'-property of 3-D axes. You can perhaps get a wee bit ...

19日 前 | 0

Load more