Clear Filters
Clear Filters

How to merge different matlab files into one file

3 views (last 30 days)
I have different Matlab files containing columns of stock price data. I need to incorporate all the price columns into one file. In the new file the price series of different stocks will be shown in consecutive columns. Can anyone help?

Answers (1)

Image Analyst
Image Analyst on 15 Jan 2015
How about load() and save()? Or readtable() and writetable()? Or xlsread() and xlswrite()? Just try something, experiment around and read the help - that's how you learn. I can't really say how you can "stitch" these two different arrays together since it depends on what kind of data type they are and if they have the same number of rows and columns, and if the rows mean the same things in the two data sets (like dates that both tables have in common, either all dates, or some dates). You forgot to attach any data so we can't really do much more.

Categories

Find more on Financial Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!