What does x=val(1,:)?

8 ビュー (過去 30 日間)
Massilon Toniolo da Silva
Massilon Toniolo da Silva 2017 年 5 月 18 日
I should use a Nx1 vector of doubles as my input signal x for my function. What do I get if a use: >>load (´My_Signal.m`) and then >>x =val(1,:); ?

採用された回答

Torsten
Torsten 2017 年 5 月 18 日
"x" is set to the first row of "val" (thus "x" is a vector of size 1xN where N is the number of columns of "val")
Best wishes
Torsten.
  1 件のコメント
Massilon Toniolo da Silva
Massilon Toniolo da Silva 2017 年 5 月 18 日
Hi Torsten, val is a then a variable,right? If so how and where should I declare it? Would it be also possible to use the function´s name together with (1,:)? Example: If the signal is called 'iaf1_afwm.mat' could I use 'iaf1_afwm.mat'(1,:) or something similar? I have tried many ways but it did not function.

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by