How to manipulate matrices to get the same dimensions?
Show older comments
Hi I am trying to perform a regression analysis between two matrices. The first one has the dimensions of 145*35*40 when reshaped to 2d it gives matrix 5365*40. The other one is a 141*71*38 when reshaped to 2d it gives a matrix of 10011*38. How can I delete rows and columns to match the dimensions? Apologies in advance if this is a silly question. Thanks
3 Comments
Star Strider
on 25 Nov 2019
It is likely best to completely re-design whatever you are intending to do. Deleting or re-arranging data will not give you reliable results.
desert_scientist90
on 25 Nov 2019
Star Strider
on 25 Nov 2019
Logical indexing is not relevant at present., at least with respect to the information you have presented The problem is that your matrices do not appear to be compatible with respect to their dimensions and with respect to doing any regressions with them.
Accepted Answer
More Answers (0)
Categories
Find more on Linear Regression 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!