Community Profile

photo

Jan


12,099 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
ismethod(string('test'), 'endsWith') under R2016b and 2018b
The release notes of R2019a explain: --------------- First argument to ismethod must be an object Behavior change in future r...

1 day ago | 1

Answered
How to run function within for loop
I prefer providing parameters by anonymous functions instead of nested function. See Answers: Anonymous function for params . Th...

1 day ago | 0

| accepted

Answered
Index in position 1 exceeds array bounds (must not exceed 8).
I do not know, which of the variables is "your image". That is is "binary" does not concern the problem. Because roi is used wi...

1 day ago | 0

Answered
How to convert multi sized cell array into an MxN matrix
Matrices have te same number of elements in all columns and rows, repsectively. This is the definition of a matrix. So you canno...

1 day ago | 1

| accepted

Answered
What is the type of function Handle and How is it stored in memory?
M = [1, 2, 3]; FileAdd = @(M)(M+1); This creates a "function handle" of an anonymous function, not a "file handle". The latter...

2 days ago | 2

| accepted

Answered
A row vector that matches all similar rows in a matrix to group be them in a scatter plot
A = [1 1 1 40 50; 0 0 0 60 40; 2 2 2 20 10; 3 3 3 40 30; 1 1 1 60 70; 0 0 0 20 10]; B = unique(A(:,1:3),'row'...

2 days ago | 0

Answered
i have a problem to write to a excel
You got it almost: q = size(record, 1); % Safer than LENGTH r = q + 1; xlswrite('C:\Users\AFQ1KOR\Desktop\newfolder\Boo...

2 days ago | 0

Answered
get common position in cell array and replace with specific values
C = repmat({'AB'}, 1, 8); idx = [ 3 6 7 ] ; ids = [ 2 3 5 6 7 ] ; index = intersect(ids, idx); C(index) =...

2 days ago | 2

| accepted

Answered
Questions about the unsure range in xlsread, when using gui
I guess you mean: col = sprintf('B%d', serial1); row = sprintf('D%d', serial2); location = [col, ':', row]; or simpler: loc...

3 days ago | 0

| accepted

Answered
calculate the angle between a line (between two points) and the perpendicular line
Maybe you mean: angle = atand(b(1,:) - a(1,:)) - (b(2,:) - a(2,:))) % ^??? ...

3 days ago | 0

Answered
Align 2 matrices to find the minimum difference
See: https://www.mathworks.com/help/images/find-image-rotation-and-scale-using-automated-feature-matching.html

3 days ago | 0

Answered
How to "Save As .jpg" a figure programmically?
Either by print(FigureHandle, 'C:\temp\File.jpg') or pause(0.02); % Magic update of java elements - don't ask me why... F =...

3 days ago | 0

Answered
sum of row equal to particular number.
B = [2 2 2 3; ... 2 2 1 1; ... 4 5 2 1] Result = B ./ sum(B, 2) * 0.001...

3 days ago | 1

| accepted

Answered
Are MATLAB's window functions incorrect (starting at n = 1 instead of n = 0)?
The documentation is clear in this point: https://www.mathworks.com/help/signal/ref/triang.html#bt6p4f0 The triangular window i...

3 days ago | 0

Answered
How can i open more images that i have to edit in graphic interface?
I'm not sure, what "they open separately from the graphic interface" means. Which part of the code is relevant for your problem?...

3 days ago | 0

Answered
Can you please explain the meaning for below error meessage code
There is a missing end in the function imageDisplayValidateParams. As far as I can see, this is a Matlab toolbox function called...

4 days ago | 0

| accepted

Answered
Unable to save path to file in Ubuntu Matlab 2016b.
The warning looks clear. You need admin privileges to get write permissions for toolbox/local/pathdef.m, but you can store the f...

4 days ago | 1

Answered
maintaining format with xmlwrite
This is not the purpose of the XML format. The parser must have the power to reorder the tags. Matlab's parser orders them alpha...

4 days ago | 0

| accepted

Answered
Finding Local mean value of pixels of window
A simple approach: w = 5; w2 = floor(w / 2); sA = size(a); SumA = zeros(sA); DivA = zeros(sA); for i = 1:sA(1) %a i...

4 days ago | 1

| accepted

Answered
Why is manually adding elements of a vector faster than passing a vector range to sum()?
v1(2:5) creates a temporary vector. Some timings looks, like 2:5 is not created, but the indexing is done transparently. Then ca...

4 days ago | 0

Answered
how to solve installation error in matlab 2016a?
Try to download the installation files again and restart the installation. If this does not work, contact MathWorks to get supp...

4 days ago | 0

Answered
attempt to execute script as a function
Either vl_nnconv is really a script. Test this: which vl_nnconv -all Or the current folder is the parent folder of the help te...

4 days ago | 0

Answered
What is the meaning of dividing two vectors without dot
According to the documentation: x = B / A solves the system of linear equations x*A = B for x. If A is a rectangular m-by-n ma...

4 days ago | 1

Answered
Matrix Randomize with order
Maybe a trial and error approach is working. Start with creating the data: V = repelem(1:5, [50, 50, 86, 86, 85]); ready = fal...

4 days ago | 0

Answered
How to convert two rgb images into grayscale? and then subtract ?
img1 = imread('Image1.jpg'); img2 = imread('Image2.jpg'); D = rgb2gray(img1) - rgb2gray(img2)

5 days ago | 0

| accepted

Answered
I have an error Installation location
You need to download the file before installing them. The installer tries to download them to C:\Users\YourAccount\Downloads. Bu...

5 days ago | 0

Answered
Finding X value value at y value?
I guess you are looking for fzero().

5 days ago | 0

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
Use the debugger to find the cause of the problem. Type e.g. this in the command window: dbstop if error Run the code again. W...

5 days ago | 0

| accepted

Answered
Matlab should have give array but it gives a number. How to fix?
Use the elementwise division: d1i=(2*R.*lambda) ./ (10.^(-2).*r1i); % ^ You have used the elementwise operat...

5 days ago | 0

| accepted

Answered
Overwritting problem in for loop
nExisting = numel(dir(fullfile(folder, 'Grain #*.jpg'))); for i = 1:k f = sprintf('Select a ROI and double click to crop #%d...

7 days ago | 0

| accepted

Load more