Vector dimesions are different before encoding json and after decoding json
Show older comments
Before encoding to json file the mat files are having vectors are as row vector. But after encoding (jsonencode) and decoding(jsondecode), the vectors are changed to column vectors in workspace. And I want the same dimensions after decoding also, how can I get that ?
b.c = 22;

a= jsonencode(b);
d=jsondecode(a);

2 Comments
KSSV
on 3 Mar 2022
You can transpose right?
Accepted Answer
More Answers (0)
Categories
Find more on JSON Format 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!