Adding a scrollbar to change a graph
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuesta aceptada
Jan
el 30 de En. de 2012
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 comentarios
Jan
el 30 de En. de 2012
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?
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!