# Jonas

**Programming Languages:**

C++, Java, MATLAB

**Spoken Languages:**

English, French, German

**Statistics**

RANK**212**

of 250 317

REPUTATION**367**

CONTRIBUTIONS

**5** Questions

**157** Answers

ANSWER ACCEPTANCE **
80.0%
**

VOTES RECEIVED**41**

RANK**16 924** of 17 386

REPUTATION**0**

AVERAGE RATING**1.00**

CONTRIBUTIONS**2** Files

DOWNLOADS **2**

ALL TIME DOWNLOADS**5**

RANK

of 104 008

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

plotting piecewise periodic function

you could generate the values for one cycle and then repeat the values using repmat()

27 dagar ago | 0

How to store all the A matrix that I have got from every iteration

is y a single value? then A would be a row vector. you can initialize your A before the loop as A=nan(numel(linspace(15,75,5)),2...

27 dagar ago | 0

Question

How to assess frequency stability of sung notes while keeping frequency precision under the possiblity that a vibrato (frequency modulation) is present.

dear community, i have different recordings of a sequency of tones with increasing frequency. this tone sequence is repeated an...

ungefär en månad ago | 2 answers | 1

### 2

answersHow to find zero-state step response from a discrete time system?

if you are interested in the step response, your x(n) is 0 for n<0 and 1 else. y(n) is 0 for n<0. just iterate with a for loop ...

ungefär en månad ago | 0

| accepted

Question

Why does a sine bandwidth decrease with 1/dur, dur beeing the signal duration

Dear community, recently i was interested in the bandwidth of spectra. That's why i did some plots for signals with a single fr...

ungefär en månad ago | 2 answers | 0

### 2

answersAND in while loop

it should run if ~(a==1 && b==1) which would equal a~=1 || b~=1

6 månader ago | 0

Turning 1s to 0s in a logical vector when element distance between 1s is below threshold

you can try the follwing, but i don't know if it is faster H = [ 1 1 0 0 0 0 1 0 1 0 0 0 1 ]; eraseNAfter=5; Hstr=num...

6 månader ago | 0

| accepted

Find indices where runs of zeros and ones ends

i would use H = [0 0 0 0 1 1 1 1 0 1 0 1 0 0 0 0 0]; Hstr=erase(num2str(H),' '); [~,onesEnds]=regexp(Hstr,{'0000+','1111+...

6 månader ago | 1

| accepted

Funding a way to describe a curve in x y coordinates

you can use [rows,cols] = find(...) to get the corrdinates of your points. if you want to plot a shape you may have a look into...

6 månader ago | 0

calculating weighted sum of values in a matrix

short example for the weighting: each number is multiplied by its column index and row index in=ones(3,2); [X,Y]=meshgrid(1:si...

6 månader ago | 0

| accepted

Question

Parameters for room impulse response measurements using swept sine

hi all, I want to do get a rough idea of the acoustical impulse response of a room. This room is used by a choir and and I just ...

6 månader ago | 1 answer | 0

### 1

answerHow to chose the correct line style?

looks like you have to add a marker to your plot atcommand, then you do not only have lines but also markers during and the end...

6 månader ago | 0

How to adjust the view of colorbar to be the same as contourf

try that adding the colors to the image and add artificial labels using text close all; x = 100*rand(100,100); contourf(x,'Li...

6 månader ago | 1

Variables Calculated in Function Somehow Aren't Assigned to Output

looks like your two if statements are never fullfilled, thats why output variables are empty

6 månader ago | 1

| accepted

confusion during finding out the mean of a 3d vector

the short answer: your second approach takes mean values of means and the first approach takes the mean value of all elements

6 månader ago | 0

How to export coefficients of IIR filter from Filter Designer Tool?

go to Edit -> Convert to single section and then you can export them as numerator and denumerator

6 månader ago | 0

To compare to matrices element by element

you can compare matrix A and B directly using typical comparing operators A<B if the question is if there is any element of A ...

6 månader ago | 0

How to create a loop until the condition is met?

add the follwing at the beginning infLoop=1; while infLoop infLoop=0; % your code and that to the end o...

6 månader ago | 0

How to convert images as array to images and save them in folder

for a matrix A with ynum images in y direction and xnum images in x direction with size height x width you can use C = mat2...

6 månader ago | 0

Error scaling x-axis in Matlab?

your neural.Time variable is of type duration, then your xlim values have to be type duration too i guess

6 månader ago | 0

Percentage change in the Y axix for unit change in X axis

if you have y data along x you can calculate diff(y)./diff(x) to get the derivate. to get the pointswise percentage value divide...

6 månader ago | 0

need help making a 'for' loop to make a new matrix

your loop calculates the maximum value of a character array. since the character 'm' has value 109 (see double('m')) and your ch...

6 månader ago | 1

How to assign error bars to a multiple data sets histogram ?

use myBars=bar(1:6,Comparaison); this will give you a 1x2 bar in the variable myBars in this case. One bar object holds ...

6 månader ago | 1

Could anyone help me how to find the difference between the two columns in 10x2 double

use diff(A{1,1},1,2) to get all first order differences between columns for every row

6 månader ago | 0

i want to make comparison between two matrices elements after creating the two matrices.

you have access to cell entries e.g. by using x{1}(2,3); if your matrices have all the same size i would suggest saving them in...

6 månader ago | 0

How to set values to NaN when they AREN'T within the given indices

a=ones(3); [X,Y]=meshgrid(1:3); a(~(X==3 & Y==3))=NaN; which equals a(X~=3 | Y~=3)=NaN;

6 månader ago | 0

Delete/remove entire rows and columns containing an element that satisfies a condition (e.g. when the element is an imaginary number)

where=yourMatrix==yourCondition; yourMatrix(any(where,2),:)=[]; yourMatrix(:,any(where,1))=[]; or [row,col]=...

6 månader ago | 1

| accepted

What does this mean "No differences to display. The files are not identical, but the only differences are in end-of-line characters."

it's about on how the new line is stored. there are differences between different operating systems (OS). you can read more abou...

6 månader ago | 0

how to add a STAR or Triangle shape to plot simply without knowing their vertex?

smth. like that probably Z = peaks; contourf(Z); hold on; plot(15,10,'rp','MarkerSize',15,'MarkerFaceColor','r') al...

7 månader ago | 1

| accepted

Producing all combinations of a vector with replacement

you could e.g. use nchoosek(repelem(1:3,2),2) but then you whould have to use unique(...,'rows') on the resulting combin...

7 månader ago | 1