Retired Navy Adm. Stuart S. Murray, 82, commander of the battleship Missouri when that ship was the site of the Japanese capitulation ending World War II, died of cancer Friday at Northern Virginia Doctors Hospital in Arlington.

Adm. Murray spent the bulk of his time between his graduation in 1918 from the U.S. Naval Academy at Annapolis and the beginning of World War II as an officer aboard submarines. By the early 1920s, he was a submarine commanding officer.

From 1940 to July 1942, he was commander of the Asiatic Fleet's submarine division. He then served until November 1943 as chief of staff to the commander of all submarine forces in the Southwest Pacific theater.

Following a stateside assignment, he was commanding officer of the Missouri, the "Mighty Mo," from May to November in 1945.

He then served as chief of the Navy Advisory Group to China until 1948. During the early 1950s, he was commander of the Navy Amphibious Training Command, and commander of the submarine forces of the Atlantic Fleet. He was the Navy's inspector general for two years before retiring in August 1956. His decorations included the Legion of Merit with gold star and combat "V".

After leaving the Navy, he moved to Santa Barbara, Calif., where he worked for several defense-related industries, including the RAND Corporation, Mitre, and the Institute for Defense Analysis. He returned to this area in 1975 and was a resident of Arlington at the time of his death. He was a native of Delia, Tex.

He was a 32nd degree master Mason and a Shriner.

His wife, the former Madeleine Young, died in 1975. Adm. Murray's survivors include a son, Stuart G., of Connecticut; a daughter, Suzanne M. Stroup of Arlington, and eight granchildren.