フィルターのクリア

relative calculation from a column

2 ビュー (過去 30 日間)
eric capnu
eric capnu 2017 年 12 月 13 日
回答済み: James Knowles 2017 年 12 月 18 日
hi guys. i have the following array A
1 2
--- ---
2
3
10
1
7
8
2
i want create a column 2, which is made from the Excel formula:
=RC[-1]/average(RC[-1]:R[-3]C[-1])
so the result would be
1 2
--- ---
2
3
10 2
1 0.21
7 1.16
8 1.5
2 0.35
i want to do it from matlab. But i don't know where do i start...
  1 件のコメント
Jan
Jan 2017 年 12 月 13 日
Start with posting some Matlab code, which creates the existing inputs. Currently the readers cannot guess, if you made this table like layout for clarity, or if the data are really a table object.
Then please explain the meaning of the "RC", "R" and "C" as well as "[-1]" notation. Of course, some Excel profis will recognize what you want, but this is a Matlab forum.

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

回答 (1 件)

James Knowles
James Knowles 2017 年 12 月 18 日
x1 = [2;3;10;1;7;8;2] %input column vector
x2 = 'manipulation you want to perform as a function of x1'

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by