# Jan

### Fraunhofer IAF

Professional Interests: signal processing, image analysis, machine learning

**Statistics**

RANK**552**

of 258.031

REPUTATION**112**

CONTRIBUTIONS

**1** Question

**46** Answers

ANSWER ACCEPTANCE **
100.0%
**

VOTES RECEIVED**8**

RANK

of 17.782

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 110.229

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

how to strengthen the image ?

I gather you are working with single channel black and white images, i.e. pixel values are either 0 or 1. In that case, what you...

meer dan 8 jaar ago | 0

| accepted

how to write the code for dividing pixel values of an image with the mean pixel value?

To scale each pixel vector in hyperspectral image _X_ with the global data mean simply do X = X ./ mean( X(:) );

meer dan 8 jaar ago | 0

Include function in gui m-file or separate them?

For a cleaner structure I would allways outsource functionality in seperate .m files. For me (in Matlab as in any other programm...

meer dan 8 jaar ago | 0

Hi. What is the difference between xcorr and crosscorr?

Two different Toolboxes. _crosscorr_ is from the econometrics toolbox, while _xcorr_ is delivered with the signal processing too...

meer dan 8 jaar ago | 0

extracting a row from a matrix

M = [1,2,3;1,1,4;2,1,2;3,2,5]; [~, max_idx] = max( M(:,end) ); max_row = M(max_idx,:);

meer dan 8 jaar ago | 0

| accepted

how to fill polygone with circles without intersect with each other

I would assume, that your problem is not the actual coding, but the algorithm to use for solving this non-trivial task. Especial...

meer dan 8 jaar ago | 0

speech analysis in matlab

For analyzing one specific audio recording, I would try to threshold the signal energy level. However, as far as I remember it c...

meer dan 8 jaar ago | 0

substitute each element of a vector into a matrix without using loop

Like this? vector = 1:1:10; vector = reshape( vector, [1, 1, numel(vector)] ); one_vector = ones( 1, 1, numel(vector) )...

meer dan 8 jaar ago | 0

| accepted

substitute each element of a vector into a matrix without using loop

Maybe something like the following? matrix = [4, 5; 4, 2]; [p, q] = size( matrix ); vector = 1:1:10; matrix = repma...

meer dan 8 jaar ago | 0

How can i use threshold to convert a gray-scaled image into binary image ?

This is straightforward: A = imread('cameraman.tif'); % example grayscale image threshold = 120; % custom threshold val...

meer dan 8 jaar ago | 1

| accepted

Array in array in image??

To get the non-zero elements of an array simply do something like: A = randn(100, 100); A_non_zero = A( A~=0 ); This...

meer dan 8 jaar ago | 0

| accepted

spatial coordinates of BW image

Use _find()_ e.g. A = randn(100,100) > .5; % example binary image [row col] = find( A == 1 ); res = [ row col ]; ...

meer dan 8 jaar ago | 0

how to find spatial frequency of color image

You probably want to analyze the structure of the image's 2d fourier transform using _fft2()_. Either for each channel or after ...

meer dan 8 jaar ago | 0

display values in the title of a figure

title(['Mean', num2str( mean(mean(aa(:,:)))) ]) or shorter: title ( ['Mean ', num2str( mean( aa(:) ) ) ] );

meer dan 8 jaar ago | 0

how can I improve FFT resolution

You can use _zero padding_ (simply add zero values to your signal prior to FFT). Note that this does not provide additional info...

meer dan 8 jaar ago | 0

How to retrieve data from the textboxes of a GUI created with GUIDE.

You can access the content of a textbox in any function that has access to the _handles_ object. For instance if you want to acc...

meer dan 8 jaar ago | 0

| accepted

How do I plot the impulse response from this equation?

Maybe you want to do something like: h = [1, 3, -2, 9, 7]; ft_h = fft( h ); ft_h = sqrt( ft_h .* conj( ft_h ) )...

meer dan 8 jaar ago | 0

| accepted

selecting elements in the matrix

Use [row, col] = find(A>6) to find row and column indeces and use v = A( A>6 ); to get the corresponding values....

meer dan 8 jaar ago | 0

| accepted

How to insert artificial Artifacts in EEG signals ?

This is a very general question. In general, you will need a sample of an EOG artifact. That you can add to the EEG channels a...

meer dan 8 jaar ago | 0

| accepted

put a mall matrix in a big matrix

A( 1: 1 + size(B,1)-1, 5377 : 5377 + size(B, 2) - 1 ) = B;

meer dan 8 jaar ago | 0

| accepted

Numerical integration over a circular domain

I would try to transform the scalar field into polar coordinates and do numerical integration over a square window there. Of cou...

meer dan 8 jaar ago | 0

How do i obtain only the first principal component?

I'm not sure, if I fully understand your question. I doubt however, that there is a straightforward method for calculating the e...

meer dan 8 jaar ago | 0

| accepted

I'm not understanding why this error occurs: Error: Unexpected MATLAB expression

You are missing a multiplication operator: Try newton(x^3-x,3 * x^2-1,-1,1e-5,20) ^ in...

meer dan 8 jaar ago | 1

| accepted

stopping matlab from re-formating my numbers!!!

Use the _format_ argument when calling _num2str_ e.g. z = num2str( x, '%4.10f' ) if you want 10 (ten, not three ;) ) ...

meer dan 8 jaar ago | 0

How to prevent any variable from displaying its name?

Use a semicolon on the end of each line, e.g.: a = 1 + 1; disp( num2str(a) );

meer dan 8 jaar ago | 0

| accepted

Undefined function or variable 'slm'. = QUICK HELP!

The error message quite correctly states, that you never defined the variable _slm_ before you try to use it as an argument for ...

meer dan 8 jaar ago | 0

Convert a 3-d matrix to a 2-d matrix

b = zeros( size(a, 1), size(a, 2) ); for i = 1 : size(a, 3); b = b + 10.^(size(a, 3) - i) * a(:,:,i); end;

meer dan 8 jaar ago | 0

Meaning of the symbol in the equation

you are looking at the square of a vector norm: |||v|||^2 = sqrt( v_1^2 + v_2^2 + ... + v_n^2 ) = v_1^2 + v_2^2 + ... + v_n^...

bijna 9 jaar ago | 1

| accepted

sigmoid function value for parameter a and b

According to my calculations you have to pick _0<b<1_ and _a>0_. E.g. b=1/2 and a=1

bijna 9 jaar ago | 1

| accepted