# Grzegorz Knor

Professional Interests: data science, finite element method, signal processing, machine learning

**Programming Languages:**

Python

**Statistics**

RANK**123**

of 250,058

REPUTATION**833**

CONTRIBUTIONS

**10** Questions

**305** Answers

ANSWER ACCEPTANCE **
60.0%
**

VOTES RECEIVED**145**

RANK**2,479** of 17,373

REPUTATION**623**

AVERAGE RATING**4.10**

CONTRIBUTIONS**4** Files

DOWNLOADS **10**

ALL TIME DOWNLOADS**5940**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

anyone have source code of fuzzy c means?

There is <https://uk.mathworks.com/help/fuzzy/fcm.html fcm> function from <https://uk.mathworks.com/help/fuzzy/index.html?s_cid=...

4 years ago | 1

Question

Live Editor and view neural network

Hi, I would like to add a neural network graphical diagram to my live script. Unfortunately command <https://uk.mathworks.co...

4 years ago | 1 answer | 1

### 1

answerHow to get 15-min average values from 10 min average values?

I suggest to use interpolation: <https://uk.mathworks.com/help/matlab/ref/interp1.html interp1> t1 = 10:10:60 av1 = [3, ...

4 years ago | 0

save image in matlab

Please read this topic in a documentation: <https://www.mathworks.com/help/matlab/creating_plots/save-figure-at-specific-size-a...

4 years ago | 0

| accepted

Question on imageDataStore syntax and parameters

All 'Name-Value Pair' arguments are described in the documentation: <https://uk.mathworks.com/help/matlab/ref/imagedatastore.ht...

4 years ago | 0

| accepted

re-train a pre-trained autoencoder

To encode data from retrained network you need to create new network, which contains only encoder layer. Please see the code (it...

4 years ago | 1

I want to create random bumps on a flat surface

You can add <https://en.wikipedia.org/wiki/Gaussian_function#Two-dimensional_Gaussian_function Two-dimensional Gaussian function...

4 years ago | 0

| accepted

Read the data from specific line in MATLAB

For the first time use <https://uk.mathworks.com/help/matlab/import_export/import-data-interactively.html Import Tool> and then ...

4 years ago | 0

How could I find the start index of an "approximate" pattern in a binary vector

I would try <https://uk.mathworks.com/help/matlab/ref/regexp.html regular expressions> : case1 = [0 0 0 0 0 0 0 1 1 1 0 0 0...

4 years ago | 0

Logistic Function Transform of vector values

Matrix dimensions must agree. Add dot before division ( */* ): S1=(1./(1 + exp(1).^(-1*Stemp)))

4 years ago | 0

| accepted

Question

Convolutional neural network: parallel layers

Is it possible to create a CNN with parallel layers in MATLAB? For example I would like to build network similar to this one: ...

4 years ago | 2 answers | 2

### 2

answersHow to determine which algorithm mldivide (A\b) uses

For sparse matrices check function <https://uk.mathworks.com/help/matlab/ref/spparms.html spparms> : spparms('spumoni',2) ...

5 years ago | 2

How to calculate moving average in a matrix?

From MATLAB R2016a there are functions _<https://uk.mathworks.com/help/matlab/ref/movmean.html%20 movmean>_ and _<https://uk.mat...

5 years ago | 0

Create a moving average

From MATLAB R2016a there is a function movmean which does not require additional toolboxes.

5 years ago | 3

Question

Pareto chart and XTickLabelRotation

Is there a way to plot Pareto chart and rotate XTick labels properly? Let's look at the code: y = randi(1e3,10,1); name...

5 years ago | 1 answer | 0

### 1

answerQuestion

plot - strange behaviour for big numbers

I've found a strange behavior of *plot* function in MATLAB 2015b (Windows 7). Namely this code: plot([1,1],[1e+19,100]) ...

5 years ago | 0 answers | 0

### 0

answersMinimize rosenbrock function via particle swarm optimization algorithm

See: <http://www.mathworks.com/matlabcentral/fileexchange/7506> And for Rosenbrock function: <http://www.mathworks.com/...

7 years ago | 1

how can i solve this integral ?

You can solve it online using Wolfram Alpha-> <http://www.wolframalpha.com/input/?i=Integrate%5B%25281+-+E%5E%25280.0081+x%2529+...

7 years ago | 0

How to convert mfile to c code????

Please refer to this page: <http://www.mathworks.com/products/matlab-coder/>

7 years ago | 0

Rotation of a contour plot

Look at this example: a = 37; [x,y] = meshgrid(linspace(-4,4,30)); z = exp(-x.^2/15-y.^2); contour(x,y,z) xlim(...

7 years ago | 0

| accepted

is it possible to square every element in equation ?

You have to use regular expression. <http://www.mathworks.com/help/matlab/ref/regexprep.html> Suppose that you use only s...

8 years ago | 0

How can I solve this equation in MATLAB

Use mldivide operator to solve systems of linear equations of type Ax = b: <http://www.mathworks.com/help/matlab/ref/mldivide...

8 years ago | 0

Question

Patternsearchw with genetic algorithm

Hi, I would like to run _patternsearch_ function with _SearchMethod_ option set to _searchga_. But it seems that _patternsear...

8 years ago | 1 answer | 0

### 1

answerHow can I find out what algorithm mldivide is using?

See *spparms* function. For example: A = sparse(diag(rand(5,1))) spparms('spumoni',2) A\rand(5,1) produces: s...

8 years ago | 3

| accepted

[Animation]: To animate a figure as function of several variables

See *getframe* and *movie* functions in the MATLAB documentation.There is a following example: Z = peaks; figure('Render...

8 years ago | 0

Plotting a complicated function

Use *ezplot* function: ezplot('sqrt((2*(a+b))/(a*b)) - (1+sqrt(a))/sqrt(a) - (sqrt((2)/(b*(1+b))))*(1-b) = 1/sqrt(a) - (sqr...

8 years ago | 0

Question

Clipping property doesn't work?

It seems that *clipping* property doesn't work for plot objects like *bar*, *stem*, *stairs*. See simple exapmle: plot(1...

8 years ago | 1 answer | 0

### 1

answerCircle plotting on different Planes

Try this code: X = [2 4 5 7]; Y = [0 2 1 0]; Z = [1 3 5 7]; r = 0.5; [x,y,z] = cylinder(r*ones(size(X)),1...

8 years ago | 0

smoothing plots from data

Are you sure that you want use anti-aliasing? *Linesmoothing* is an undocumented feature. You can use the *smooth* function t...

8 years ago | 0

| accepted

how to select first 23 rows and 25 columns from a 25 X 25 matrix in matlab

a = rand(25); b = a(1:23,:); <http://www.mathworks.com/help/matlab/math/matrix-indexing.html>

8 years ago | 2

| accepted