Community Profile

photo

Jan


12.327 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

  • 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
MATLAB 2019a installation error
The profile folder "murat_000" looks like a temporary profile. Maybe this is a sandbox of Microsoft Edge? I used Firefox success...

circa 2 ore ago | 0

Answered
How can I combine data from multiple files and save as one file
If you want to join the contents of files, creating a figure is a useless indirection. Better join the files instead. Do the fi...

2 giorni ago | 0

Answered
Indexing errors with my function
Some of the indices are zeros. if M(i,j)>0 %swapping out -1 to 0s and assign to B1 B1s(i,j) = M(i,j); ...

2 giorni ago | 1

| accepted

Answered
I am unable to store data in an Object to use in a different callback function using GUI
The general idea is, that the handles struct is stored inside the figure's ApplicationData. If you have created a GUI with GUIDE...

2 giorni ago | 1

| accepted

Answered
How do I only get vectors out of the butter function?
I cannot confirm this. With standard Matlab functions, butter replies vectors. So check, if you use the official function: whic...

2 giorni ago | 0

Answered
How can I format numeric arrays that are too long
The format command affects only the display in the command window. This does not change the data or the method for the compariso...

2 giorni ago | 0

| accepted

Answered
Create dynamic array by comparing the new incoming variable value
Letting an array grow dynamically consumes a lot of resources. For small arrays with 100 elements, the costs are not severe, but...

2 giorni ago | 1

Answered
How do i get a function to open any text file on a computer
function Sensor_data() [fileName, filePath] = uigetfile('Choose some Sensor data:'); if isequal(fileName, -1) disp('User ...

2 giorni ago | 1

Answered
How to find first '1' in every row
Speed test: A = randi([0,1], 1000, 12501); tic; % MAX [~, B] = max(A,[],2); toc; >> 0.007 sec tic; % CUMSUM ...

2 giorni ago | 0

Answered
GUI on a scatter plot
I assume, this helps you to select a point: https://www.mathworks.com/matlabcentral/fileexchange/7594-click3dpoint Then you hav...

3 giorni ago | 0

Answered
How to print 1x50 array into a text file
Maybe: [fid, msg] = fopen(FileName, 'w'); assert(fid ~= -1, 'Cannot open file for writing: %s\n%s\n', FileName, msg); fmt = [...

3 giorni ago | 1

| accepted

Answered
Does Matlab work or run with Gnu-Lynux enviroment?
Du you mean "Linux"? Then see: https://www.mathworks.com/support/requirements/matlab-system-requirements.html => Linux

3 giorni ago | 0

| accepted

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

3 giorni ago | 0

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

3 giorni ago | 0

| accepted

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

3 giorni ago | 0

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

3 giorni ago | 0

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

3 giorni ago | 1

| accepted

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

6 giorni ago | 0

Submitted


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

6 giorni ago | 79 downloads |

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

6 giorni ago | 0

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

6 giorni ago | 2

| accepted

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

6 giorni ago | 0

| accepted

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

6 giorni ago | 0

| accepted

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

8 giorni ago | 1

| accepted

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

8 giorni ago | 2

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

8 giorni ago | 7

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

9 giorni ago | 0

| accepted

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

9 giorni ago | 0

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

9 giorni ago | 0

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

9 giorni ago | 0

| accepted

Load more