photo

Kevin Xia


Active since 2017

Followers: 0   Following: 0

I am currently a Master's student in Aerospace Engineering/ Robotics. I have interned with Mathworks, and have used MATLAB and Simulink extensively.

Statistics

  • Knowledgeable Level 2
  • First Answer

View badges

Feeds

View by

Answered
How to insert new empty lines in middle of an exisiting text file
Try using the functions importdata and strjoin with '\n' as the delimiter. importdata will give output a cell array that you can...

mer än 7 år ago | 0

Answered
pks array going from 2 arguments to 1
Try the following: [pks,locs] = findpeaks(Sbb); if numel(pks)==2 Diff = abs(w(locs(1))-w(locs(2))); elseif numel...

mer än 7 år ago | 0

| accepted

Answered
Find index of specific ordered pair in layered matrix
Suppose that you want to find the row and column index where the second layer is -6 (A(1,1)) and where the third layer is -1 (A(...

mer än 7 år ago | 0

| accepted

Answered
I want to randomly select from a list of rows from a matrix to change the values
Try using randperm instead of randn. What randperm does is that it generates a random permutation from 1 to n. This can be usefu...

mer än 7 år ago | 0

| accepted

Answered
Detect the vertical and horizontal lines and than crop the area that is hand written
You can use bwconncomp and regionprops to find the centroids of each whitespace box. The centroids can be used to generate subim...

mer än 7 år ago | 1

Answered
how to divide image into 25 equal parts
You can use mat2tiles, which is available here for download: <http://www.mathworks.com/matlabcentral/fileexchange/35085-mat2til...

mer än 7 år ago | 0