Issue transposing a matrix inside of a timeseries
Hello everyone,
Im trying to transpose a matrix defined inside of a timeseries:
Rk = timeseries(parentDataset.reflectometry.density’, parentDataset.reflectometry.time);
parentDataset.reflectometry.density is a 7×1 matrix that I need to transpose to become 1×7 however its returning a 1x1x7. I tried using squeeze, reshape or permute to no avail.
I also tried transposing the matrix before feeding it inside the timeseries but I’m also meeting the same issue.
What really confuses me is that when parentDataset.reflectometry.density is a 1×7, transposing it actually returns a 7×1 matrix (and returns 2 when checking wiht ndims).
How can i fix this? And what am I misunderstnading?
Thanks for any help!Hello everyone,
Im trying to transpose a matrix defined inside of a timeseries:
Rk = timeseries(parentDataset.reflectometry.density’, parentDataset.reflectometry.time);
parentDataset.reflectometry.density is a 7×1 matrix that I need to transpose to become 1×7 however its returning a 1x1x7. I tried using squeeze, reshape or permute to no avail.
I also tried transposing the matrix before feeding it inside the timeseries but I’m also meeting the same issue.
What really confuses me is that when parentDataset.reflectometry.density is a 1×7, transposing it actually returns a 7×1 matrix (and returns 2 when checking wiht ndims).
How can i fix this? And what am I misunderstnading?
Thanks for any help! Hello everyone,
Im trying to transpose a matrix defined inside of a timeseries:
Rk = timeseries(parentDataset.reflectometry.density’, parentDataset.reflectometry.time);
parentDataset.reflectometry.density is a 7×1 matrix that I need to transpose to become 1×7 however its returning a 1x1x7. I tried using squeeze, reshape or permute to no avail.
I also tried transposing the matrix before feeding it inside the timeseries but I’m also meeting the same issue.
What really confuses me is that when parentDataset.reflectometry.density is a 1×7, transposing it actually returns a 7×1 matrix (and returns 2 when checking wiht ndims).
How can i fix this? And what am I misunderstnading?
Thanks for any help! matlab MATLAB Answers — New Questions