Community Profile

photo

Jan


Last seen: Today
12.877 total contributions since 2009

It is easier to solve a problem than to guess, what the problem is.

Questions about FileExchange submissions are welcome - get my address from the code. I do not answer mails concerning questions in the forum.

Jan's Badges

  • Personal Best Downloads Level 4
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • Grand Master
  • Revival Level 4
  • 36 Month Streak
  • Thankful Level 4
  • Knowledgeable Level 4
  • First Answer
  • Promoter
  • Commenter
  • Solver

View details...

Contributions in
View by

Answered
Figure not showing up when attempting to plot array
It takes only a second on my system (Win10 Matlab 2018b). So either there is an open but hidden window or another problem. Chec...

ongeveer 16 uur ago | 0

Answered
Matlab does not plot data which are mirrored data
If the 2nd half of the data equals the 1st half in different order, you do plot all data, but the line overlap. See: r = [1 0...

1 dag ago | 1

Answered
Is there a way to get an 8 x 1 matrix instead of 8 x 3 using dec2bin or any other?
If you want 000 as output, remember, that this is not a valid decimal value. If you need the zeros for any reason, you have to s...

1 dag ago | 0

Answered
How can I set the default text size on figures in matlab 2018?
The default of an axes works exactly as you have defined it: figure; axes; set(gca, 'DefaultTextFontSize', 35) text(0.5, 0.5,...

1 dag ago | 0

Answered
Error using odearguments (line 113) Inputs must be floats, namely single or double.
What is the purpose of this line: format long,qgin,c_g_in,c,c_l_in,vg,vl,m,ql,v_max,v,xp,yxco,yxh2,mu,kd,c0,c0g,ngout,qgout; I...

1 dag ago | 0

Answered
A little question of [] and for loop
By the way, this code is a standard example of a programming style, which wastes ressources. A = []; for i=1:50 A=[A i]; ...

1 dag ago | 1

Answered
Run a script in each subfolders and extract results for each subfolders in another folder
FileList = dir(fullfile(Folder, '**', 'file.mat')); for iFile = 1:numel(FileList) SubFolder = FileList(iFile).folder; ...

1 dag ago | 1

| accepted

Answered
Index exceeds the number of array elements (101)
Use the debugger to find the not matichiung index. Type this in the command window: dbstop if error and run the code again. Wh...

1 dag ago | 0

Answered
How to remove this error? The grid vectors must contain unique points.
The error message tells you, that TWT does not contain unique values. It is impossible to gues, how you want to solve this probl...

1 dag ago | 0

Answered
Passing time step from ODE solver (ode23tb) to ODE function
You can use the OutputFcn to store the successful steps in a persitent variable, which can be forwarded to the function to bbe i...

1 dag ago | 1

| accepted

Answered
how matlab stores graphics objects?
This shows, that the displayed "Bytes" in the output of whos does not mean the actually used memory. Note that a variable has an...

1 dag ago | 0

Answered
Error using plot Vectors must be the same length.
Use the debugger to find the cause of the problem. Type in the command line: dbstop if error Run the code again. If it stops, ...

3 dagen ago | 0

Answered
ODE 45 Not enough input arguments
We cannot see it, because you have not posted the complete code. But this has been the reason in many other questions in this fo...

3 dagen ago | 0

Answered
How to delete empty rows in a cell array?
empty = cellfun('isempty', C); C(empty) = [];

3 dagen ago | 0

| accepted

Answered
Two-body problem program gone wrong
Decrease the tolerance to reduce the truncation errors: opt = odeset('AbsTol', 1e-8, 'RelTol', 1e-8); [t,y]= ode45(odefun,tspa...

4 dagen ago | 1

| accepted

Answered
memory errors with large amounts of csv files
Extract the wanted value during the reading. There is no need to store the complete tables. grains = zeros(1, num_files); % Pr...

4 dagen ago | 0

| accepted

Answered
switch case & operators
This is not the purpose of SWITCH/CASE. Please read the documentationm again: doc switch SWITCH evaluates its argument, ibn yo...

6 dagen ago | 1

Answered
How to add elements to the matrix with a certain pattern?
A = [1 2 3 4; 4 3 2 1; 5 2 3 1]; Ini = [2, 2]; Fin = [3, 4]; SumAllPaths(A, Ini, Fin); function S = SumAllPa...

6 dagen ago | 0

Answered
Can anyone help me with my code?
ODE45 calls the function to be integrated with 2 inputs: the scalar time t and the vector x. Definming this function with 4 inp...

6 dagen ago | 0

Answered
How to circ shift rows by different increments
What does "shift" mean? Circular shifting the elements? Adding a value to the contents of the elements? A = rand(100, 100); s ...

6 dagen ago | 0

Answered
While loop inside another while loop
The code of my other questions spends the most time for updating the figure. Even closing the figure finally takes several secon...

7 dagen ago | 0

Answered
Determine Type of noise in a signal?
This is not possible, if you only have the given information. The signal could be the sea-level at a specific location. If you ...

7 dagen ago | 0

| accepted

Answered
Getting Error while starting up the Matlab on windows 10
"Filesystem error" sounds like the file system is damaged. This is not a problem of Matlab. Check the disk by CHKDSK and control...

7 dagen ago | 0

Answered
Applying multiple constraints for while loop saving final output variables together
Your original code does not run, because the variable "i" is not defined initially. Maybe Matlab uses the default definition of ...

7 dagen ago | 1

| accepted

Answered
Variable 'ep3' is undefined on some execution paths.
The message "undefined on some execution paths" means, that there is a possible combination of IF-branches, in which the variabl...

7 dagen ago | 0

| accepted

Answered
I am interested to develop this numerical model, but i don't know how to start it ?
Start with defining your goal. How should the result look like? Is it enough to write some scripts without documentation, which ...

7 dagen ago | 2

Answered
Best way to reduce to a simple loop?
The first block can be simplified to: i2 = 2; % This is 2 in the first iteration, and 1 afterwards index = NaN; for i1 ...

8 dagen ago | 0

Answered
While loop inside another while loop
The main problem of your code is, that you increase m in the inner loop, but do not reset it to 1 inside the outer loop. So you ...

8 dagen ago | 0

Answered
Can I call mex function in other mex functions
The easiest and most efficient solution would be to avoid the overhead of calling a MEX function, but to embed the needed code d...

8 dagen ago | 0

| accepted

Answered
how to vectorise or speed up the specific code
ar = [0 0 0]; This creates a double array. ar = ar + single(AccelDouble); Here AccelDouble is converted to a single at first,...

9 dagen ago | 1

Load more