Community Profile

photo

Jan


12,092 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
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...

2 hours 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,:))) % ^??? ...

2 hours 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

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

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

5 hours ago | 1

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

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

5 hours 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?...

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

1 day ago | 0

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

1 day ago | 0

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

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

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

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

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

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

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

1 day 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)

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

2 days ago | 0

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

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

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

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

4 days ago | 0

| accepted

Answered
unable to upload files in file exchange
The problem exists for at least 2 weeks now, see https://mathworks.com/matlabcentral/answers/447952-update-of-fileexchange-submi...

4 days ago | 0

Answered
Shifting position of an element in a vector from 1st to last
Or: X = [(1:N-1) + triu(ones(N, N-1)), (1:N).'] % Auto-expanding: >= R2016b This is 2 times faster for N=200, and 3 times for...

4 days ago | 1

Answered
Command Window to GUI figure
See: FEX: CmdWinTool Key = '== Start logging:' fprintf('%s\n', Key); ... yourCode Final = strsplit(CmdWinTool('getText'), ch...

5 days ago | 0

| accepted

Answered
intermittant imwrite permissions error
Maybe your disk is full or a callback of a GUI or timer changed the current directory. Let Matlab help you to identify the probl...

5 days ago | 0

Answered
HELP- MATLAB FREEZING/ NOT OUTPUTTING CODE
It will increase your code, if you clean it up: Look at the orange marks in the editor, which show you, that etaotto have been d...

5 days ago | 0

Answered
Preserve nonwhite background when using copy figure on macOS
Did you consider this already? https://www.mathworks.com/help/matlab/creating_plots/copy-figure-to-clipboard-from-edit-menu.htm...

6 days ago | 0

Answered
Convert image to a c++ header file
Maybe this helps - smarter without a loop: function export_Img_2_Header( img, filename ) % EXPORT_IMG_2_HEADER Create C++ hea...

6 days ago | 0

Load more