Community Profile

photo

Jan


Fraunhofer IAF

Active since 2013

Professional Interests: signal processing, image analysis, machine learning

Statistics

  • 6 Month Streak
  • Knowledgeable Level 3
  • First Answer

View badges

Content Feed

View by

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

bijna 8 jaar ago | 0

| accepted

Answered
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(:) );

bijna 8 jaar ago | 0

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

ongeveer 8 jaar ago | 0

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

ongeveer 8 jaar ago | 0

Answered
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,:);

ongeveer 8 jaar ago | 0

| accepted

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

ongeveer 8 jaar ago | 0

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

ongeveer 8 jaar ago | 0

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

ongeveer 8 jaar ago | 0

| accepted

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

ongeveer 8 jaar ago | 0

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

ongeveer 8 jaar ago | 1

| accepted

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

ongeveer 8 jaar ago | 0

| accepted

Answered
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 ]; ...

ongeveer 8 jaar ago | 0

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

ongeveer 8 jaar ago | 0

Answered
display values in the title of a figure
title(['Mean', num2str( mean(mean(aa(:,:)))) ]) or shorter: title ( ['Mean ', num2str( mean( aa(:) ) ) ] );

ongeveer 8 jaar ago | 0

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

ongeveer 8 jaar ago | 0

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

ongeveer 8 jaar ago | 0

| accepted

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
how to read a dat file in matlab
You may want to look at _importdata_

meer dan 8 jaar ago | 0

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

meer dan 8 jaar ago | 1

| accepted

Answered
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

meer dan 8 jaar ago | 1

| accepted

Load more