日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人工智能 > 循环神经网络 >内容正文

循环神经网络

matlab如何画函数的外包络曲线,怎样在MATLAB中划出一个函数的包络线?

發布時間:2023/12/10 循环神经网络 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 matlab如何画函数的外包络曲线,怎样在MATLAB中划出一个函数的包络线? 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

滄海一幻覺

下面是一系列關于MATLAB的包絡線的程序:%這是定義了一個函數:function [up,down] = envelope(x,y,interpMethod)%ENVELOPE gets the data of upper and down envelope of the known input (x,y).%% Input parameters:% x the abscissa of the given data% y the ordinate of the given data% interpMethod the interpolation method%% Output parameters:% up the upper envelope, which has the same length as x.% down the down envelope, which has the same length as x.%% See also?DIFF?INTERP1% Designed by: Lei Wang, , 11-Mar-2003.% Last Revision: 21-Mar-2003.% Dept. Mechanical & Aerospace Engineering, NC State University.% $Revision: 1.1 $ $Date: 3/21/2003 10:33 AM $if length(x) ~= length(y)error('Two input data should have the same length.');endif (nargin < 2)|(nargin > 3),error('Please see help for INPUT DATA.');elseif (nargin == 2)interpMethod = 'linear';end% Find the extreme maxim values% and the corresponding indexes%----------------------------------------------------extrMaxValue = y(find(diff(sign(diff(y)))==-2)+1);extrMaxIndex = find(diff(sign(diff(y)))==-2)+1;% Find the extreme minim values% and the corresponding indexes%----------------------------------------------------extrMinValue = y(find(diff(sign(diff(y)))==+2)+1);extrMinIndex = find(diff(sign(diff(y)))==+2)+1;up = extrMaxValue;up_x = x(extrMaxIndex);down = extrMinValue;down_x = x(extrMinIndex);% Interpolation of the upper/down envelope data%----------------------------------------------------up = interp1(up_x,up,x,interpMethod);down = interp1(down_x,down,x,interpMethod);

總結

以上是生活随笔為你收集整理的matlab如何画函数的外包络曲线,怎样在MATLAB中划出一个函数的包络线?的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。