harmonic.rar

  • rex68
    了解作者
  • matlab
    开发工具
  • 2KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 2
    下载次数
  • 2018-05-24 20:53
    上传日期
matlab code for 3-5-7 angle calculate
harmonic.rar
  • harmonic
  • SHEPWM_3ph2lvl_7ang.m
    4.5KB
  • SHEPWM_3ph2lvl_3ang.m
    1.4KB
  • SHEPWM_3ph2lvl_5ang.m
    3.2KB
内容介绍
%SHEPWM anglesfor three phase two level inverter. 7 angles per quarter %cycle. clc; clear all; m1=0:0.01:1.15; alpha11 = zeros(1,length(m1)); alpha22 = alpha11; alpha33 = alpha11; alpha44 = alpha11; alpha55 = alpha11; alpha66 = alpha11; alpha77 = alpha11; for ii=1:length(m1) %Initial values % if (ii<60) %Use the seed values as initial values upto a certain value of m... % alpha1=14*pi/180; %Give the initial values slightly off from the actual seed values % alpha2=16*pi/180; %so that the Jacobian matrix is not singular. e.g. give 18 % alpha3=28*pi/180; %instead of 20 and so on. % alpha4=31*pi/180; % alpha5=43*pi/180; % alpha6=47*pi/180; % alpha7=59*pi/180; % else %After that certain value of m, the Jacobian seems to become singular, % %so use solution from 10 steps back as the initial point. % alpha1 = alpha11(ii-10)*pi/180; % alpha2 = alpha22(ii-10)*pi/180; % alpha3 = alpha33(ii-10)*pi/180; % alpha4 = alpha44(ii-10)*pi/180; % alpha5 = alpha55(ii-10)*pi/180; % alpha6 = alpha66(ii-10)*pi/180; % alpha7 = alpha77(ii-10)*pi/180; % end %Alternate Initial values if (ii<60) %Use the seed values as initial values upto a certain value of m... alpha1=2*pi/180; %Give the initial values slightly off from the actual seed values alpha2=16*pi/180; %so that the Jacobian matrix is not singular. e.g. give 18 alpha3=28*pi/180; %instead of 20 and so on. alpha4=31*pi/180; alpha5=43*pi/180; alpha6=61*pi/180; alpha7=73*pi/180; else %After that certain value of m, the Jacobian seems to become singular, %so use solution from 10 steps back as the initial point. alpha1 = alpha11(ii-10)*pi/180; alpha2 = alpha22(ii-10)*pi/180; alpha3 = alpha33(ii-10)*pi/180; alpha4 = alpha44(ii-10)*pi/180; alpha5 = alpha55(ii-10)*pi/180; alpha6 = alpha66(ii-10)*pi/180; alpha7 = alpha77(ii-10)*pi/180; end for i=1:100 T=[m1(ii)*pi/4; 0; 0; 0; 0; 0; 0]; % F=[-1+2*(cos(alpha1)-cos(alpha2)+cos(alpha3)-cos(alpha4)+cos(alpha5)-cos(alpha6)+cos(alpha7)); -1+2*(cos(5*alpha1)-cos(5*alpha2)+cos(5*alpha3)-cos(5*alpha4)+cos(5*alpha5)-cos(5*alpha6)+cos(5*alpha7)); -1+2*(cos(7*alpha1)-cos(7*alpha2)+cos(7*alpha3)-cos(7*alpha4)+cos(7*alpha5)-cos(7*alpha6)+cos(7*alpha7)); -1+2*(cos(11*alpha1)-cos(11*alpha2)+cos(11*alpha3)-cos(11*alpha4)+cos(11*alpha5)-cos(11*alpha6)+cos(11*alpha7)); -1+2*(cos(13*alpha1)-cos(13*alpha2)+cos(13*alpha3)-cos(13*alpha4)+cos(13*alpha5)-cos(13*alpha6)+cos(13*alpha7)); -1+2*(cos(17*alpha1)-cos(17*alpha2)+cos(17*alpha3)-cos(17*alpha4)+cos(17*alpha5)-cos(17*alpha6)+cos(17*alpha7)); -1+2*(cos(19*alpha1)-cos(19*alpha2)+cos(19*alpha3)-cos(19*alpha4)+cos(19*alpha5)-cos(19*alpha6)+cos(19*alpha7))]; % dF=2*[-sin(alpha1) sin(alpha2) -sin(alpha3) sin(alpha4) -sin(alpha5) sin(alpha6) -sin(alpha7); -5*sin(5*alpha1) 5*sin(5*alpha2) -5*sin(5*alpha3) 5*sin(5*alpha4) -5*sin(5*alpha5) 5*sin(5*alpha6) -5*sin(5*alpha7); -7*sin(7*alpha1) 7*sin(7*alpha2) -7*sin(7*alpha3) 7*sin(7*alpha4) -7*sin(7*alpha5) 7*sin(7*alpha6) -7*sin(7*alpha7); -11*sin(11*alpha1) 11*sin(11*alpha2) -11*sin(11*alpha3) 11*sin(11*alpha4) -11*sin(11*alpha5) 11*sin(11*alpha6) -11*sin(11*alpha7); -13*sin(13*alpha1) 13*sin(13*alpha2) -13*sin(13*alpha3) 13*sin(13*alpha4) -13*sin(13*alpha5) 13*sin(13*alpha6) -13*sin(13*alpha7); -17*sin(17*alpha1) 17*sin(17*alpha2) -17*sin(17*alpha3) 17*sin(17*alpha4) -17*sin(17*alpha5) 17*sin(17*alpha6) -17*sin(17*alpha7); -19*sin(19*alpha1) 19*sin(19*alpha2) -19*sin(19*alpha3) 19*sin(19*alpha4) -19*sin(19*alpha5) 19*sin(19*alpha6) -19*sin(19*alpha7)]; dalpha=(inv(dF))*(T-F); i; alpha=[alpha1;alpha2;alpha3;alpha4;alpha5; alpha6;alpha7]*180/pi; F; dalpha*180/pi; alpha1=alpha1+dalpha(1); alpha2=alpha2+dalpha(2); alpha3=alpha3+dalpha(3); alpha4=alpha4+dalpha(4); alpha5=alpha5+dalpha(5); alpha6=alpha6+dalpha(6); alpha7=alpha7+dalpha(7); if dalpha>-1e-15 & dalpha<1e-15 break; end end alpha11(ii)=alpha1*180/pi; alpha22(ii)=alpha2*180/pi; alpha33(ii)=alpha3*180/pi; alpha44(ii)=alpha4*180/pi; alpha55(ii)=alpha5*180/pi; alpha66(ii)=alpha6*180/pi; alpha77(ii)=alpha7*180/pi; end plot(m1,alpha11); hold on; plot(m1,alpha22); hold on; plot(m1,alpha33); hold on; plot(m1,alpha44); hold on; plot(m1,alpha55); plot(m1,alpha66); plot(m1,alpha77); ylim([0 90]); grid on; xlabel('Modulation Index(M)'); ylabel('Swiching Angles(deg)');
评论
    相关推荐
    • topMMA_MBB.zip
      此程序可以用MMA方法来解决MBB最大刚度问题,运行快速,结果稳定
    • 88 lines of code.rar
      详细描述了simp99行算法的改进版算法
    • sourcecode.rar
      在VC++6.0平台上的基于神经网络的一个比较实用的矩阵类源代码
    • matlab集成c代码-GGP-Applications-for-Aerospace:GGP-航空航天应用
      Matlab集成的c代码GGP-航空航天应用 基于Ref [1]中最近发表的文章,GGP是基于MATLAB的代码,已成功集成了基于主要几何投影的拓扑优化器,即几何投影(GP),MMC(运动可变形组件)和MNA...'MBB':经典的Messerschmitt
    • phpBB-WAP 6 掌云社区二次开发版
      * 修复原版本的MBB调用的各种出错,例如:调用精华、动态帖子出错 * 修复原版本登录重定向的各种错误 * 修复了原版本普通用户可以设置精华帖子的问题 * 把帖子中的 下载帖子 设为登录后可见,不知道为什么,搜索引擎...
    • NCAA_MBB:ESPN 盒子记分器
      NCAA 男子篮球 ESPN 盒子记分器 Scraper 浏览给定日期的比赛得分页面,然后爬行每场比赛的得分以收集球员和球队水平的统计数据。 数据存储在“游戏”对象中,然后以 Pandas 数据帧的形式回调,然后在主循环中上传到...
    • phpBB-WAP掌云社区 v6 二次开发版.zip
      * 修复原版本的MBB调用的各种出错,例如:调用精华、动态帖子出错 * 修复原版本登录重定向的各种错误 * 修复了原版本普通用户可以设置精华帖子的问题 * 把帖子中的 下载帖子 设为登录后可见,不知道为什么,搜索...
    • mbb-sayac-bilgi:MBBSayaçBilgi Sistemi
      MBB赛亚克·比吉·西斯泰米 V1.1次要更新 Sayfabaşlıklarıdüzenlendi。 Boştaolan api silindi。 V1.0版本 奥泽利克勒 QR Taramadanöncekameraseçimi(Telefonlariçinönveya arka kamera) Dosyadan daha...
    • Understanding_the_LFH.zip
      Over the years, Windows heap exploitation has continued to increase in difficulty due to the addition of exploitation counter measures along with the implementation of more complex algorithms and data...
    • matlabcnhelp.rar
      matlab中文帮助很难找的,快速下载