Community Profile

photo

Jan


12,099 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

詳細を表示...

貢献した分野
表示方法

回答済み
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...

2日 前 | 1

回答済み
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...

2日 前 | 0

| 採用済み

回答済み
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...

2日 前 | 0

回答済み
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...

2日 前 | 1

| 採用済み

回答済み
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...

3日 前 | 2

| 採用済み

回答済み
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'...

3日 前 | 0

回答済み
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...

3日 前 | 0

回答済み
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) =...

4日 前 | 2

| 採用済み

回答済み
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...

4日 前 | 0

| 採用済み

回答済み
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,:))) % ^??? ...

4日 前 | 1

| 採用済み

回答済み
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

4日 前 | 0

| 採用済み

回答済み
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 =...

4日 前 | 0

回答済み
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...

4日 前 | 1

| 採用済み

回答済み
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...

4日 前 | 0

回答済み
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?...

5日 前 | 0

回答済み
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...

5日 前 | 0

| 採用済み

回答済み
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...

5日 前 | 1

回答済み
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...

5日 前 | 0

| 採用済み

回答済み
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...

5日 前 | 1

| 採用済み

回答済み
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...

5日 前 | 0

回答済み
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...

5日 前 | 0

回答済み
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...

6日 前 | 0

回答済み
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...

6日 前 | 1

回答済み
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...

6日 前 | 0

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

7日 前 | 0

| 採用済み

回答済み
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...

7日 前 | 0

回答済み
Finding X value value at y value?
I guess you are looking for fzero().

7日 前 | 0

回答済み
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...

7日 前 | 0

| 採用済み

回答済み
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...

7日 前 | 0

| 採用済み

回答済み
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...

8日 前 | 0

| 採用済み

Load more