![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/8209590_1525672426576_DEF.jpg)
Nithin Banka
自 2018 起处于活动状态
Followers: 0 Following: 0
Feeds
已回答
Can I store row numbers of a matrix in a column without using any loop?
a = magic(3); a(:, 1) = [1:3]; % This will store the row index in the first column of 'a'
Can I store row numbers of a matrix in a column without using any loop?
a = magic(3); a(:, 1) = [1:3]; % This will store the row index in the first column of 'a'
6 years 前 | 0
| 已接受
已回答
calculate the percentage of B&W image
If 'BW' is your binary threshold image, pix = size(BW); no_of_pix = pix(1)*pix(2); no_of_white_pix = sum(sum(BW==1));...
calculate the percentage of B&W image
If 'BW' is your binary threshold image, pix = size(BW); no_of_pix = pix(1)*pix(2); no_of_white_pix = sum(sum(BW==1));...
6 years 前 | 0
已回答
Remove for loop and reduce time
if true edges_a=min(ac1):1.25:max(ac1); grp_ac=discretize(ac1,edges_a); len = length(edges_a); aux...
Remove for loop and reduce time
if true edges_a=min(ac1):1.25:max(ac1); grp_ac=discretize(ac1,edges_a); len = length(edges_a); aux...
6 years 前 | 1
已回答
How to avoid for nested loops with if condition?
I don't think you need to use 'for' loop. The 2 'if' statements can be easily handled in MATLAB. index_of_1_in_id_and_RR = ...
How to avoid for nested loops with if condition?
I don't think you need to use 'for' loop. The 2 'if' statements can be easily handled in MATLAB. index_of_1_in_id_and_RR = ...
6 years 前 | 0
已回答
draw lines between specific points with known length
from what I have understood, you want to plot different line segments connecting points from your data. I took an example to exp...
draw lines between specific points with known length
from what I have understood, you want to plot different line segments connecting points from your data. I took an example to exp...
6 years 前 | 0
| 已接受
已回答
How to get pdist() values of all the rows of a matrix with respect to a row of the same matrix?
diffX = X - X(1, :); yourReqOutput = sqrt(sum(diffX.^2, 2));%first row will be 0 as it is distance from itself.
How to get pdist() values of all the rows of a matrix with respect to a row of the same matrix?
diffX = X - X(1, :); yourReqOutput = sqrt(sum(diffX.^2, 2));%first row will be 0 as it is distance from itself.
6 years 前 | 0
已回答
Problems with drawing diagrams in MATLAB
Refer to <https://www.mathworks.com/help/matlab/ref/hold.html Hold> documentation. Example: x = linspace(-pi,pi); y1 ...
Problems with drawing diagrams in MATLAB
Refer to <https://www.mathworks.com/help/matlab/ref/hold.html Hold> documentation. Example: x = linspace(-pi,pi); y1 ...
6 years 前 | 0
已回答
Plot where x axis is the date, Part 2 (edited)
Assuming that you have the same number of data points as the number of dates. Create a datetime vector for the duration and plot...
Plot where x axis is the date, Part 2 (edited)
Assuming that you have the same number of data points as the number of dates. Create a datetime vector for the duration and plot...
6 years 前 | 0
已回答
How do i copy a one matrix into another ignoring the ''NAN' elements in the matrix?
if 'a' is your 1st matrix, 'b' is your 2nd matrix, a = [17 24 1 8 15; 23 5 7 14 16; ...
How do i copy a one matrix into another ignoring the ''NAN' elements in the matrix?
if 'a' is your 1st matrix, 'b' is your 2nd matrix, a = [17 24 1 8 15; 23 5 7 14 16; ...
6 years 前 | 0
已回答
How to close the webcam after the image has been captured?
If the webcam object you are using to capture images is say 'camObject' use the below command to close the webcam clear ca...
How to close the webcam after the image has been captured?
If the webcam object you are using to capture images is say 'camObject' use the below command to close the webcam clear ca...
6 years 前 | 2