How to calculate error between two matrices of different dimensions?

19 views (last 30 days)
I want to calculate error between two matrices. One is A matrix of dimension 1by800 and another is B matrix of dimension 1by80000. I want to calculate the error between the two by using every 100th element of matrix B. How to do it in matlab?

Accepted Answer

Adam Danz
Adam Danz on 7 Oct 2019
Edited: Adam Danz on 8 Oct 2019
Not sure how you're defining error but to get every 100th element of B,
B(1:100:end)
Perhaps error is just the difference between A and B?
A - B(1:100:end)

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices 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!