A homeowner’s belated attempt to challenge foreclosure, because the bank was not assigned the mortgage until two weeks after filing the complaint, was rightfully thrown out, a state appeals court said Thursday.

“In foreclosure matters, equity must be applied to plaintiffs as well as defendants,” the court said in Deutsche Bank Trust Co. Americas v. Angeles, A-2522-11, a published ruling.