Community Profile

photo

Jan


Last seen: Today
13,638 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 バッジ

  • 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

詳細を表示...

貢献した分野
表示方法

回答済み
Help needed in solving a matrix equation
A= [0,1;1,1]; B= [0,1;1,1]; Q= [2,0;0,4]; R= [0.5,0;0,0.25]; syms p11 p12 p21 p22 P = [p11, p12; p21, p22]; eqn = P * A + ...

1日 前 | 0

回答済み
I dont know what to do
Remove the semicolons from these lines: x; y1; y2; y3; y4; The trailing semicolon suppresses the output. Therefore "x;" sh...

1日 前 | 0

回答済み
FiltFilt function giving NaN values
I try to run your code guessing some inputs: srate = 1000; [b, a] = ellip(14, 5, 30, 2*(170/srate), 'low'); lpfSig = filtfil...

2日 前 | 0

回答済み
How to insert data with fopen ?
fmt = [repmat('%.2f ', 1, 32). '\n']; ftempd = fopen('tempd.r2c', 'w'); fprintf(ftempd, fmt, tempd.'); fclose(ftempd);

2日 前 | 0

回答済み
Run into "Paused: Press any key"
This problem appeared in R2016a already: https://www.mathworks.com/matlabcentral/answers/278430-why-does-program-execution-hang-...

3日 前 | 0

回答済み
Formating all values of a structure field
No, you cannot access nested fields of a struct array in Matlab directly. You need a loop.

3日 前 | 0

| 採用済み

回答済み
Cheat for preallocation requirement
x = []; for i = 1:1e5 x(end+1, :) = 1:10; end Here you allocate sum(1:1e5) * 10 * 8 bytes: 400 GB. c = {}; for i=1:1e5...

3日 前 | 0

回答済み
the user will be asked to input number which is good but the problem is how can I make that as numbers and letters for example 2x and put it in matrix
This is a really complicated task, which is prone to bugs. How do you want to treat "2x" compared to "x2"? If "x" is a variable,...

3日 前 | 0

回答済み
Subtract 1 from variable each second
counter = 100; TimerH = timer('TimerFcn', @doCount, 'ExecutionMode', 'fixedRate', ... 'Period', 1.0, 'UserData', counter...

3日 前 | 0

| 採用済み

回答済み
Copy Multiple figures to the clipboard
The OS has a single clipboard only. There are some 3rd party apps, which offer more bins in the clipboard, but it is not easy to...

3日 前 | 0

回答済み
How do I store the values of a for loop in a matrix array?
One solution might be indexing the output ... mat(u, u0, v, v0) = delta2(u, u0, v, v0); ... But this can be simplifi...

4日 前 | 0

回答済み
Recover Corrupt Matlab File
What do you call "Matlab files"? which file extension do they have? M, P, MAT, MLX, ...? Based on the information "random chara...

4日 前 | 0

| 採用済み

回答済み
Concatenating multiple cells in a single matrix
The conversion from numeric to string and back to numeric is an expensive indirection. n = 8; p = 2.^(0:n-1); for col = 1 : n...

4日 前 | 0

回答済み
An UndefinedFunction error thrown by parfor but not for
Constants defined in scripts cannot be identified by the Matlab, when it parses the parfor block. In addition such scripts have ...

4日 前 | 3

| 採用済み

回答済み
how to read multiple file from single .mat file
I assume you use the term "file", but you mean "variable". Calling load() without catching the output, creates variables dynami...

4日 前 | 1

| 採用済み

回答済み
Could someone please explain what is wrong in my function?
function [Sign] = signum(A) The indices (r,c) belongs to the caller of the function, not inside the function. You call this fun...

4日 前 | 0

回答済み
Text doesn't change in guide while i can see it change in the commande window
It is not the cause of your problems, but global variables are a shot in your knee. Avoid them consequently. Instead of searchin...

4日 前 | 1

| 採用済み

回答済み
Error in sort function when grouping events
Use the debugger: dbstop if error Afterwards start your code again. When Matlab stops at the error, what is the contents of rp...

4日 前 | 0

回答済み
How to combine matrices with different size but preserve elements with same value?
Do you mean union? A = [1; 5; 8; 9]; B = [1; 2; 4; 5; 7; 9]; C = union(A, B)

4日 前 | 0

| 採用済み

回答済み
How to sum specific elements of a matrix
The most efficient solution is to ask in the forum, because this is faster than solving this problem by your own ;-) X = randi(...

4日 前 | 0

回答済み
Calculating Integral using Array Input
You do need a loop to get the best solution. Remember that integral is an adaptive method, which creates finer grids until a cer...

4日 前 | 0

| 採用済み

回答済み
I have P=[2 3 4 0 5 1 0 2 ]; and I want to create a loop to remove zeros from P and calculate C, description in the code
P = [2 0 4 0 5 1 2 0 ]; zeroIndex = find(P == 0); for k = 1:numel(zeroIndex) Q = P; Q(zeroIndex(k)) = []; ... Ins...

5日 前 | 0

| 採用済み

回答済み
Solve first ode using ode45
You can modify the examples of the documentation easily, see: doc ode45 Temperature0 = 6.2; % Your initial value [Time...

5日 前 | 0

回答済み
exit from a nested loop
"I correctly exit from the inner while loop but afterwards it does not increment i" Why do you assume this? The outer loop is n...

6日 前 | 1

| 採用済み

回答済み
Group files with same names
Folder = 'D:\Your\Data\Folder'; FileList = dir(fullfile(Folder, '*.jpg')); FileName = {FileList.name}; Name = unqiue(st...

6日 前 | 0

回答済み
"Access Elements of a Nonscalar Structure Array" issue
You cannot access fields of deeply nested structs in Matlab. You need a loop to do this.

6日 前 | 1

| 採用済み

回答済み
How to use ODE45 to solve 2nd order differential equation with random variables in it?
dt = 0.01; tf = 30; tspan = dt:dt:tf; y0 = [0;100;0;10]; for k = 1:100 ms = 10 + randn; mu = 20 + randn * 2; ....

7日 前 | 0

| 採用済み

回答済み
While loop and randomization
x = [1 1 1 2 2 2 3 3 3]; ready = false; while ~ready y1 = [x(randperm(numel(x))); x(randperm(numel(x))); x(randperm(nume...

7日 前 | 0

回答済み
Evaluate function handle for each value in vectorized form
alpha = 1; n=10; rng default beta_all = randn(n, 1); gamma_all = randn(3, n); res = num2cell(alpha * beta_all.' .* gamma_...

11日 前 | 0

| 採用済み

Load more