displayallsolutions
クラス: FunctionApproximation.LUTSolution
パッケージ: FunctionApproximation
関数の近似で見つかったすべての解の表示
構文
displayallsolutions(solution)
説明
displayallsolutions(
は、solution
)FunctionApproximation.LUTSolution
オブジェクトに関連付けられている解を実行不可能な解も含めてすべて表示します。
入力引数
solution
— 関連付けられているすべての解を表示する Solution オブジェクト
FunctionApproximation.LUTSolution
オブジェクト
関連付けられているすべての解を表示する FunctionApproximation.LUTSolution
オブジェクト。
例
ルックアップ テーブルの近似で見つかったすべての解の表示
近似する数学関数を定義する FunctionApproximation.Problem
オブジェクトを作成します。その後、solve
メソッドを使用して FunctionApproximation.LUTSolution
オブジェクトを取得します。
近似プロセスで見つかったすべての解を displayallsolutions
メソッドを使用して表示します。
problem = FunctionApproximation.Problem('sin')
problem = FunctionApproximation.Problem with properties FunctionToApproximate: @(x)sin(x) NumberOfInputs: 1 InputTypes: "numerictype(0,16,13)" InputLowerBounds: 0 InputUpperBounds: 6.2832 OutputType: "numerictype(1,16,14)" Options: [1×1 FunctionApproximation.Options]
solution = solve(problem)
solution = FunctionApproximation.LUTSolution with properties ID: 8 Feasible: "true"
displayallsolutions(solution)
| ID | Memory (bits) | ConstraintMet | Table Size | Breakpoints WLs | TableData WL | BreakpointSpecification | Error(Max,Current) | | 0 | 64 | 0 | 2 | 16 | 16 | EvenPow2Spacing | 7.812500e-03, 1.590463e+00 | | 1 | 464 | 0 | 27 | 16 | 16 | EvenPow2Spacing | 7.812500e-03, 7.823061e-03 | | 2 | 864 | 1 | 52 | 16 | 16 | EvenPow2Spacing | 7.812500e-03, 1.978726e-03 | | 3 | 64 | 0 | 2 | 16 | 16 | EvenSpacing | 7.812500e-03, 1.000000e+00 | | 4 | 560 | 1 | 33 | 16 | 16 | EvenSpacing | 7.812500e-03, 4.817965e-03 | | 5 | 304 | 0 | 17 | 16 | 16 | EvenSpacing | 7.812500e-03, 1.887217e-02 | | 6 | 432 | 0 | 25 | 16 | 16 | EvenSpacing | 7.812500e-03, 8.513680e-03 | | 7 | 496 | 1 | 29 | 16 | 16 | EvenSpacing | 7.812500e-03, 6.288182e-03 | | 8 | 464 | 1 | 27 | 16 | 16 | EvenSpacing | 7.812500e-03, 7.324035e-03 | | 9 | 448 | 0 | 26 | 16 | 16 | EvenSpacing | 7.812500e-03, 7.895832e-03 | | 10 | 704 | 1 | 22 | 16 | 16 | ExplicitValues | 7.812500e-03, 7.323370e-03 | Best Solution | ID | Memory (bits) | ConstraintMet | Table Size | Breakpoints WLs | TableData WL | BreakpointSpecification | Error(Max,Current) | | 8 | 464 | 1 | 27 | 16 | 16 | EvenSpacing | 7.812500e-03, 7.324035e-03 |
バージョン履歴
R2018a で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)