Feeds
提问
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' '' ...
8 years 前 | 1 个回答 | 0
1
个回答提问
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...
8 years 前 | 0 个回答 | 0
0
个回答提问
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...
8 years 前 | 2 个回答 | 0
2
个回答提问
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; ...
8 years 前 | 2 个回答 | 0
2
个回答提问
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: ...
8 years 前 | 2 个回答 | 0
2
个回答提问
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...
8 years 前 | 1 个回答 | 0
1
个回答提问
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...
8 years 前 | 1 个回答 | 0
1
个回答已回答
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...
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...
8 years 前 | 0
提问
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...
8 years 前 | 2 个回答 | 0
2
个回答提问
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 ...
8 years 前 | 0 个回答 | 0
0
个回答已回答
Mode of table sizes within a structure
With a little modification the above solution worked with acceptable speed
Mode of table sizes within a structure
With a little modification the above solution worked with acceptable speed
8 years 前 | 0
| 已接受
提问
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...
8 years 前 | 1 个回答 | 0
1
个回答提问
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...
8 years 前 | 0 个回答 | 0
0
个回答已回答
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...
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...
8 years 前 | 0
提问
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 ...
8 years 前 | 2 个回答 | 0
2
个回答提问
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...
8 years 前 | 1 个回答 | 0
1
个回答已回答
finding carriage returns (i.e. \n) in a text file
thank you so much. nailed it. Nothing better than the matlab forums.
finding carriage returns (i.e. \n) in a text file
thank you so much. nailed it. Nothing better than the matlab forums.
9 years 前 | 0
提问
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...
9 years 前 | 4 个回答 | 0
4
个回答已回答
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...
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...
9 years 前 | 0
提问
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...
9 years 前 | 3 个回答 | 0
3
个回答已回答
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...
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...
9 years 前 | 0
| 已接受
提问
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...
9 years 前 | 1 个回答 | 0