Community Profile

photo

Jan


Last seen: Today
12.908 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
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...

alrededor de 8 horas 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?...

alrededor de 9 horas 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...

alrededor de 9 horas 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 ...

alrededor de 9 horas 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 ...

alrededor de 9 horas 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...

alrededor de 9 horas 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...

alrededor de 11 horas 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...

alrededor de 15 horas 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...

alrededor de 16 horas 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...

alrededor de 16 horas 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.

alrededor de 16 horas ago | 0

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 ...

alrededor de 16 horas 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...

alrededor de 18 horas 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...

alrededor de 18 horas 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...

alrededor de 18 horas ago | 0

Answered
solved error than you
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 ...

alrededor de 19 horas 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...

alrededor de 19 horas 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...

2 días 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]; ...

2 días 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...

2 días 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...

2 días 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...

2 días 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 ...

2 días 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...

2 días 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'; ...

2 días 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...

2 días ago | 1

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

2 días 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...

2 días ago | 0

Answered
matrix product different sizes
The multiplication of a 36-by-36 and a 36-by-10 matrix is mathematically defined and creates a 36-by-10 matrix. But you cannot m...

2 días ago | 0

| accepted

Answered
using a function with matrices
"function [rating] = rating(x,y)" does not match the information, that the function has 3 inputs. "gives the error message that...

2 días ago | 0

Load more