How to make a list out of an array with cells containing strings and give them new values from another list built on the same principle?

1 回表示 (過去 30 日間)
Hi!
I have this problem I need to rename some values in an array manually, the new values already exist in an other array, therefore I wonder if it is possible how to make a list of the first values and then rename them by picking values from the other array.
I have an idea of using listdlg to choose wich value to swap with the other value, is this possible and if so does anyone have a good way of doing this?`
Thanks David

採用された回答

Image Analyst
Image Analyst 2016 年 7 月 4 日
Yes, using listdlg() to let the user select the strings to change is a good idea. Have you tried it?
  2 件のコメント
studentdavid
studentdavid 2016 年 7 月 5 日
I have tried it might need some more testing because I haven't really got it to work. But if you think this is a good idea it might be the way. Do you have any input on how the code should be written?
Thank you for the quick answer!
studentdavid
studentdavid 2016 年 7 月 5 日
Think I have solved it thank you again for your answer!

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

その他の回答 (1 件)

Thorsten
Thorsten 2016 年 7 月 4 日
A = {'a' 'b' 'c'}; B = {'d' 'e' 'f'}
A{2} = B{3}

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by