turning functions into floating-point numbers

1 回表示 (過去 30 日間)
Aliya
Aliya 2020 年 6 月 30 日
回答済み: Star Strider 2020 年 6 月 30 日
I want to find the half width full max of a function in matlab. This requires the input arguments to be convertible to floating-point numbers. How do I do this? Is there another way to find FWHM of functions in matlab?

回答 (2 件)

dpb
dpb 2020 年 6 月 30 日
Evaluate the function over the range and use findpeaks

Star Strider
Star Strider 2020 年 6 月 30 日
Your question lacks detail. If you have an expression in one or more variables, you can express it as a function (most likely an anonymous function), and then evaluate it as you would any other function. Then, you can use findpeaks or other appropriate functions to get the FWHM data.
See: Function Basics and related documentation linked to on that page, if you are unfamiliar with functions and how to use them.

カテゴリ

Help Center および File ExchangeNumeric Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by