# Grzegorz Knor

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

**Programming Languages:**

Python

**Statistics**

RANK**133**

of 282 000

REPUTATION**865**

CONTRIBUTIONS

**10** Questions

**305** Answers

ANSWER ACCEPTANCE **
60.0%
**

VOTES RECEIVED**158**

RANK**2 523** of 19 068

REPUTATION**648**

AVERAGE RATING**4.10**

CONTRIBUTIONS**4** Files

DOWNLOADS **12**

ALL TIME DOWNLOADS**6192**

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

ungefär 6 år 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...

ungefär 6 år 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, ...

ungefär 6 år 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...

ungefär 6 år 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...

ungefär 6 år 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...

ungefär 6 år 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...

ungefär 6 år 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 ...

ungefär 6 år 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...

ungefär 6 år ago | 0

Logistic Function Transform of vector values

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

ungefär 6 år 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: ...

ungefär 6 år 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) ...

mer än 6 år 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...

mer än 6 år ago | 0

Create a moving average

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

mer än 6 år 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...

mer än 6 år 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]) ...

nästan 7 år 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/...

mer än 8 år 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+...

ungefär 9 år ago | 0

How to convert mfile to c code????

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

ungefär 9 år 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(...

ungefär 9 år 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...

mer än 9 år 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...

mer än 9 år 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...

mer än 9 år 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...

nästan 10 år 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...

nästan 10 år 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...

nästan 10 år 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...

nästan 10 år 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...

ungefär 10 år 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...

ungefär 10 år 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>

ungefär 10 år ago | 2

| accepted