Community Profile

photo

Jan


Last seen: Today
12.910 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
transfer variables between functions?
Variables cannot be "transfered" between functions. You need to provide them as inputs and outputs. Combining GUI and the actua...

circa 7 ore ago | 0

Answered
Using Euler's method as ODE-solver in Matlab
How was the step size determined to be h=1/18? The author of the code wanted it to be 1/18. What does Euler's method in the w...

circa 7 ore ago | 0

Answered
run the script without opening the figure, its possible?
There is no chance to guess, what your code does, if we cannot see it. Maybe there is no reason to display the images, maybe thi...

1 giorno ago | 0

Answered
For Loop through .wav files
See: FAQ: How to process a sequence of files Folder = 'insert your folder here'; % Sure that there is a sapce after your name?...

1 giorno ago | 0

Answered
Share X and Y Axes for tiled layout plot
I'd solve this with subplot: https://www.mathworks.com/matlabcentral/fileexchange/20003-panel https://www.mathworks.com/matlab...

1 giorno ago | 0

Answered
Calling method in the GNU Scientific Library
You can create a C++-Mex function and call the library throught it. Unfortunately all inputs must be transposed, because Matlab ...

1 giorno ago | 0

Answered
Homework Help: What did I do wrong?
The == operator compares its arguments elementwise. If they have a different number of elements, this fails, except it one is a ...

1 giorno ago | 0

Answered
Error in Y label
In the code you have: kylabel('Value of the function', 'fontize', 10) title('function 1', 'fontzie', 10) The error message sa...

1 giorno ago | 0

| accepted

Answered
Kunge Kutta 4 - Biological Application
I would like some help to understand if I did it right. I cannot estimate what you consider as right or not right. For a real...

1 giorno ago | 0

Answered
convert logical values to numeric values
a = [1 1 5 1 1] b = ischange(a) c = double(b) % Alternative: d = b + 0 % Addition with DOUBLE converts to double cell2...

1 giorno ago | 0

| accepted

Answered
Averageing cell arrays in cell array
Using loops is the direct, clean and efficient way to access nested structs. cellfun works on cells only, not on nested structs...

1 giorno ago | 0

| accepted

Answered
i have number i need save only integer without any point or 'e'
To get an integer value use round, floor or ceil. If you only want to hide the fractional part, which can contain small numbers...

1 giorno ago | 0

Answered
How to change a char array into char row vectors?
ListA = ['BETA1'; ... 'BETA2']; ListAC = cellstr(ListA); Now you can run REGEXP on the cell string.

1 giorno ago | 0

| accepted

Answered
FOR LOOP, add value to each row at a time
X = ones(1, 10); for n = 1:size(X, 2) Y = X; % Copy original value Y(n) = Y(n) + 1; ... do what you want to ...

1 giorno ago | 0

Answered
Looping over paths, more than one loop
I do not understand, what your inputs are exactly. But maybe this idea helps you: keepCode = cell(length(vectorOfNames), length...

1 giorno ago | 0

| accepted

Answered
List the 10% highest values of a distribution
I guess that "x_UDP" is the same as "x". RMSF = load('rmsf.dat'); n = RMSF(:,1); %number of residue x = RMSF(:,2); %RMSF fo...

1 giorno ago | 1

Answered
Matlab code that does integration as well plot
Your code overwrites H in each iteration. So the final PLOT command outside the loop draws 1 point only. Because single points a...

1 giorno ago | 0

Answered
Error: Index exceeds the number of array elements (1).
You have defined months as a scalar: months(1) = month(dates(1)); Then months(g) must fail, if g>1. I cannot guess, what you ...

1 giorno ago | 0

| accepted

Answered
Problem with fscanf command in creating .txt file
filename1 = ['*new.txt'];%filename fid_t=fopen(filename1,'r') This cannot work: '*new.txt' is not a valid file nam...

1 giorno ago | 0

| accepted

Answered
Save multiple image automatically
Your code must fail with an error message in this line: outfile = fullfile(outfolder, sprintf(['%s-coba-%03d.%s',basename,'.jpg...

3 giorni ago | 0

| accepted

Answered
How to make a +5 (or any +number) jump in array values inside a for loop?
You can use FEX: RunLength , or this part taken from it: function n = RunLength_count(x) d = [true, diff(x(:).') ~= 0, true]; ...

3 giorni ago | 0

Answered
Can't start Matlab
I guess, that the preferences folder is damaged. Try to recreate it by renaming 'C:\Users\<youraccount>\AppData\Roaming\MathWork...

3 giorni ago | 0

Answered
Reading a text file containing strings and numeric data
fid = fopen(File, 'r'); if fid < 0, error('Cannot open file'); end TimeLen = 1e6; TimeIndex = 0; Time = zeros(1, Ti...

3 giorni ago | 0

| accepted

Answered
ode45, Please tell me how to fix this?
Did you save one of your functions as "ode45.m" file? Check this in the command window: which ode45 -all If you find a user-de...

3 giorni ago | 0

Answered
How do I compute the mean value of odd rows of a random matrix (mxm)? (using if and rem)
I do not have any idea, how "if" can be used to produce a random matrix. But using REM() to get the odd indices is easy: for ...

3 giorni ago | 0

| accepted

Answered
How to extract specific row from a large csv file and reshape it
Data = csvread(FileName); Row = [1, 100, 200, 300]; figure; for iRow = 1:numel(Row) Block = reshape(Data(iRow, :), 8, 8...

3 giorni ago | 1

| accepted

Answered
How to append values from different files to an array?
Do not use "mean" as name of a variable, because then you cannot use the function mean() anymore. Folder = 'C:\Your\Folder'; ...

3 giorni ago | 0

Answered
Prime number sum from cell array
The variable myArr is a double array. Then isstrprop(myArr, 'digit') is FALSE for all elements, because onbly CHARs can be digit...

3 giorni ago | 1

Answered
Completing elements of a matrix
a = [2; 3]; b = [1.5; 2]; c = kron(a, [ones(size(a,1), 1), b])

3 giorni ago | 0

Answered
How to compare two strings with different sizes?
A bold guess: a = 'AAGCTACGC' b = 'ACGCAA' Nmin = min(numel(a), numel(b)); Nmax = max(numel(a), numel(b)); match = fals...

3 giorni ago | 0

Load more