Réponse apportée
Multiple sine periods with a specific fundamental frequency
%%Time specifications: Fc = 100; % fundamental Fs = 20*Fc; % sampling rate dt = 1/Fs; % sampling period StopT...

plus de 6 ans il y a | 1

Réponse apportée
How to display unique error message in function code?
You need to manually check the input arguments yourself. For example: function returnVec = repvec(vec, s) if ~isvecto...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Invalid Index in position 2
First, rename the variable eps to something else, because you are overloading the built-in Matlab function eps() which is bad pr...

plus de 6 ans il y a | 0

Réponse apportée
How to create groups by using labels?
I don't recommend making variables dynamically for various reasons, but making a struct is fine to do, and can even make fieldna...

plus de 6 ans il y a | 0

Réponse apportée
finding the intersection for a trace to a threshold
You can get the closest data points on either side of the threshold very easily. location = threshold >= data; % locati...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Delete specific rows in table
T(T.cell_type~=4,:) = []; % where T is the name of your table

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Loops, Arrays, Average, and 3D shapes display help? please and thank you
I suggest you take the <https://www.mathworks.com/learn/tutorials/matlab-onramp.html MATLAB onramp course.>

plus de 6 ans il y a | 0

Réponse apportée
what does the string #ok<NASGU> mean in the code editior
Matlab's code analyzer, mlint, includes a wide range of warning messages about possible problems or inefficiencies in the analyz...

plus de 6 ans il y a | 3

| A accepté

Réponse apportée
cut video with beginning and end frame number
I'm not sure the size of your video data, but observe the following: x = rand(50,60,1000); whos x % x = [50, 60, 100...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to split vibration data into different cycles
Perhaps an even easier method is to use a moving RMS calculation over a small time window. You should know what a reasonable rms...

plus de 6 ans il y a | 3

| A accepté

Réponse apportée
How to split vibration data into different cycles
So there are lots of ways to do this. Surely you could use one of the Name/Value pairs of findpeaks to help (like Threshold or M...

plus de 6 ans il y a | 1

Réponse apportée
How to split vibration data into different cycles
This will depend on the characteristics of your vibration signal. Is it periodic and continuous vibration, where there is a cons...

plus de 6 ans il y a | 1

Réponse apportée
How to save the output from a while loop?
Your question is unclear, and it seems you are a beginner to Matlab. I would suggest doing the Matlab on-ramp course. It should ...

plus de 6 ans il y a | 0

Réponse apportée
Prevent function from printing to command window?
doc evalc

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Select next discrete cell by vector direction
You have the distance to each cell as the following: [x,y,z] = ndgrid(-1:1); R = [z(:),y(:),x(:)]; R(14,:) = []; % since you ...

plus de 6 ans il y a | 2

| A accepté

Réponse apportée
Multiplying every secound element in a vector with -1
Here is another way: function vny = byt_tecken(v) vny = v.*-(-1).^(1:numel(v)); end

plus de 6 ans il y a | 3

A résolu


Upper triangular matrix
Create a function to retrieve the upper triangular matrix of a matrix (without using tril). The matrix will always be square. ...

environ 7 ans il y a

A résolu


Array of Ones
Create a 100 X 100 array of ones.

environ 7 ans il y a

A résolu


Triangular matrices in 3D array
Given a 3D numeric array _x_, return an array _y_ of the same size in which all entries to the right of the main diagonal are ze...

environ 7 ans il y a