Community Profile

photo

Jan


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

  • Explorer
  • 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
Why symsum does not provide the right result?
syms i n symsum(i,i, 1, n) If you define the sum without limits like in symsum(i,i) something different is calculated accordin...

ongeveer 9 uur ago | 0

| accepted

Answered
How to export requirements to reqif with a script
If the searched function is implemented as M-function, you find the correspodning M-files using the profiler: profile on % ty...

ongeveer 10 uur ago | 0

Answered
ode45 or bvp4c? Which one suits this scenario? Please anyone reply
If some conditions are defined at different time points, the problem is not an "initial value problem", which can be solved by O...

1 dag ago | 0

| accepted

Answered
Multiplying unequal size matrices
There is no mathematically defined function for a multiplication of matrices with not matching sizes. Before you ask how to impl...

1 dag ago | 1

Answered
how to make a function call with 2 variables of second degree
Converting a set of ODE functions of a higher degree works exactly the same for 1 or more variables. The procedure remains reall...

2 dagen ago | 0

| accepted

Answered
import .data file
Remember, that ".data" is a part of the file name, which can be choosen freely. It does not tell anything about the internal for...

2 dagen ago | 1

| accepted

Answered
ODE solution using Fourier series
syms x N = 3; for j=1:(2*N+1) xp(j) = simplify(-sym(pi) + (2*sym(pi)*(j-1))./(2.*N+1)); % Equidistance points end f...

2 dagen ago | 0

Answered
image processing write permission
If you specify a folder, in which you do not have write permissions, you cannot create a file there. If you omit a folder in the...

2 dagen ago | 0

| accepted

Answered
Finite difference method for second order ode
Matlab is case sensitive. There are no "Function", "For" and "Plot" commands. You should ge corresponding error messages. I try...

2 dagen ago | 0

Answered
For loop doesn't run properly
tot_time = 0; for n = 2:8 while tot_time < 239.999 while load < 18 if d == n % When the depth is...

2 dagen ago | 0

| accepted

Answered
What does the value of I mean?
I is the value of images(i,j, whichChannel, im) as a double. So you have to find out, what images contains. How was this variabl...

2 dagen ago | 0

Answered
If-condition: if number is +-5% of another
Are you sure, that this is correct: for x = 1:1:size(t{n}) if t{n}.sh(x) = ... Does t{n}.sh have as many elements as the ...

2 dagen ago | 0

Answered
MATLAB Enter key is executing code
Do you mean the command window? You cannot change this. If a command is complete, it is executed when enter is pressed. The com...

3 dagen ago | 1

Answered
The efficient way (in terms of speed and consistency) for parsing a big text file with textscan
Str = fileread(FileName); C = strsplit(Str, '\n'); nPC = sum(strncmp(C, 'PC', 2)); nPG = sum(strncmp(C, 'PG', 2)); nPE = s...

3 dagen ago | 1

| accepted

Answered
Please, help! I get an NaN's cannot be converted to logicals. Error in Untitled (line 22) while tol_V2(i) && tol_V3(i) >= 0,00005; error. How can I fix it?
Before the loop, tol_V2 is a scalar. Inside the first iteration you set tol_V2(i) and tol_V3(i) with i == 1. But after increasin...

3 dagen ago | 1

| accepted

Answered
How to loop half matrix
for i = 2:nhx-1 for j = 2:(nhy + 1) / 2 Unew(i, j) = ... Unew(i, nhy - j + 1) = Unew(i, j); end end...

3 dagen ago | 0

| accepted

Answered
Integration over discrete data - don't know if trapz works here
Using trapz check input sizes and cares for matrices also. But if x and y are vectors, this can be done manually also. The trape...

3 dagen ago | 0

Answered
How to calculate ode45 of system of equations with particular initial conditions?
This looks trivial actually. Your initial values are: y0 = [5, 12] It is not required, that the initial time is 0. You can sta...

3 dagen ago | 0

| accepted

Answered
Running out of memory using imfuse repeatedly
"Out of memory" means, that your RAM is exhausted. The efficient solution is to install more RAM and to care for freeing as much...

3 dagen ago | 0

Answered
about palindrome number check
For numbers up to 2^53 the type double represents the digits exactly. This is 9-0e15. See flintmax. Your example n=1.7653692772...

4 dagen ago | 0

| accepted

Answered
Moving Data Between Apps and Separate Scripts?
Scripts are the wrong approach to transmit or receive inputs and outputs. The good programming practice is to start a GUI and l...

4 dagen ago | 0

Answered
help me --> Taylor series cos(x)
Please read the getting started chapters of the documentation and see Matlab's Onramp tutorial. Then split the question into pa...

4 dagen ago | 0

| accepted

Answered
Why can't complex integer arithmetic be done?
What about converting the complex int16 value to a single? a = int16(complex(2,3)) b = single(4 + 5i) c = single(a) * b

4 dagen ago | 0

Answered
Integration of a function which has limits in terms of parameters
syms t L rho m L n T k G v N(t) = (T*L/2)*(n*pi/L)^2+k*sin(n*pi*v*t/L); D(t) = (rho*L/2+m*(sin(n*pi*v*t/L))^2); alpha(t) ...

4 dagen ago | 0

Answered
How to multiply a matrix to another cell matrix
Create a simple loop: A = rand(3, 3); for iC = 1:numel(C) % Where C is your cell C{iC} = A * C{iC}; end The approach wi...

4 dagen ago | 2

Answered
How to make three dimension matrix indexed sum return summation across the third dimension
datax = rand(3,3,5); cr1 = rand(3,3,5) > 0.5; cr2 = rand(3,3,5) > 0.5; ignore = (~cr1 | cr2); result = sum(datax .* i...

4 dagen ago | 0

| accepted

Answered
Why is histcount ignoring one of the edge values in my matrix?
I still have the impression, thet histcounts works less intuitive than the older hist. Remember, that the rightmost edge is hand...

4 dagen ago | 0

Answered
insert text in for loop operation
The question is not clear yet. Where should ' t = 0 s' appear? As title of an axes? for i = 1:200 %% image processing ...

4 dagen ago | 1

Answered
Change File Permission of File Created on a Unix System
Does your Windows account has write permissions in the folder? Which error message do you see in which program? Maybe the file ...

4 dagen ago | 0

Answered
Malwarebytes thinks these Matlab files are malware
The hash values are correct. This means, that the virus scanner produces a false alarm. You can determine this also by sending t...

4 dagen ago | 1

| accepted

Load more