Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Working in Matlab with structures in structures?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello all!
I am dealing with a set of parameters. For the moment is possible to 'play' with these parameters, change names and values and save the changes in a new set of parameters (so after any changes is possible to save versions of my set of parameters).
At a given moment this means that I will have, for example 5 versions of my set of parameters.
- version1.mat
- version2.mat
- version3.mat
- version4.mat
- version5.mat
I am always working with the latest version of the set of parameters (so in this case, version 5).
Let's say in version1.mat I have parameter 'parameter1=5'. I change this parameter name in 'parameter2=5'. So in version2.mat instead of 'parameter1=5' (which will be deleted), I will have 'parameter2=5'. And continuing like this, finally I will have something like:
- *version1.mat -> parameter: 'parameter1=5'
- version2.mat -> parameter: 'parameter2=5'
- version3.mat ->'parameter3=5'
- version4.mat ->'parameter4=5'
- version5.mat ->'parameter5='*
As I said I am always working with the latest version of my parameters.
Next I want to see a history of all the changes. When I select 'parameter5' I want to see something like I wrote above. Like:
- version1.mat -> parameter: 'parameter1=5'
- version2.mat -> parameter: 'parameter2=5'
- version3.mat ->'parameter3=5'
- version4.mat ->'parameter4=5'
- version5.mat ->'parameter5=5'
Normally I will never have only 5 versions, is possible to have over 100 versions probably.
How do you suggest to handle this? I was thinking to use structures in strucutures (this solution is ok if I want to see the last, let's say, 3 changes. For more it becomes really complicated to create all the links between all the versions)
댓글 수: 1
Walter Roberson
2012년 2월 2일
If you selected parameter5, why dump the history for all of the parameters?
When you are dumping the history for a particular parameter, do you just want to know which file the parameter was inherited from, or do you want to know only which files it was changed in, or do you want to know the value that would be "perceived" by each of the files?
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!