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 Center および File ExchangeStructures についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by