Community Profile

photo

Asher Zaidi


Active since 2018

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

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...

6 years ago | 1 answer | 0

1

answer

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...

6 years ago | 2 answers | 0

2

answers

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...

6 years ago | 1 answer | 0

1

answer

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 ...

6 years ago | 2 answers | 0

2

answers

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); ...

6 years ago | 1 answer | 0

1

answer

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?...

6 years ago | 1 answer | 0

1

answer

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...

6 years ago | 1 answer | 0

1

answer

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...

6 years ago | 0 answers | 0

0

answers

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: %% ...

6 years ago | 1 answer | 0

1

answer