Community Profile

# Jonas

Last seen: Today Active since 2020

Programming Languages:
C++, Java, MATLAB
Spoken Languages:
English, French, German

All

#### Content Feed

View by

Joining two columns and exporting to excel
use mat2cell before joining them! [mat2cell(A) mat2cell(B)]

1 día ago | 0

Double condition to find index
myData=...; fs=2000; minLength=ceil(fs*0.05); highVals=myData>20; searchFor=conv(highVals,ones(1,minLength),'s...

2 días ago | 0

Extracting multiple row values (with unequal range) in a column separately
dat=readmatrix('saf_wind.csv'); dat(dat==9999)=[]; whereIsNan=find(isnan(dat)); yourMeans=zeros(1,numel(whereIsNan)+1); for ...

3 días ago | 1

Question

Speeding up fread for random position in big file
dear community, at the moment i need to read one or multiple image(s) from a big data file. since I build a live data viewer an...

4 días ago | 3 answers | 0

### 3

I want to replace the hyphens with en dashes in a plot axes.
i suggest you have a look into the yticklabels() and xticklabels() and do some replacement of '-' with the en dash char(0x2013)....

4 días ago | 0

| accepted

Question

Results of math with integer
Dear community, I recently had to work with uint8 and did some simple calculations over it. I tought using integer math tells t...

5 días ago | 1 answer | 0

### 1

Al estar trabajando la grafica no aparece, se abre la ventana pero solo aparece la cuadricula sin ningun tipo de lineas
use RC./V instead of RC/V to divide element by element

5 días ago | 1

| accepted

Unit Step Funtion Without using heaviside function
you could go over the integration of the delta function, which is the heaviside function: t=-5:5; ds=[0 1 1 1 1 0 -1 -1 ...

5 días ago | 0

Frequency problem between reality and analysis
the nyquist theorem tells that you need to sample a wave at least two times to reproduce it without errors. Or in other words, i...

7 días ago | 0

| accepted

How to code difference quotients in matlab?
elementwise differences of consecutive elements can be calculated using diff() command

13 días ago | 0

| accepted

Rename Struct Fields Old Function
the question is not if your fieldnames are scalar but if the struct is scalar. you will not have any problems if the atruct has ...

18 días ago | 0

| accepted

direction of Y Axis is changing
calling set(gca,'XDir','normal'); should be enough

alrededor de 1 mes ago | 0

what (:, :, :) syntax does?
u=round(ginput(2)); gets two points with rounded x and y values. the values are stored as [x1 y1; x2 y2] it follows that...

alrededor de 1 mes ago | 0

| accepted

Question

Is there an easy way to remove points from a signal which can be restored by interpolation
Dear community, I gues there is already a solutio nout there, but I am not finding the right key wordsw to google it myself: I...

alrededor de 1 mes ago | 1 answer | 0

### 1

How to create random matrix with specified step in interval [a, b]
generate a matrix with random integer values using randi. The spacing will be 1, you can then multiply the values by 3 to get sp...

alrededor de 1 mes ago | 0

Create a new column in the table with conditional values ​​of 1 or 0
you could use LLT.newVar=LLT{:,6}<=5 or LLT.newVar=LLT.Odstub_s_<=5; but i cannot see the whole variable name ...

alrededor de 1 mes ago | 0

| accepted

Question

Matlab system command produces output on matlab command line
Dear community, I am using Matlab's system() command to call an external Program (Praat) to run a (Praat) script. I didn't want...

alrededor de 1 mes ago | 0 answers | 0

### 0

How to write 10^(-6) in xlabel?
you need { } around an exponent which is more than one character e g. xlabel('$\times 10^{-6}$','Interpreter','latex')

alrededor de 1 mes ago | 0

| accepted

find the delay between two signals
use xcorr(sig1,sig2), and use the max value of xcorr. the corresponding delay can be found at the corresponding value in the lag...

alrededor de 1 mes ago | 1

| accepted

plotting title with multiple strings on one line
this works for me title("abc\_def.h5" + " and " + "ghi\_jkl.h5"); a concatenated string in one line

alrededor de 1 mes ago | 0

How to rename a flash drive using matlab?
this is possible via windows command line. You can access the windows command line via matlab using the system() command sy...

alrededor de 2 meses ago | 1

| accepted

Hi, can you show me how I could Extract the third and fourth elements of the cell array M?
how do you count in the matrix? M{[3 4]} gives you the content of cell 3 and 4

alrededor de 2 meses ago | 0

How to remove duplicate x-values and rearrange the y-values?
use yourMat=[ [4; 1; 1; 2; 3; 3; 5; 10 ], rand(8,4)]; [~,index]=unique(yourMat(:,1),'stable'); % get unique values from the fi...

alrededor de 2 meses ago | 0

How do I extract data from a uicontrol edit field within an app?
does this work better for you: d = dialog('Position',[710 390 500 225],'Name','Team Name'); global team; team=''; txt = ...

alrededor de 2 meses ago | 0

Why atteunation of the cut-off frequency is 6dB in MATLAB filter Designer
sounds like you have a filter ehich has a attenuation slope of 6dB/octave (doubling of frequency). Assuming you want to keep the...

alrededor de 2 meses ago | 0

mirroring a magnitude response of a filter from -1 to 1
use plot([-w(end:-1:2) w],abs([h1(end:-1:2); h1])) i mirror only down to index 2 because index 1 is the 0 Hz component, ...

alrededor de 2 meses ago | 1

| accepted

Running into error when using pwelch for FFT
[ sensor_spectrum, freq] = pwelch(samples,w,NOVERLAP,NFFT,Fs); should be [sensor_spectrum, freq] = pwelch(snips,w,N...

alrededor de 2 meses ago | 0

Need help with generating an echo for an Audio signal
just append zeros to the original signal, prepend the same amount to a copy of your original to generate the echo and add them u...

alrededor de 2 meses ago | 0

Problem Creating Structure Field with For Loop
struct are indexed with round brackets, after that use {} if the structure field file_name_string shall be a cell for j = 1...

alrededor de 2 meses ago | 0

| accepted