Tejas
Followers: 0 Following: 0
Statistics
RANK
22,130
of 295,467
REPUTATION
2
CONTRIBUTIONS
15 Questions
2 Answers
ANSWER ACCEPTANCE
60.0%
VOTES RECEIVED
2
RANK
of 20,234
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 153,912
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Question
Improving efficiency of using tables
A simple working example of my code is given below. % Initialization num = 10; time_limit = 10000; agent = array2table(zeros(...
3 years ago | 1 answer | 0
1
answerQuestion
Get indices of all rows containing a value - repeated or not
Say I have the following id = (1:5)'; rng(1); x = randperm(10,5)'; y = randperm(10,5)'; nodes = table(id,x,y) connections ...
3 years ago | 1 answer | 0
1
answerQuestion
Remove a string from another string
I have two strings like 'bio-inspired' and 'bioinspired'. I want to essentially subtract one string from another and get '-' in ...
3 years ago | 2 answers | 0
2
answersShortest path constrained to use specific nodes
Okay, I realised if I assign weights like: G = graph([1,2,3,4,5],[2,3,4,5,1],[Inf,1,1,1,1]); Then I do get shortestpath(G,1,3...
3 years ago | 0
Question
Shortest path constrained to use specific nodes
Let's say I have a simple graph: G = graph([1,2,3,4,5],[2,3,4,5,1]); I want to find the shortest path from 1 to 3. The shortes...
3 years ago | 3 answers | 0
3
answersQuestion
Alternative to using structs as reduction variables in parfor loop
My code initializes a struct (say init_s) with about 9 fields before going into a parfor loop of iterations (as s). Over a singl...
4 years ago | 1 answer | 0
1
answerpdist2 with wrapping
I have the following manual (and rugged) method for this question, while someone formulates an elegant and efficient solution. T...
4 years ago | 0
Question
pdist2 with wrapping
I have a square area of gridpoints and I'm trying to create a graph where each point is joined to its neighbouring points based ...
4 years ago | 2 answers | 0
2
answersQuestion
Find words common across multiple string cells
I have a cell array where each cell has a string of different length, and each string is essentially a column of single words. S...
4 years ago | 1 answer | 0
1
answerQuestion
Form maximum unique squares with centers in a given area
I have an array attached to this question. This array is composed of gridpoints converted into indices for a 100x100 area. Doing...
4 years ago | 0 answers | 0
0
answersQuestion
Arrange words and phrases separated by semi-colon into a single column
I am analyzing some journal articles using their keywords. I extracted the keywords from a publication, and they have been saved...
4 years ago | 1 answer | 0
1
answerQuestion
Using struct as a reduction variable in parfor loop
I have a code which, simply put, runs in the following way %Previous code from which the structs p, a, fa, s are initialized. T...
4 years ago | 1 answer | 1
1
answerQuestion
Call fields of struct more efficiently in a loop
I want to do the following more efficiently. vec.time = [1000,5000]; vec.nest = {'center','corner'}; vec.grid = [50,100,1000]...
4 years ago | 1 answer | 0
1
answerQuestion
If expression to check whether a particular function has been called
What should I write in the expression for the 'if' statement when I want to check if the script has called a particular function...
4 years ago | 1 answer | 0
1
answerQuestion
Coordinates of the shortest path between two points in a 2D grid
I have a square grid of a specific size, say 50 x 50. There are two points, a source, say (1,1), and a destination, say (26,35)....
4 years ago | 3 answers | 1
3
answersQuestion
Plot surfaces with random peaks
I'm working on a project where I want to run random walks on 3D surfaces with multiple peaks. In order to do this, I'm looking f...
4 years ago | 1 answer | 0
1
answerQuestion
Update workspace variables in a loop
I'm running a for loop in which, at the end of every iteration, a graph is plotted. I need to see the changes happening over the...
4 years ago | 0 answers | 0