Write A Tall Array
Show older comments
Super inexperienced MATLAB user/coder here.
MATLAB's webpage (above) talks about a write function where you can write tall arrays. When I start typing in "write" it shows a list of pre loaded functions, but just "write" is not one of them. On top of it, when I use the write(location,tA) option, it errors out and tells me that the write function doesn't exist. Is there a specific matlab product or toolbox that I should be using for the "write" function? The webpage doesn't specify.
Here's the warning that I get:
'Undefined function 'write' for input arguments of type 'char'.
2 Comments
Walter Roberson
on 6 Sep 2019
Which release are you using? It needs R2016b or later.
jaybles22
on 6 Sep 2019
Answers (1)
Steven Lord
on 6 Sep 2019
0 votes
As stated on that documentation page the first input argument in your call to the write function (which is either location or filepattern) must be either a char vector or a string and the second input argument in your call to the write function (which is the tA input) must be a tall array. From the error I'm guessing you passed a char vector in as the first input but you passed something other than a tall array in as the second input argument (or didn't pass a second input in at all.)
Ensure you're calling write with at least two input arguments, the second of which must be a tall array.
If you're trying to write some other type of variable to disk, what is the class of the variable you're trying to write? Knowing that may help us suggest the correct tool for the job.
Categories
Find more on Timetables in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!