Adding a scrollbar to change a graph
4 ビュー (過去 30 日間)
古いコメントを表示
Hello. I've finally managed to finish my program and the result is a graph with x axis representing a thickness and y axis representing contrast. The graph changes depending on the value I give a variable (let's call it n) obtaining like this different curves every time I change that value. The variable n can be ANY number (and even has an imaginary part to it). I need to insert the numbers one by one, trying with different random numbers to obtain a curve which is exactly like the one I obtained experimentally. This allows us to calculate by using a theoretical model the value of variable n. It is very tiring to insert a different number each time, and having to run the program time after time, and hence my question: -Is there any way to actually insert a scrollbar which when moved, will also change the value of variable n, and hence change my graph?- Could I for example give it a list of say 1million values, allowing me the scroll bar to change between them ONLY? Thank you in advance as every day I learn many things with your help.
0 件のコメント
採用された回答
Jan
2012 年 1 月 30 日
Trying to define 1 million numbers by moving a scrollbar is a really strange task. Please note, that the monitor has less than 1 million pixels in a certain direction, which impedes the selection drastically.
Actually the problem sounds like a programatical approach is much better. Are you sure that choosing random numbers is sufficient? Or would a parameter optimization find the solution much faster, more reliably and most of all reproducibly?
2 件のコメント
Jan
2012 年 1 月 30 日
And you want to test the results with all different possible combinations?! This will need about 12 days if you check one solution per second.
Do you think, that an automatic parameter identification might find the solution?
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!