フィルターのクリア

Info

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

How to perform a series of replacements in an array based on whether a separate condition is satisfied?

1 回表示 (過去 30 日間)
Boushra Dalile
Boushra Dalile 2018 年 5 月 2 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I am trying to piece together a series of replacements if a separate condition is satisfied, specifically:
If array x (table with variables, and variable 5 contains numbers such as 10, 30, 40, 60) contains 35, then - replace all '60' with 'z1' - replace all '40' with 'z2' - replace all '30' with 'z3'
If not, - replace all '60' with 'y1' - replace all '40' with 'y2' and so forth...
  2 件のコメント
Jan
Jan 2018 年 5 月 2 日
What is "array x"? Please post a short example, such that the class gets clear.
Boushra Dalile
Boushra Dalile 2018 年 5 月 2 日
it's basically a table with various columns, and one column (column no. 5) contains numbers: 40, 60, 30, 50, 70, etc...
sorry for not clarifying initially.

回答 (0 件)

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

Community Treasure Hunt

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

Start Hunting!

Translated by