Answered
Surf plot and colorbar are overlapping
your colorbar c has also a Position property, read it once to get an idea if the current magnitude of numbers and change it in s...

22 días ago | 0

Question


Measuring the absolute deviation from a group median with median removal
dear community, I have multiple groups of numbers, each group has 3, 4 or 5 numbers. I want to analyze the absolute deviation o...

25 días ago | 0 answers | 0

0

answers

Answered
Error when opening property inspector in 2022a
from the comments: i tried also another figure and there the error persists (or persisted) what ever, after restarting matlab,...

26 días ago | 0

| accepted

Question


Error when opening property inspector in 2022a
dear community, when i open my property inspector from the menue of a figure, i get the following error Dot indexing is ...

26 días ago | 1 answer | 0

1

answer

Answered
How to select rows in a matrix based on the values in another matrix?
use [~,ia,ib])=intersect(A(:,1), B(:,1)); A(ia,:) B(ib,:)

26 días ago | 1

Answered
I want to change my code to a code like the one in the picture below, but how can I modify it?
are you searching for something like that: close all; fs=4000; t=0:1/fs:0.8; myData=[0 3; 0.2 -2; 0....

28 días ago | 1

| accepted

Answered
Count the number of times a word begins with "co" in a text using Text Analytics Toolbox
are your searching for something like in this example, applied to your textData? a={'cotrol', 'alcotro','conect','trial','co'};...

alrededor de 1 mes ago | 0

| accepted

Answered
textscan error only in loop: "Invalid file identifier. Use fopen to generate a valid file identifier"
use fclose(fid) at the end of the for loop sometimes, if using a script a file remains open and you may not have the identifier...

alrededor de 1 mes ago | 0

Question


How to disable uicontrol 'mouseless' interaction
Dear community, at the moment I'm creating a gui using normal figures and uicontrol elements. One side is a plotting window in ...

alrededor de 1 mes ago | 2 answers | 0

2

answers

Answered
plotting piecewise periodic function
you could generate the values for one cycle and then repeat the values using repmat()

5 meses ago | 0

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

5 meses 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...

5 meses ago | 2 answers | 1

2

answers

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

5 meses 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...

5 meses ago | 2 answers | 0

2

answers

Answered
AND in while loop
it should run if ~(a==1 && b==1) which would equal a~=1 || b~=1

10 meses ago | 0

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

10 meses ago | 0

| accepted

Answered
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+...

10 meses ago | 1

| accepted

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

10 meses ago | 0

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

10 meses 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 ...

10 meses ago | 1 answer | 0

1

answer

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

10 meses ago | 0

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

10 meses ago | 1

Answered
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

10 meses ago | 1

| accepted

Answered
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

10 meses ago | 0

Answered
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

10 meses ago | 0

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

10 meses ago | 0

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

10 meses ago | 0

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

10 meses ago | 0

Answered
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

10 meses ago | 0

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

10 meses ago | 0

Load more