MATLAB Answers

How to save X, Y coordinates from different cells in multiples files

1 view (last 30 days)
Tesla on 17 Sep 2020
Edited: Tesla on 25 Jul 2021
Hello Everyone, I have 100 cells for each X and Y cordinates, and in every cell I have 234 values.
I want to save each SX cell with its corresponded SY cell into same text, which means i total i will have 501 files in this case.
for example:
SX{1,1} and SY{1,1} values, into same text file with 2 colones:
4 2
4 6
8 3
7 4

Answers (1)

KSSV on 17 Sep 2020
Edited: KSSV on 17 Sep 2020
Let SX and SY be your cells.
iwant = [ [SX{:}] [SY{:}]] ;
Also read about Cell2mat, cat.


Community Treasure Hunt

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

Start Hunting!