# Jonas

**Statistics**

RANK**206**

of 239.084

REPUTATION**342**

CONTRIBUTIONS

**2** Questions

**149** Answers

ANSWER ACCEPTANCE **
50.0%
**

VOTES RECEIVED**38**

RANK**16.514** of 16.797

REPUTATION**0**

AVERAGE RATING**1.00**

CONTRIBUTIONS**2** Files

DOWNLOADS **2**

ALL TIME DOWNLOADS**3**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

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

ein Tag 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...

2 Tage 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

2 Tage 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

2 Tage 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

2 Tage 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 ...

2 Tage 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...

2 Tage 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...

2 Tage 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

3 Tage 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...

3 Tage 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...

3 Tage 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 ...

5 Tage 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

5 Tage 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 Tage 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 Tage 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]=...

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

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

8 Tage 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...

10 Tage ago | 1

How to add a second x-axis on top in plot?

<https://de.mathworks.com/matlabcentral/fileexchange/317-plotxx-m this> may be the function you are searching for

11 Tage ago | 0

How can I resample 3051.7578Hz data in 1000Hz?

use the interp1() function, it can also deal with non uniformly sampled data

11 Tage ago | 0

can anyone explain how to do this

so if you put 8kg on the spring it moves 175mm down and does not move further. this means there is a force equlibrium between th...

12 Tage ago | 0

time scaling, how to remove fraction in the below code? or give another code for discrete x[0.5n] ?

if you want x[0.5n] you have to calculate n1=1/0.5 * n

13 Tage ago | 0

Trying to use retime to sum daily values, but I don't want days that only have NaN values to become 0

weird, the normal behavior of sum is giving NaN if at least one of the summed values is NaN. try @sum instead of 'sum' and if th...

13 Tage ago | 0

How to shift all the pixels position by a specific function and recreate the image of shifted pixel values?

for the shifting have a look into circshift() which allows you to shift all elements by specific amounts along x and y. for t...

14 Tage ago | 0

Subtracting a value from a table column

small example: % table with Var1 and Var2 a=table((1:1000)',(2001:3000)'); a.Var1(a.Var1>360)=a.Var1(a.Var1>360)-360

15 Tage ago | 0

How do you select elements of one cell array based on the contents of another cell array?

lower your aim value by half your error interval and half your error interval -> 0.250-(0.02/2)+0.02/2 & 0.250-(0.02/2)-0.02/2

15 Tage ago | 0

How can i get variable from loop and then use it.

use l(1)=x instead of l(1)=0;

15 Tage ago | 0

Filter out combinations of letters

do you mean the case if the three letters that occur are D, I and C? in=['D3I2C7';'B4H8R1']; out=regexprep(cellstr(in),'D.I.C....

15 Tage ago | 1

| accepted

Automatically fit a circle on an arc in image and to plot the circle in the image.

This may help you

15 Tage ago | 1

| accepted