0
我该怎么解决,两个字符串数组J=(nx1)
和K=(mx1)
,有相同的价值观,如果一些值缺少以J然后我需要为这些缺失值L=(ix1)
一个新的阵列;例如: J={Two_Headlights one_engine four_wheels two_seats two_seatbelts}
比较字符串数组的两个列表
K={Two_Headlights one_engine one_gear one_break one_clutch four_wheels two_seats two_seatbelts}
然后我想为那些以J缺失值的新数组; L={one_gear one_break one_clutch}
我曾尝试使用for循环通过使用setdiff和使用strcmp,但我不知道我要去哪里错了,我无法得到结果。
你的代码在哪里?你得到的输出是什么? –