Community Profile

photo

Jan


12.103 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
Create Matrix with zeros, ones and some numbers.
With 2 "numbers" only: c = ['0 0 0 0 0 1 ', ... '0 0 0 0 0 1 ', ... '1 2 3 4 5 1 ', ... '0 2 4 6 8 1 ', ... ...

ongeveer 14 uur ago | 0

| accepted

Answered
cannot open source file "mex.h"
fullfile(matlabroot,'extern', 'include', 'mex.h') mex.h belongs to Matlab's toolbox files. "I am using IAR embedded workbench ...

ongeveer 14 uur ago | 0

Answered
Error link of '.mexw64' failed
What about: mex generateEllipseCandidates.cpp libmwlapack.lib libmwblas.lib ... and omit "-lC:/MATLAB/R2013a/extern/lib/win64/...

ongeveer 17 uur ago | 0

Answered
Color-interpolated patch legend is in full color instad of being interpolated
The legend command is (one of) the most frequently modified function(s) of Matlab's toolboxes. You can access the contents of th...

ongeveer 18 uur 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...

ongeveer 19 uur ago | 1

| accepted

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

4 dagen 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...

4 dagen 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...

4 dagen ago | 0

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

4 dagen 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'...

5 dagen 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...

5 dagen ago | 0

| accepted

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

5 dagen 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...

6 dagen 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,:))) % ^??? ...

6 dagen ago | 1

| accepted

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

6 dagen ago | 0

| accepted

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

6 dagen 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...

6 dagen 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...

6 dagen 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?...

6 dagen 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...

6 dagen 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...

6 dagen 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...

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

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

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

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

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

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

7 dagen 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)

8 dagen 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...

8 dagen ago | 0

Load more