Réponse apportée
How to remove repeating characters in a character array?
See unique.

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Why does legend goes to the back of the axes box in multiplots if you click it or move it with the mouse?
We can't reproduce the problem without having a minimal working example (e.g. something you provide us that we can run on our en...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
GUI refuses to close after starting a loop within it, only closes when I attempt to close MATLAB entirely
At quick glance, it appears that when you press the on/off button the app enters a while-loop and there is no exit to the loop s...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Summation of colonns from an imported table
You should organize your data within a timetable and use the retime function. TT2 = retime(TT1,newTimeStep,method) TT2 = retim...

presque 5 ans il y a | 1

Réponse apportée
How to I do sum my result value to a new result value, progressively? In a for loop
It sounds like you're describing a cumulative sum which does not need to be done within a loop. t = [100;100;100;100] ts = ...

presque 5 ans il y a | 0

Réponse apportée
Loren's blog on datastore. How should I use counterSize and done?
> I am trying to use datastore in Matlab v2018b but it does not have 'partialread'. partialreadFcn is a function defined in Lor...

presque 5 ans il y a | 0

Réponse apportée
Can Any one help me, how to import this function in matlab?
This uses a vector of inputs. f = @(x)(prod([x(1),x(2),x(3),x(5),x(3)-1])+x(4)) ./ (1 + x(2)^2 + x(3)^3); k = 5; % dem...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Define condition for both imaginary and real parts of numbers
x = pi + i if real(x)~=0 && imag(x)~=0 disp("YES") end

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Row and column of numbers in matrix
[rowNum, colNum] = find(matrix == value) Or, if you're working with floating point decimals, [~, minIdx] = min(abs(matrix - v...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
How to get the confidence interval for bootstrap?
Why are you sorting s in s=sort(s)? There's no need to manually eliminate the NaN values and there's no need to use a loop. ...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
How can I skip the first to lines from a text file and proceed to read the file with header lines in between the values?
You could use readtable and then eliminate the columns and rows associated with the header lines. T = readtable('https://www.m...

presque 5 ans il y a | 0

Réponse apportée
How to make a bar graph out of the first and second column of a matrix?
sleeprxn2= [ 0 0.6229 1.0000 0.3404 1.0000 0.2744 ] [groups, gro...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
How do I rotate the view of a cylinder created using surf plot?
Use makehgtform to translate and rotate the object. [X,Y,Z]=cylinder([0 3],1000); M=makehgtform('translate',___,'xrotate',___,...

presque 5 ans il y a | 1

Réponse apportée
I want to obtain the values of streamlines and put it into legend.
Your contour lines are all black so a legend of black lines would not be helpful to map the contour values to the plot. I recomm...

presque 5 ans il y a | 0

Réponse apportée
Will polyfit work with datetime vectors
I'm also looking for a solution to this and specifically am interested in the y-intercept of a simple linear fit so I can plot t...

presque 5 ans il y a | 0

Réponse apportée
remove the zeros in the Matrix
Here's how to remove rows or columns that contain only 0s data = [0 0 0 0; 0 4 5 2; 0 2 5 4; 0 2 4 1] rowsAll0 = all(data==0...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Adjust legend position outside the figure layout
Since you're using tiledLayout the best option is to specify the layout as shows in this example. lh =legend(__); lh.Layout.Ti...

presque 5 ans il y a | 0

Réponse apportée
Is there a better way to initialize the DataTipTemplate field in primitive objects?
I've had this problem with patch objects in the past and I solved it by doing something similar to what you suggested, making a ...

presque 5 ans il y a | 2

| A accepté

Réponse apportée
Divide date ticks into hours
Use xtickformat | ytickformat | ztickformat which sets the TickLabelFormat of the axes (Matlab R2016b or later) datetick(t...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
How do I round this datetime to the nearest 0.1 second?
dt = datetime(' 01-Oct-2020 04:49:10.350','Format', 'dd-MMM-uuuu HH:mm:ss.SSS') dtRound = dateshift(dt,'start','minute') + seco...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
Do not plot the shape in the middle and polar transformation
This demo uses a cleaned up version of your code and then does the following, Computes center of noisy circle Shifts noisy ci...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Finding the full width half maximum (FWHM) of a rounded part of peak instead of sharp peaks
This uses rmoutliers to remove the spike and then computes the FWHM of the resultant curve. You can play around with rmoutliers ...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
ttest and confidence interval
I assume you're intentionally avoiding the std() function. However, your calculation of standard deviation is incorrect. s=sq...

presque 5 ans il y a | 1

Réponse apportée
Difference between two statements
Good question. See this discussion and if you have any other questions or comments, let's continue the disucssion.

presque 5 ans il y a | 1

| A accepté

Réponse apportée
the function should find the min value in each row, when I run the code it doesnt print the correct answer. Anyone know whats wrong?
The function returns "A" which is the entire matrix. If you want it to return the minimum value, it should return "min". Howev...

presque 5 ans il y a | 0

Réponse apportée
How to keep menu open when selecting option
I have also found this default beahvior frustrating but I do not know a way to keep the menu open after making a selection. I s...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
How can I create another window from menubar in appdesigner ?
I suggest calling an input dialog window from the menu item's callback function. See inputdlg.

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Name Contour levels outside plot
The following demo produces a contourf plot extracts the coordinates of the contour lines determines which lines intersect w...

presque 5 ans il y a | 1

Réponse apportée
Removing "head" entry from doubly linked list
To achieve a circular list where the first and last nodes are circularly connected, follow these 2 steps. Step 1: Modify the c...

presque 5 ans il y a | 1

Réponse apportée
How I can use K-fold cross validation for training selection sequentially not randomly?
I suggest identifying each group with a grouping variable. groupID is the grouping variable. % Set these values n = 540; ...

presque 5 ans il y a | 0

| A accepté

Charger plus