Sister Mary Edward Walsh, 76, and Sister Gertrude Matthews, 69, who died Saturday night as a result of injuries they received in a one-car crash in Anne Arundel County, were both members of the Daughters of Charity and had been affiliated with schools in the Washington area.

Anne Arundel County Police said that Sister Mary, the driver, apparently had a heart attack and lost control of the automobile, which struck a tree. Sister Mary was taken from the scene of the accident, on Rte. 175 near Severn, to the University of Maryland's Shock Trauma Center in Baltimore where she was pronounced dead. Sister Gertrude was pronounced dead at Fort Meade's Kimbrough Army Hospital.

Sister Gertrude was a native of Washington. She earned a bachelor's degree in business at St. Joseph's College in Emmitsburg, Md., and a master's degree in education at Boston University. After working at high schools in Norfolk and Baltimore she came here in 1953 and spent the next six years as principal of St. Catherine Laboure Catholic High School in Wheaton. From 1959 to 1965, she was principal of Seton Catholic High in Bladensburg, then spent six years as dean of students at St. Joseph's. She then worked at a Baltimore high school and served since 1982 as a pastoral associate and counselor at St. Agnes Hospital in Baltimore.

Sister Mary was born in Portsmouth, Va. She was a graduate of St. Joseph's College and earned a master's degree at the University of North Carolina. She taught art at Seton Catholic High in Bladensburg from 1959 to 1964, and again from 1969 to 1976. Since that time, she taught at Seton Catholic High in Baltimore.

Sister Mary's survivors include a sister, Mrs. Vincent Revell of Miami. Sister Gertrude leaves no immediate survivors.