conversion of single data type to double

11 ビュー (過去 30 日間)
Odesanmi Gbenga Abiodun
Odesanmi Gbenga Abiodun 2020 年 3 月 14 日
コメント済み: Guillaume 2020 年 3 月 15 日
please what is the best way to represent a real time single data type 10x6 to double?
S = double(Real-TData);
SLength=length(S);
representing it this way doesnt work.
  8 件のコメント
Odesanmi Gbenga Abiodun
Odesanmi Gbenga Abiodun 2020 年 3 月 15 日
Thank you all for trying to help me.
the data is an imu sensor data which i am trying to map to my robot joint angle.
53.885860 -1.0556835 -0.21595685 -158.38406 1.2829570 -4.2873130
53.885860 -1.0556835 -0.21595685 -158.38618 1.2851355 -4.2879791
53.884678 -1.0536855 -0.21299019 -158.38618 1.2851355 -4.2879791
53.884678 -1.0536855 -0.21299019 -158.38318 1.2823126 -4.2883754
53.884678 -1.0536855 -0.21299019 -158.38318 1.2823126 -4.2883754
53.882851 -1.0584337 -0.21351759 -158.38345 1.2829697 -4.2857342
53.882851 -1.0584337 -0.21351759 -158.38345 1.2829697 -4.2857342
53.880161 -1.0544633 -0.21398492 -158.38231 1.2800945 -4.2846289
53.880161 -1.0544633 -0.21398492 -158.38231 1.2800945 -4.2846289
53.880310 -1.0559752 -0.21317731 -158.38162 1.2813684 -4.2833033
Guillaume
Guillaume 2020 年 3 月 15 日
We still don't know what you're asking and what you've shown so far raises a number of questions:
  • What are you trying to do?
  • In what way, what you tried doesn't work? If you get an error give us the full text of the error message
  • How can you have a variable named Real-TData which is not a valid variable name in matlab
In addition, you show that the variable is global. global variables are a bad idea and the source of many problems.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by