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?

조회 수: 2 (최근 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!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Thorsten
Thorsten 2016년 7월 4일
A = {'a' 'b' 'c'}; B = {'d' 'e' 'f'}
A{2} = B{3}

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by