博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
matlab骨架曲线,从滞回曲线提取骨架曲线点Matlab程序
阅读量:6914 次
发布时间:2019-06-27

本文共 1796 字,大约阅读时间需要 5 分钟。

Matlab的.m程序,一键提取滞回曲线的骨架曲线点

-----------------------------

[ColMaxValue,LineMax]=max(A); %获取各列最大值所在行号LineMax(1*n向量),ColMaxValue为各列的最大值(1*n向量),n为A的列数

[ColMinValue,LineMin]=min(A); %获取各列最小值所在行号LineMin

FramePointMax=A(LineMax(2),:); %第2列为荷载列

FramePointMin=A(LineMin(2),:);

FramePointsPostive(k,:)=FramePointMax; %骨架曲线点储存在矩阵FramePoints中

FramePointsNegative(k,:)=FramePointMin;

elseif outdata(LineNum,1)>=0 %仅正半周,仅一个最大值----------------------------------------------------

[ColMaxValue,LineMax]=max(A); %获取最大值行号LineMax

FramePointMax=A(LineMax(2),:);

FramePointsPostive(k,:)=FramePointMax;

else %有负半周,有最大值和最小值----------------------------------------------------

[ColMinValue,LineMin]=min(A); %获取最小值行号LineMin

FramePointMin=A(LineMin(2),:);

FramePointsPostive(k,:)=FramePointMax;

FramePointsNegative(k,:)=FramePointMin;

end;

end;

end;

%---------------------------------------比较最大位移,删除骨架曲线中同一荷载级的较小骨架点---------------------------------------------------

for k=LoopNum:-1:2

A=LoopCircles{k};

B=LoopCircles{k-1};

[ColMaxValueA,LineMaxA]=max(A); %获取各列最大值所在行号LineMax(1*n向量),ColMaxValue为各列的最大值(1*n向量),n为A的列数

[ColMinValueA,LineMinA]=min(A); %获取各列最小值所在行号LineMin

[ColMaxValueB,LineMaxB]=max(B); %获取各列最大值所在行号LineMax(1*n向量),ColMaxValue为各列的最大值(1*n向量),n为A的列数

[ColMinValueB,LineMinB]=min(B); %获取各列最小值所在行号LineMin

if abs(ColMaxValueA(1)-ColMaxValueB(1))<4; %判断为同一荷载级,容差取为4mm

if ColMaxValueA(2)

FramePointsPostive(k,:)=[];

else

FramePointsPostive(k-1,:)=[];

end;

end;

if abs(ColMinValueA(1)-ColMinValueB(1))<4;

if ColMinValueA(2)

FramePointsNegative(k-1,:)=[];

else

FramePointsNegative(k,:)=[];

end;

end;

end;

dlmwrite('FrameCurve.txt',FramePointsPostive,'-append','delimiter','\t','

newline','pc','precision','%.2f')

dlmwrite('FrameCurve.txt',FramePointsNegative,'-append','delimiter','\t','newline','pc','precision','%.2f')

转载地址:http://knncl.baihongyu.com/

你可能感兴趣的文章
九度 1533:最长上升子序列
查看>>
demo1 spark streaming 接收 kafka 数据java代码WordCount示例
查看>>
九度 1482:玛雅人的密码(BFS)
查看>>
Windows 8 应用开发 - 挂起与恢复
查看>>
在InstallShield中发布单一的Setup.exe文件
查看>>
LINQ to Objects系列(1)相关技术准备
查看>>
[leetcode]Validate Binary Search Tree @ Python
查看>>
设计模式---简单工厂模式(学习笔记)
查看>>
第21周五
查看>>
c++ 使用json的库。cJSON
查看>>
struts2不兼容servlet、COS
查看>>
Java 打印堆栈的几种方法
查看>>
解读Gartner《2015年度新兴技术成熟度曲线报告》
查看>>
执行ssh-add时出现Could not open a connection to your authentication agent
查看>>
Ajax.BeginForm()实现ajax无刷新提交
查看>>
GROOVY简单语法实习
查看>>
刷新神经网络新深度:ImageNet计算机视觉挑战赛微软中国研究员夺冠
查看>>
27.OGNL与ValueStack(VS)-获取Stack Context中的信息
查看>>
MySQL数据库的事务管理
查看>>
BZOJ4631 : 踩气球
查看>>