Respondida
Delete rows in a table where data in one column is below a value
> I want to delet all rows where the value of the data in the 4th columns is less than 0.1. T(T{:,4}<0.1,:) = [];

más de 5 años hace | 0

| aceptada

Respondida
Replace elements in array
I wouldn't call this an algorithm. It's just indexing. If something more robust is needed we'll need a more detailed descripti...

más de 5 años hace | 0

| aceptada

Respondida
How can I compare a datetime array with a timetable to delete all not existing days in it?
To match dates while ignoring time, use ismember() along with dateshift() to ignore time. Demo: TT is a timetable with dat...

más de 5 años hace | 1

| aceptada

Respondida
Conditionals in Matlab app.designer?
Avoid using "==" to test equaltify for non-numeric and non-scalar values. For strings / character arrays, use, if strcmp(ap...

más de 5 años hace | 0

| aceptada

Respondida
Extract the column/ row numbers or adress
> I would like to get the information on column numbers which got the value 1 For logical row vectors or numeric row vectors c...

más de 5 años hace | 0

| aceptada

Respondida
error converting chars to string
Assuming Samples is a cell array Samples{m} = convertCharsToStrings(regexprep(Name, '\s+', '')); % ^ ^ If Samples isn't...

más de 5 años hace | 0

| aceptada

Respondida
How do I use fitgmdist with a set of data that is not in a histogram format
You could fit the distribution to a tri-modal mixture of gaussians but very little data and a very narrow peaks (1-2 bars), you'...

más de 5 años hace | 0

| aceptada

Respondida
How can I create three different subplots of a patch model, with different camera views?
Create the first subplot using subplot or tiledLayout. Plot your patch object(s) and set up the subplot to its final appearance...

más de 5 años hace | 0

Respondida
Combine vectors of different length into a matrix and perform ANOVA.
The dimensions you provided indicate that the vectors are row vectors, not column vectors. If you're performing a 1-ways ANOVA...

más de 5 años hace | 1

| aceptada

Respondida
make the XTickLabel mouse sensitive in UIAxes
This demo uses a ButtonDownFcn function on the axes to detect when the left mouse button selects an x-tick label. The selection...

más de 5 años hace | 1

| aceptada

Respondida
How to print same input file name as the output file name
How are you getting the input file name in the first place? If it's stored as a variable, use that variable to name the output ...

más de 5 años hace | 0

| aceptada

Respondida
How to divide a signal into windows using loops
y=randi(100,1,11439); % Integers used for easy comparison n = 16; % must be even windowStart = [1, n/2+1:n/2:numel(y)]; ...

más de 5 años hace | 0

| aceptada

Respondida
if any command to check table values
Assuming Y is a matrix, if any(Y>Threshold,'all') Conditional statements expect to recieve a scalar value. Your syntax was ...

más de 5 años hace | 0

| aceptada

Respondida
How to plot wind vectors with quivers on a latitude/logitude plot
There are various types of map functions and it's not clear which one you're using. Here's a demo showing a quiver plot on a ma...

más de 5 años hace | 0

Respondida
how to set axis with different interval ?
Two methods below show log scale and categorical x axes. data = [ 3 10 5 11 7 09 10 1...

más de 5 años hace | 0

Respondida
Why do I hear nothing? sound function
According to the documentation, the sound data (first input to sound()) is an mx1 or mx2 matrix. Your sound data are 1x2001. So...

más de 5 años hace | 0

| aceptada

Respondida
Deformed plots and extra windows plotting in matlab app.designer
You need to specify the axis handle. https://www.mathworks.com/matlabcentral/answers/503412-how-to-create-gui-plot-using-the-u...

más de 5 años hace | 0

| aceptada

Respondida
How can I connect the points on my graph?
You need to store the values within the loop and then plot them after the loop. The changes will look something like this inco...

más de 5 años hace | 0

| aceptada

Respondida
How to calculate how many plot tick would exist if the axis completely filled the figure
Given an axis within a figure, compute what the x and y axis limits would be if the axis extended to the edges of the figure. ...

más de 5 años hace | 0

| aceptada

Respondida
Printing cell array values as simple numbers?
Options to convert a 1xn cell array containing scalar numbers to a vector (or string) rng('default') % for reproducibility x ...

más de 5 años hace | 1

| aceptada

Respondida
How to do correlation from data with series
You can use xcorr and indexing. t=[21,22 ,323,43,231,53,23,12,53,12]; c=[23,12 ,223,333,21,63,24,23,763,14]; p=["1","1","1",...

más de 5 años hace | 1

| aceptada

Respondida
Centroid of two arrays
I agree that the documentation on describing the inputs could be more specific. Look at the examples in the documentation for c...

más de 5 años hace | 0

| aceptada

Respondida
Cannot share my MATLAB online files to others.
Place the shared content within a folder and share the folder. https://www.mathworks.com/help/matlabdrive/ug/share-and-collabo...

más de 5 años hace | 0

| aceptada

Respondida
Count number of values of a Matrix inside a range and plot it
bins = [0,3,4,5,15]; h = histogram(B(:),bins); To get the counts within each bin, h.Values

más de 5 años hace | 0

| aceptada

Respondida
How to calculate the number of times the values of a column changes
This demo matches your 2nd example. This temporarily breaks up the table into sub-tables based on the ID and loops through eac...

más de 5 años hace | 0

| aceptada

Respondida
How to declare a global variable in Startup function of matlab app.designer
Do not use global variables, especially in AppDesigner. Instead, declare a public or private property accessible anywhere wit...

más de 5 años hace | 0

| aceptada

Respondida
Create table from data
Summary of comments under the question, Instead of initializing T as an empty cell, use an empty table. T = table(); A1 = ...

más de 5 años hace | 0

| aceptada

Respondida
Compare for uniqueness between 2 very large matrices
To determine if two arrays are 100% identical, use isequal or isequaln to ignore NaN values. To determine if columns in matri...

más de 5 años hace | 0

Respondida
Plotting random points within Boundary
If you have the perimeter coordinates, you can create a bunch of random numbers and then eliminate the ones outside of the perim...

más de 5 años hace | 0

Respondida
I can't randomly distribute the dots
> I want you to be like the image of a building collapsed in an earthquake. Height points scatter all over the x and y axes Wha...

más de 5 años hace | 0

Cargar más