Community Profile

photo

Will Kinsman


22 total contributions since 2015

Contact

Will Kinsman's Badges

  • Thankful Level 2

View details...

Contributions in
View by

Question


character array vs cell array empty cells
I have an array, which is identified by iscell() as a cell array but behaves like a character array: 'jan 7' '2' '' ...

3 years ago | 1 answer | 0

1

answer

Question


A lagged javascript function prevents webread from getting all data from a webpage. Resolve?
So I am trying to get earnings dates from Yahoo. Their API does not have references for this, however their webpage runs a javas...

3 years ago | 0 answers | 0

0

answers

Question


Fastest way to cycle through a structure for a number
given: a structure and a double return: the index of a structure that has that number data: structure(1).val = 50 st...

3 years ago | 2 answers | 0

2

answers

Question


Fastest way to determine if a character index is a carriage return (\n)?
Hi all. 1.15 seconds per 100,000 iterations: if regexp(text(index),'[\n]','once') y = 1; else y = 0; ...

3 years ago | 2 answers | 0

2

answers

Question


Puzzler: Count unique nonzero periods in a timeseries without a for loop
given: a signal as a time series return: discrete number of times is is holds a nonzero position For example: given: ...

3 years ago | 2 answers | 0

2

answers

Question


how to identify a fitglm output as being rank deficient from the resulting object
My question is as follows: I am running a very large number of multivariable regressions. My problem is that sometimes these...

3 years ago | 1 answer | 0

1

answer

Question


How can I get all text from a website, NOT the html of the website?
What I would like: Given: url (e.g. www.google.com) Return: All text. This would be the equivalent of ctrl+A in a brows...

3 years ago | 1 answer | 0

1

answer

Answered
How to output a vector that is the sum of each slice or page from a 3D array on GPU
Solution: array = ones(3,3,5,'gpuArray'); % create a 3x3x5 array of ones on GPU array = sum(array); % su...

3 years ago | 0

Question


How to output a vector that is the sum of each slice or page from a 3D array on GPU
_i7 quadcore, GTX Geforce 960 running CUDA driver, Matlab 2014b_ My process I am trying to accomplish: # Send a 3D array t...

3 years ago | 2 answers | 0

2

answers

Question


Pass a connection to a database inside of a parfor loop, within a function
I am trying to open and close a function within a parfor loop, within a function: lets look at an example: a = 1; conn ...

3 years ago | 0 answers | 0

0

answers

Answered
Mode of table sizes within a structure
With a little modification the above solution worked with acceptable speed

3 years ago | 0

| accepted

Question


Mode of table sizes within a structure
I have a structure we will call 'structure'. it has tables in it of varying sizes. i want to find the mode of the table sizes wi...

3 years ago | 1 answer | 0

1

answer

Question


datainsert is throwing an error due to a preexisting primary key. How can I make it keep going on error?
In using datainsert, I am inserting about 50k rows into my database (mySQL,JDBC). My problem is that I keep on getting thrown er...

3 years ago | 0 answers | 0

0

answers

Answered
How to go from a char that is a CSV to a cell array
After messing around a little bit it seems to me that the simplest solution may to be: outputcellarray = readtext(inputchar...

3 years ago | 0

Question


How to go from a char that is a CSV to a cell array
Hello all, I have a char variable that is essentially a CSV file, however all attempts to turn it into a cell array (through ...

3 years ago | 2 answers | 0

2

answers

Question


webread is not getting all text on a website
Hi all, I am trying to build a program to get the plain text from a website. The issue I am encountering is that webread does...

3 years ago | 1 answer | 0

1

answer

Answered
finding carriage returns (i.e. \n) in a text file
thank you so much. nailed it. Nothing better than the matlab forums.

3 years ago | 0

Question


finding carriage returns (i.e. \n) in a text file
Hi all, I have a text file with carriage returns in it, and am trying to test if an index is a carriage return but have been un...

3 years ago | 4 answers | 0

4

answers

Answered
How may I dynamically refer to a loaded mat array to modify or save it
The code ended up looking like this and used the eval() function function addtolist(list,string) filename = [list '.ma...

3 years ago | 0

Question


How may I dynamically refer to a loaded mat array to modify or save it
I am trying to write a simple piece of code where I provide a function with a list name (as a string) and a new string to add to...

3 years ago | 3 answers | 0

3

answers

Answered
How do I search for a string in a text file that has carriage returns within the string
str = regexprep(str,'\r\n|\n|\r',' ') or strtrim to remove formatting from the string and THEN doing a string search solves...

3 years ago | 0

| accepted

Question


How do I search for a string in a text file that has carriage returns within the string
I have a text file I am trying to locate strings. Lets say that the txt file looked like this: 'hello world' When I s...

3 years ago | 1 answer | 0

1

answer