Community Profile

# Asher Zaidi

Actif depuis 2018

Followers: 0   Following: 0

#### Feeds

Afficher par

Question

How to delete elements from a struct array?
I have a large struct array: >> statsDefects.Area ans = 25 ans = 23 ... How can I remove all numbers th...

presque 6 ans il y a | 1 réponse | 0

### 1

réponse

Question

How can I plot the diameters of an irregularly shaped region in an image?
This is my code: props = regionprops(BW, 'Area', 'Perimeter','Centroid','EquivDiameter'); allAreas = [props.Area]; allPer...

presque 6 ans il y a | 2 réponses | 0

### 2

réponses

Question

How can I extract and highlight the white portion of an image?
How can I extract the white portion of an image (see attached), or delete the black portion so that I have only the holes in the...

presque 6 ans il y a | 1 réponse | 0

### 1

réponse

Question

How to plot datetime array?
I would like to plot a vector, r, as a function of time. The two vectors I have are: r' 1.0e+03 * 0.0179 ...

presque 6 ans il y a | 2 réponses | 0

### 2

réponses

Question

How to convert datetime vector to military time
This is my code: files = dir('*.xlsx'); for i=1:10 [~, ~, raw] = xlsread(files(i).name); rawm = raw(5:6,1); ...

presque 6 ans il y a | 1 réponse | 0

### 1

réponse

Question

How to delete contents of matrix only if it has 2 elements?
If p = [55;56], and I want to set it to one value (ex. p = 55), how can I write an "if" statement that does this using elements?...

presque 6 ans il y a | 1 réponse | 0

### 1

réponse

Question

How can I add a different string to each element in a matrix?
I have a (soon to be) large vector and I want to add a string before each element, something like: "Data Trial 1 - (1st vecto...

presque 6 ans il y a | 1 réponse | 0

### 1

réponse

Question

How can I import multiple Excel files?
files = dir('*.xls'); for i=1:length(files) x = eval(['importdata(files(i).name)']); z1 = x.data(:,5); %grabs colum...

presque 6 ans il y a | 1 réponse | 0

### 0

réponse

Question

How to import data from multiple files into MATLAB?
I have multiple text files that I need to import into MATLAB so that I can analyze the data. Here is what I have so far: %% ...

presque 6 ans il y a | 1 réponse | 0

réponse