How to a take out a double file from structure

조회 수: 2 (최근 30일)
navan
navan 2015년 6월 18일
답변: Jan 2015년 6월 18일
I am having a structure as shown below. I would like to take out the a specific double file 'y' (as shown in image) outside the structure file to my workspace and want to make it as y double type in the workspace. Kindly help
  댓글 수: 1
Jan
Jan 2015년 6월 18일
Please use the term "struct" for structs. A "structure" is something else. A "file" is a stream of data on the hard disk. I assume, you mean a "variable" and a "field". Using the terms correctly is important when such a fragile and pedantic system as a programming language is used.

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
Jan 2015년 6월 18일
I assume the answer is trivial:
y = Data.y;

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by