![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/8288222_1494959000937.jpg)
Paul Shoemaker
MatlabInvesting.com
Followers: 0 Following: 0
Engineer and market investor/trader. Website: MatlabInvesting.com: "Leveraging the Power of Matlab to Profit in the Markets" Providing knowledge articles and community on how to use Matlab for investing purposes. I also have a Matlab toolbox that interfaces directly with TD Ameritrade (and by extension, Thinkorswim) to conduct automated trading strategies.
Statistics
RANK
1,137
of 293,516
REPUTATION
61
CONTRIBUTIONS
5 Questions
28 Answers
ANSWER ACCEPTANCE
80.0%
VOTES RECEIVED
15
RANK
13,218 of 20,039
REPUTATION
21
AVERAGE RATING
0.00
CONTRIBUTIONS
7 Files
DOWNLOADS
8
ALL TIME DOWNLOADS
220
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
How to find the position of the elements of a matrix?
Check out the ind2sub Matlab function. Paul Shoemaker MatlabInvesting.com
4 years ago | 0
| accepted
best option for storing metadata associated to each data file
Hello Lilly, If your data really is time-based then you should consider formatting the data to be a timetable, which have Prope...
4 years ago | 1
How to use persistent variables inside parfor method of a custom object class?
Hey folks, I ended up going with Walter's first approach using FOR loop with parfeval within, very close to what I posted above...
5 years ago | 0
How to use persistent variables inside parfor method of a custom object class?
Thanks for the great info all around here. To clarify on the use case, here's a bit more about what's going on: An authenticat...
5 years ago | 0
Question
How to use persistent variables inside parfor method of a custom object class?
There is a similar entry on using persistent variables with spmd/parfor (https://www.mathworks.com/matlabcentral/answers/233648-...
5 years ago | 4 answers | 2
4
answersSuccessful webwrite, but empty response/output?
Hey all, Seems like I stumbled into an echo chamber on this topic. I figured out how to get this to work. The solution can be f...
5 years ago | 3
| accepted
Ways to finesse HTTP HeaderField constraints?
Hey folks, I think I may have fixed the issue. The trick seems to be creating a GenericHeader object, which does not validate s...
5 years ago | 5
| accepted
Question
Ways to finesse HTTP HeaderField constraints?
Hey folks, Webwrite isn't meeting my needs for POSTing data to a RESTful web service, so I decided to go with the lower level m...
5 years ago | 1 answer | 0
1
answerQuestion
Successful webwrite, but empty response/output?
Hey everyone, I'm using webwrite to POST stock orders to TD Ameritrade using their API. For this to work, I need to define an a...
5 years ago | 1 answer | 0
1
answerChanging name of structures
Hello Esteban, I agree that the naming of these structures is unfortunate. You would be better off structuring your data like...
6 years ago | 0
| accepted
Appending data based on same dates
Hello Lee, You might want to convert these two tables to timetables and then combine them using various functions, such as "s...
6 years ago | 0
Detecting new .txt file in a folder how can i read all the files through fileread command
Ahmad, Hard to say exactly what the issue is without having more information, but it looks like your "nameslist" variable is ...
6 years ago | 0
| accepted
How to convert my Matlab code into an Excel add-in?
Ji Li, I'm not sure about doing an add-in, but have you considered using the Matlab command "xlsread" to read an Excel spread...
6 years ago | 0
Read in files with loop
You could wrap it in a FOR loop and employ the "eval" function. lastn=1; clear clc for idx = 200:25:90...
6 years ago | 0
Rearrange matrix into single row
reshape(b',1,numel(b)) % Note the transpose ('), this is important. Paul Shoemaker http://www.matlabinvesting.com
6 years ago | 0
| accepted
Is it possible to run terminal commands from matlab ??
Have you looked at the "system" and "dos" functions in Matlab? It sounds like they might do what you need. Paul Shoemaker ...
6 years ago | 0
Speed performance: Find all y-vector entries that have the same value in an x-vector of equal length.
If you're trying to avoid a FOR loop you can use arrayfun, although I'm not sure it improves speed. It would look something l...
6 years ago | 0
How to open multiple folders for processing?
Hema, Since you don't provide more concrete details about your specific circumstances (code, examples, purpose, etc), I will ...
6 years ago | 0
How can I open GUI in matlab 2014a?
This appears to be a Java problem and may indicate a Java Runtime Environment (JRE) version or installation problem, or maybe an...
6 years ago | 0
how to detect circle using hough transform for color image?
Have you searched the Matlab File Exchange? <https://www.mathworks.com/matlabcentral/fileexchange/34365-circle-finder This one> ...
6 years ago | 0
| accepted
Plotting a function with a given range of values.
X is a vector in this case, so you have to alert Matlab to treat it on a per-element basis with the use of "." before division/m...
6 years ago | 0
How to access all subdirectorie?
Newer version of Matlab allow dir to operate recursively. Simply modify your original dir call like so: files = dir(['M:' f...
6 years ago | 1
import only selected row in file data
There are countless options for doing this and your problem appears to be fairly general purpose. Take a look at <https://www.ma...
6 years ago | 0
how to recombine subimages from cell2mat?
It's a bit difficult to read your code above. If you follow-up with more code, try highlighting the code portion of your post an...
6 years ago | 0
How do i combine 2 functions into 1 graph
Take a look at the "hold" command. You can create your first plot as you have, then use "hold on" to tell Matlab that you'd like...
6 years ago | 0
can anyone help in this looping which has 408 number of elements in array but the last one 408th one is not executed...
It's a little difficult to answer this without numbers, and your code is a bit hard to read, but let me try... Is this code r...
6 years ago | 0
| accepted
How to read the .txt file in matlab?
I concur with Geoff on use of the support page for Text Files to understand which function to use for your case. Once you have i...
6 years ago | 0
| accepted
How to sort multiple rows in quintiles and calculate portfolio returns?
Check out the prctile function (Statistics toolbox). You can do something like this: returnQuintiles = prctile(returns,...
6 years ago | 0
How to plot boundaries region contours of countries in worldmap?
I've used the website http://www.gadm.org/ to download country data (no affiliation to organization). You can select download, p...
6 years ago | 0
| accepted
Why do I get the error "Subscript indices must be real positive integers or logicals?"
Two points... First, it's very difficult to answer your question without number examples that we can test. Second, you hav...
6 years ago | 0