フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to get the required output?

1 回表示 (過去 30 日間)
Muniba Shah
Muniba Shah 2018 年 11 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
x=[4 5 1 2 3] & y=[6 7 8 9 10] and required output is c = [21 10]
  3 件のコメント
Image Analyst
Image Analyst 2018 年 11 月 5 日
Here's one way
c = [sum(x)+y(1), y(end)];
It meets all your criteria that you've said so far. Here is another, simpler way
c = [21, 10];
It also meets your criteria and is even simpler because x and y were not even needed. If neither of those is good, then say why not.
Muniba Shah
Muniba Shah 2018 年 11 月 6 日
Thank you!

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by