Réponse apportée
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...

presque 5 ans il y a | 2

Réponse apportée
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

presque 5 ans il y a | 0

Réponse apportée
How can I resample 3051.7578Hz data in 1000Hz?
use the interp1() function, it can also deal with non uniformly sampled data

presque 5 ans il y a | 0

Réponse apportée
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...

presque 5 ans il y a | 0

Réponse apportée
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

presque 5 ans il y a | 0

Réponse apportée
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...

presque 5 ans il y a | 0

Réponse apportée
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...

presque 5 ans il y a | 0

Réponse apportée
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

presque 5 ans il y a | 0

Réponse apportée
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

presque 5 ans il y a | 0

Réponse apportée
How can i get variable from loop and then use it.
use l(1)=x instead of l(1)=0;

presque 5 ans il y a | 0

Réponse apportée
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....

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Automatically fit a circle on an arc in image and to plot the circle in the image.
This may help you

presque 5 ans il y a | 1

| A accepté

Réponse apportée
How to convert A= [13;8;12;4;8;1;13;0;10;13;1;6;14;13;1;14;11;9;9;10;10;15] to B= [3 0 0 1 0 1 0 2 2 3 1 1 4 2 1]
use histcounts with integer bin method histcounts([13;8;12;4;8;1;13;0;10;13;1;6;14;13;1;14;11;9;9;10;10;15],'BinMethod','intege...

presque 5 ans il y a | 0

Réponse apportée
How to delete certain values below a function/plot?
do you mean you want to remove every y hat is smaller than gps? x(y<=gps)=[]; y(y<=gps)=[]; plot(x,y);

presque 5 ans il y a | 0

| A accepté

Réponse apportée
How to convert "cell array" to "character array"
the format 'A1' 'B1' 'C1' is not possible with character array, but 'A1B1C1' is possible: asCell={'A','B','C'}; charArray=[asCe...

presque 5 ans il y a | 0

Réponse apportée
Populate cell array with matrix that changes for each entry without a for loop
i suggest generating the matrix with the kronecker product and then converting into cell array: bValues=[1 4 8 2; 3 87 1 4]; t...

presque 5 ans il y a | 0

Réponse apportée
Deleting files downloaded during partial installation
you can try deleting the temporary files located in %userprofile%\AppData\Local\Temp and %systemroot%\Temp

presque 5 ans il y a | 1

| A accepté

Réponse apportée
read multiple excel files with beginning part of file name being similar
more something like that? for type=1:4 basepath='C:\Users\R101951\Desktop\RB\New folder\'; currFile=dir([basepath 'TH...

presque 5 ans il y a | 0

Réponse apportée
import images with timestamps label
this stores all file names without the '.jpg' ending in the cell array 'names' names=erase({dir('my/path/to/images/*.jpg').name...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
how to add or embed numbers (e.g 1 2 3 ...) into a binary image?
what exactly is your goal? do you want to insert binary numbers into the binary image or are you ok with a binary image as base ...

presque 5 ans il y a | 1

Réponse apportée
How to create moving text
you can move the text every now and then by changing the coordinates. e.g. data=randi(42,100,1); m=mean(data); plot(data); ...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Why Sounds in MATLAB (for example 'RockGuitar-16-44p1-stereo-72secs.wav') contains two identical rows of matrix?
there are two channels, one for the right speaker, one for the left (stereo). a mono signal would be one channel only, if you pl...

presque 5 ans il y a | 0

Réponse apportée
VERTCAT error when trying to populate array
try putting {} around the second line of concatenation dataCollectionAllCoke = [headings; {pixelValue, allCoke_R, allCoke_G...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
identifying and removing a double within a structure
maybe you thought about something like that. myStruct(1).myDoubleField=[1 2]; myStruct(2).myDoubleField=[1 2 3]; mySt...

presque 5 ans il y a | 0

Réponse apportée
Multiplying cell with a function call
trips is a cell array where each cells contains doibles you created earlier. if you want to calculate something with the content...

presque 5 ans il y a | 0

Réponse apportée
Audio Feature Extraction from .MAT file instead of .Wav files
if you have already stored the audio data in a mat file (meaning you have it already in an ordinary matlab variable) you can jus...

presque 5 ans il y a | 0

Réponse apportée
Can I insert more than one people to receive the alert email when my ID more than my setpoint?
yes you can, e.g. the sendmail() function supports multiple email addresses like sendmail({'recipient@someserver.com','reci...

presque 5 ans il y a | 0

Réponse apportée
High pass (and low pass) image filters with cutoff in “cycles per image”
habe a look into <https://de.mathworks.com/help/images/linear-filtering.html this> under frequency domain filtering. there you c...

presque 5 ans il y a | 0

Réponse apportée
How to modify one line of a matrix and get the entire matrix for result within the modification?
just assign the values like that: x=[1 2 3; 4 5 6]; x(1,:)=-x(1,:)

presque 5 ans il y a | 1

| A accepté

Réponse apportée
adding two ticks to form a horizontal line
if you want to add a horizontal line to you plot you can use yline. if you want a ytick at that specific value you can write yl...

presque 5 ans il y a | 0

Charger plus