tweak

버전 1.0.0.0 (40.4 KB) 작성자: Misha Dabaghyan
allows to visually tweak parameters of a given function
다운로드 수: 37
업데이트 날짜: 2017/10/11

라이선스 보기

tweak helps visually evaluate the effect of changing or tweaking a parameter in an expression containing a function which can produce a 2D plot. It then creates a slider for each parameter that needs tweaking. E.g. 'a*sin(b*x+c); would be the first argument, and its parameters ('a', 'b' or 'c') the second. An adjustment range for a given parameter can be specified as the third argument.
Examples
x = linspace(0,1,1000); a = 2; b = 10; c = 100;
tweak('a*sin(x*b+c)', 'b') ;
tweak('a*sin(x*b+c)', 'a', [0.1, 2]);
Here, the the first invocation of tweak will allow the adjustment of b by +/- 0.5*b around it's value by opening a plot of the expression and creating a slider for the parameter 'b' that allows values from 5 to 15 (i.e. 10 +/- 5) and from 0.1 to 2 for 'a' respectively. Note, that if the plot remains open after the first tweak, a second slider (for 'a') will be simply added to the figure, so that the two parameters can be tweaked interchangeably.
The values of the parameters in the main workspace will be set by the final positions of the corresponding sliders.

인용 양식

Misha Dabaghyan (2024). tweak (https://www.mathworks.com/matlabcentral/fileexchange/64598-tweak), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2017a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

included findjobj.m