Programming Languages:
C++, C, Java, Javascript, MATLAB, SQL, HTML, CSS, Arduino, Shell, Assembly, Fortran
Spoken Languages:
English
C++, C, Java, Javascript, MATLAB, SQL, HTML, CSS, Arduino, Shell, Assembly, Fortran
Spoken Languages:
English
Statistics
All
RANK
8,514
of 300,331
REPUTATION
5
CONTRIBUTIONS
1 Question
5 Answers
ANSWER ACCEPTANCE
100.0%
VOTES RECEIVED
1
RANK
of 20,920
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Question
In a (possibly directed) graph, is there a simple way to find all nodes reachable for a given node?
I've recently started working with MATLAB graphs. In two recent problems, I have graphs which are not known to be connected eve...
7 months ago | 2 answers | 1
2
answersAnswered
Does matlab have any function that can compare multiple numbers and return logical value zero or one?
With a vector of singles or doubles, you could use ~std([a b c d]). If all the values are the same, the standard deviation will...
Does matlab have any function that can compare multiple numbers and return logical value zero or one?
With a vector of singles or doubles, you could use ~std([a b c d]). If all the values are the same, the standard deviation will...
3 years ago | 0
Answered
How to search for substring in cell array and get the corresponding index then?
If I'm understanding correctly, cellfun(@numel,strfind(string(val),"EXPERIMENT")) will give you a matrix with 1's where th...
How to search for substring in cell array and get the corresponding index then?
If I'm understanding correctly, cellfun(@numel,strfind(string(val),"EXPERIMENT")) will give you a matrix with 1's where th...
3 years ago | 0
Answered
Removing duplicate rows (not "unique")
%Here's a much cleaner way to do it with 2019a or later! [B,BG]=groupcounts(A); A_reduced=BG(B==1); % or just A if you want th...
Removing duplicate rows (not "unique")
%Here's a much cleaner way to do it with 2019a or later! [B,BG]=groupcounts(A); A_reduced=BG(B==1); % or just A if you want th...
3 years ago | 0
Answered
Calculating GeoMean of a double array
% Here's some data for a sample A=magic(4) % And here we'll calculate the geometric mean of each column vect=prod(A,1).^(1/...
Calculating GeoMean of a double array
% Here's some data for a sample A=magic(4) % And here we'll calculate the geometric mean of each column vect=prod(A,1).^(1/...
3 years ago | 0
| accepted
Answered
How to append arrays of different lengths
What about something like: function cat=horzcat_pad(a,b); % How long is the longer matrix? longer=max(length(a,1),lengt...
How to append arrays of different lengths
What about something like: function cat=horzcat_pad(a,b); % How long is the longer matrix? longer=max(length(a,1),lengt...
3 years ago | 0











