Community Profile

photo

Bjorn Gustavsson


UIT, the Arctic University of Norway

Last seen: Today Active since 2001

Statistics

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

View badges

Content Feed

Answered
Integer eigenvalues in Matlab
Since you have a matrix and want the eigenvalues then the best approach seems to be to actually calculate the eigenvalues. For t...

3 days ago | 0

Answered
How to solve simultaneous equations?
Using symbolic tools you have solve - look at the help and documentation for that function for examlpes. Your problem should red...

4 days ago | 0

Answered
How to extract data from a function or functions. Also how to export this data to excel.
Your functions have their own name-space where the variables that are defined exists (in addition to the input variables that yo...

4 days ago | 1

Answered
how to Solve 4 Equation and 3 unknown
When you have four non-linear equations with three unknowns you cannot, in general, expect to get a symbolic solution. For these...

5 days ago | 0

Answered
fitting data to system of ode
You will find the answer to this problem in a link to yet another answer (by Star Strider) here: fit-a-parameterised-ode-solutio...

5 days ago | 0

| accepted

Answered
How to solve differential equations with varying constants
For the case you describe you have to add information about how X and p varies with time. Are they constant over some fixed inte...

6 days ago | 0

Answered
What should go in a next-generation MATLAB X?
Allow elementary mathematical operations on function-handles. So instead of writing the sum of two functions as: f1 = @(x) x.^2...

6 days ago | 0

Answered
Plotting spectrograms for multiple files
Wouldn't you achieve the desired output by putting the different spectrograms in consecutive subplots? Something like this perh...

12 days ago | 0

Answered
How to define constraint in Optimization such that difference in value between two consecutive unknowns is not greater than 50%
Perhaps a constraint-function like this would get the job done (might be used with fmincon for example): function [c,ceq] = you...

12 days ago | 0

Answered
Using fsolve to solve equation system for coefficients of a Schwartz-Christoffel map
You can use the optimization-functions to get a solution, or a hopefully good starting-point for fsolve. If you define a sum-of-...

12 days ago | 1

Answered
Plot handle not being assigned
When you plot multiple lines plot returns an array of line-handles then it doesn't work to assign those to one element in h. For...

12 days ago | 0

Answered
Solving a pair of equation using matlab
You have 2 unknown parameters k and theta. You have one condition for y at t=0 and one condition for dy/dt at t=0. Since you hav...

13 days ago | 0

Answered
perpendicular and parallel component
You have to look at the documentation of the mission and the data access etc: MMS_Data_Access_f3. We cannot tell you how to hand...

19 days ago | 0

Answered
topograph created by EEGLAB using ERP
For this you could do something like this (except I will use random data and plain imagesc): I_peaks = rand(3,1); for i1 = 3:-...

20 days ago | 0

Answered
Wrong distortion parameters in camera calibration
After quickly looking at the amount of distortion noticeable it seems pretty small - open the images in gimp (for example, comer...

21 days ago | 0

| accepted

Answered
How to use one marker for looped plots in legend
To get full controll of legends use the graphics-handles that are returned from the plot-functions. Perhaps something like this:...

26 days ago | 0

Answered
How to determine the coefficient from the argmin function ?
This is a standard minimization-problem, for that matlab has the fminsearch function (and possibly a couple more in the optimiza...

26 days ago | 0

| accepted

Answered
Roughness of 3D Surface
There are a number of hits returned when searching for "curvature" on the file exchange. The gptoolbox seems to have a bunch of ...

26 days ago | 0

| accepted

Answered
How to range array steps
Split into two sequences: x = [-1:-1:-32,32:-1:1]; HTH

26 days ago | 1

| accepted

Answered
How to implement Hermite spline in Simulink
There is a way to make blocks that wrap a matlab-function (matlab-functions-simulink_5), shouldn't that solve this task? HTH

26 days ago | 1

| accepted

Answered
Speed Up the for loop
A couple of suggestions: 0, check the time spent on different lines by running this script with smaller limits on j and i with ...

1 month ago | 1

Answered
Principal component regression, keeping variable names
Well the eigen-vectors will correspond to some linear combinations of your orignal variables. As such one eigenvector might for ...

1 month ago | 1

Answered
Solving coupled differential equations.
The first trick to try with these coupled integro-differential equations is to try to "differentiate away the integrals": whi...

1 month ago | 0

Answered
How can I obtain the Fourier Transformation as a product of matrices?
Have a look at the help and documentation for dftmtx. That function should return the discrete Fourier-transform matrix and give...

1 month ago | 0

Answered
Solving non linear equation "Circle" equations
If the 20 equations are of the same form you will have a vastly overdetermined problem (that in general will not have any exact ...

1 month ago | 0

Answered
How can we plot the correlation
It seems that you ask for the corrcoef. If you look at the correlation between 2 signals you will simly get a 2-by-2 matrix whic...

1 month ago | 0

| accepted

Answered
how to solve a non linear ode equation ?
You have a quadratic equation for dCAdt, solve that one as a standard quadratic equation, you will end up with two solutions for...

1 month ago | 0

Answered
Implementing Runge kutta method in place of ode45
You simply take the RK-scheme that suits your preferences and needs, for example from: Runge-Kutta methods, and plug that into a...

1 month ago | 0

Answered
Can Ode 45 solve piecewise function in the iteration?
Your best approach is to use the events-handling procedure to interupt and restart the ode-integration whenever x and y passes t...

1 month ago | 0

Answered
Many 2D histograms, single colorbar
For that type of equalization I do someething like this: for i1 = 1:4 numberPairs(i1).matrix = randn(1000,2); subplot (2,...

1 month ago | 0

| accepted

Load more