Community Profile

photo

Jan


12,315 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 バッジ

  • Grand Master
  • Revival Level 4
  • 36 Month Streak
  • Thankful Level 4
  • Knowledgeable Level 4
  • First Answer
  • Promoter
  • Commenter
  • Solver

詳細を表示...

貢献した分野
表示方法

回答済み
how to get the x value for a given y value?
You cannot expect that any of the points at t = -0.5:1/Fs:0.5 is exactly 0.5*max(x). Remember that you evaluate x at some time s...

約17時間 前 | 0

回答済み
How programmatically know if an Update is installed for a particular matlab release?
Yes. See the output of version: 9.6.0.1114505 (R2019a) Update 2 With ver('Matlab') you get the version number only. But wi...

約17時間 前 | 0

回答済み
How to increase java heap memory in a dll?
I cannot check it with a compiled application. But inside Matlab you can hack the preferences file. At first check the current h...

約19時間 前 | 0

回答済み
"Error using cell2struct Number of field names must match number of fields in new structure. Error in matrix_from_rasters (line 9) hdr = cell2struct(num2cell(hdr{2}),hdr{1});"
Use the debugger to examine, whats going on. Either set a breakpoint in the failing line, or stop Matlab automatically if an err...

約19時間 前 | 0

回答済み
convert from cell array to vector
a ={'1','2','3','4','5','6','7','8','8'}; n = str2double(a) This can be faster under some conditions: n = sscanf(sprintf('%s ...

約19時間 前 | 1

| 採用済み

回答済み
Access to data without reading all of it
It is a very bad idea to create a huge data set with a size of 2 TB as text files. Do the files have a fixed width for all lines...

3日 前 | 0

送信済み


DataHash
MD5 or SHA hash for array, struct, cell or file

4日 前 | ダウンロード 78 件 |

回答済み
Is MathWorks working on a dark mode for MATLAB similar to what Visual Studio offers?
I'm using Matlab Schemer from the FileExchange successfully and I'm happy with it. Unfortunately I cannot set Windows to the dar...

4日 前 | 0

回答済み
How can I define two tones in a grayscale image
You cannot eliminate colors in a gray-scale image, but only set them to another value. img(img > 67 & img < 128) = 0; Here all...

4日 前 | 2

| 採用済み

回答済み
Attempting to use complex variable results in input array non-numeric error for polyval
Of course neither the char vector 'G11' nor any tricks with num2str can solve the problem. But hiding indoices in the names of v...

4日 前 | 0

| 採用済み

回答済み
how to save errors
failures = struct('iter', {}, 'str', {}); for i = 1:10 try output1=some_function1(input1,input2) output2=some_f...

4日 前 | 0

| 採用済み

回答済み
Convert values upper triangular matrix into vector
At = A.'; m = tril(true(size(At))); v = At(m).' Maybe this is faster (>=R2016b due to auto-expanding): At = A.'; m = (1:...

6日 前 | 1

| 採用済み

回答済み
Why can't I run my python script from Matlab?
See https://www.mathworks.com/help/matlab/call-python-libraries.html and https://www.mathworks.com/help/matlab/matlab_external/s...

6日 前 | 2

回答済み
How do I take the average of every n values in a vector?
x = rand(399277, 1); % Some example data n = 1000; % Number of elements to create the mean over s1 = size(x, 1)...

6日 前 | 7

回答済み
How to make a colour picker similar to this one in Matlab?
This looks similar to the built-in uisetcolor of R2019b, see https://www.mathworks.com/help/matlab/ref/uisetcolor.html -> Select...

6日 前 | 0

| 採用済み

回答済み
Is it possible to make 'uisetcolor' integrated in GUI?
See https://undocumentedmatlab.com/blog/color-selection-components Here you find some examples for color pickers. I assume you ...

7日 前 | 0

回答済み
Select random data from a matrix and replace it
A logical mask is much simpler than handling the indices: A = randi([0,1], 8, 8); % Test data p = 4; mask = (cumsum(A,...

7日 前 | 0

回答済み
Pending Approval for File Exchange
You can contact MathWorks by using the Contact button on top of this page: the phone icon. Direct link: https://www.mathworks.co...

7日 前 | 0

| 採用済み

回答済み
While loop does not repeat
The code should not work at all, because i is not defined before while i <= size(first_firm,1) But then Matlab assumes you mea...

7日 前 | 1

回答済み
How do i implement a gain of 10 inside my filter MAtlab?
See this: t = 1:30; x = rand(1, 30); % Some test data [b, a] = butter(3, 0.8); % A Butterworth filte...

7日 前 | 0

| 採用済み

回答済み
Using Arrayfun for iterative plotting
For example: for iRow = 1:2 plot(Gen_Array{7,2}(:, iRow), Gen_Array{7,3}(:, iRow)); end I do not understand completely, wh...

7日 前 | 0

| 採用済み

回答済み
Help with Multithreading!
If the data must be processed sequentially, you cannot run the task in a parallel way and therefor multi-threading will not help...

7日 前 | 0

回答済み
Try catch on script for any error
nRetry = 8; for k = 1:nRetry try yourFunction(); break; % Exit from the loop on success catch ME ...

7日 前 | 1

| 採用済み

回答済み
Why does my Command Window show different variables then my workspace?
So do I understand correctly: validateFolder() is a nested function. If you stop the debugger inside it, whos displays the varia...

7日 前 | 0

回答済み
How to browse and open txt file with columns separated by comma and then plot specific columns of txt file in app designer?
"I want to make an app in matlab app designer" appdesigner (By the way: It was extremely hard to find this command. I've searc...

8日 前 | 0

回答済み
First variable of table formatted differently for similar CSV inputs
Look in line 70 to 77 of 02.csv: ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, extraInfo,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, session,1,,,,,,,,,,...

8日 前 | 1

| 採用済み

回答済み
Implement the following matrix
The code overwrites dif_x in each iteration. Maybe you want to collect the different matrices instead: theta = [ 45 46 48] ; t...

8日 前 | 1

| 採用済み

回答済み
Help window doesn't appear
This is a problem in the preferences folder. See https://www.mathworks.com/matlabcentral/answers/453269-create-a-backup-of-your-...

8日 前 | 1

| 採用済み

回答済み
Record plotting like an animation
Record it in which format? See https://www.mathworks.com/help/matlab/creating_plots/animation-techniques-1.html https://www.ma...

8日 前 | 0

回答済み
How to remove the duplicate in the cell array but still keep the array structure?
A = {[3 11];[6 5 8];[ 11 5];[5]}; for iA = 1:numel(A) a = A{iA}; for jA = iA + 1:numel(A) A{jA} = A{jA}(~ism...

8日 前 | 1

| 採用済み

Load more