matlab2008报错,simulink的.mdl的文件在matlab2008a中打开报错,高手指点下

哈哈,不同版本字体的问题。运行下边的命令:

bdclose all; set_param(0,'CharacterEncoding', 'ISO-8859-1')

如果不行再换一下字体。

可以参照一下命令的介绍,能够使用联机帮助,这是很关键的。

另外,不同的版本还会出现模型问题,怎样处理看下边的资料。

看看这个很清楚的:

The psbupdate command converts models built with Version 2 blocks into the new Physical Modeling block diagram interface and library of SimPowerSystems 3.0. The conversion happens in three steps:

1.        New powerlib blocks replace old powerlib2 blocks. The block ports are sometimes reordered.

2.        Physical Modeling connection lines replace Simulink signal lines, if those lines connect the new Physical Modeling electrical terminal ports on the converted blocks.

1.        Special JunctionPoint blocks are inserted at line branch points. Subsystem ports are converted, if necessary, to the new Connection Port blocks. See Terminal Ports for the Electrical Domain of Physical Modeling and Special Conversion Blocks and Retired Version 2 Blocks.

The conversion can fail to convert and reconnect some connection lines. See Repairing Incomplete Connection Lines.

3.        The psbupdate function changes the name of your model to _updated and saves it under this name so you can easily refer to the original model if you need to reconnect broken lines.

Starting the Conversion

The psbupdate command is easy to use. Open the model you want to convert. Then invoke the command by entering

•        psbupdate('Name_Of_The_Model_To_Convert')

at the command line.

psbupdate converts every Version 2 block of your model to SimPowerSystems 3.0 blocks. It also converts any subsystem that uses Version 2 blocks. The old blocks need to be linked to powerlib2 prior to the conversion. Otherwise they are not converted. If your model contains blocks or subsystems linked to a user-defined library, you must update this library first, then update your model. Alternatively, you can break your model's link to the user-defined library, update your model, and then propagate the changes for these linked blocks to the user-defined library.

The psbupdate command ignores regular Simulink blocks or Simulink subsystems while it updates your model. Consult the Simulink documentation on working with block libraries if you need to update those portions of your model.

The new Version 3.0 blocks use the new Physical Modeling terminal ports. psbupdate deletes the Simulink signal lines connecting the old blocks and replaces them with Physical Modeling electrical connection lines, if they are needed to interconnect the new terminal ports. The replacement of Simulink lines is the most critical task of the conversion process, and the conversion sometimes fails to complete every line.

The Generated Conversion Report

The psbupdate command displays a report in the command window each time you convert a model. It reports

•        The blocks that psbupdate failed to convert because of broken links to the block library powerlib2

•        The Simulink signal lines that are too short to be replaced

•        The electrical connection lines that are not properly reconnected

In addition to the report, psbupdate identifies the two kinds of connection line problems in the model:

•        For each line that is too short to be replaced, a special problem-identifier block named Problem #1, Problem #2, etc., is added to the model at the location where the line should go.

•        Each of the lines that psbupdate failed to reconnect is identified by a tag: unconnected line #1, unconnected line #2, etc.

[本帖最后由 hongxi_mat 于 2009-8-31 04:57 编辑]

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/426002.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

[Leedcode][JAVA][第445题][链表][栈]

【问题描述】445. 两数相加 II 给你两个 非空 链表来代表两个非负整数。数字最高位位于链表开始位置。它们的每个节点只存储一位数字。将这两数相加会返回一个新的链表。你可以假设除了数字 0 之外,这两个数字都不会以零开头。进阶:如果输入链表不能修改…

Leetcode143. Reorder List重排链表

给定一个单链表 L:L0→L1→…→Ln-1→Ln , 将其重新排列后变为: L0→Ln→L1→Ln-1→L2→Ln-2→… 你不能只是单纯的改变节点内部的值,而是需要实际的进行节点交换。 示例 1: 给定链表 1->2->3->4, 重新排列为 1->4-&g…

java学习(156):反序列化

import javax.imageio.IIOException; import java.io.*; import java.util.Date;//字符输入流 public class FileManagerChar {public static void readCharFile(File file){FileReader fileReadernull;//文本输入流if(file.exists()){try {fileReader new FileReader( file )…

[Leedcode][JAVA][第355题][设计推特][面向对象][哈希表][链表][优先队列]

【问题描述】355 设计推特 设计一个简化版的推特(Twitter),可以让用户实现发送推文,关注/取消关注其他用户,能够看见关注人(包括自己)的最近十条推文。你的设计需要支持以下的几个功能:postTweet(userId, …

java中sofa并发访问,云上的日子:用块存储、文件存储还是对象存储?

当今最流行的存储类型是哪种?答案毫无疑问是:块存储、文件存储还有对象存储!作为伴随着云计算兴起的存储类型,这三种存储绝对是这个时代的存储明星,用C位出道来形容再合适不过。那么,在云上的日子,究竟该用块存储、文…

java学习(157):线程的引入

//线程 public class test102 extends Thread{public void run(){while (true){System.out.println("我是线程1"this.getName());try {Thread.sleep( 1000 );}catch (InterruptedException e){e.printStackTrace();}}} }//线程 public class test103 extends Thread{…

【读书笔记】计算机是怎样跑起来的

2018年底读的,才整理完笔记。说说感想吧,每个章节虽然都是基础的知识,但是每次读起来还是收获颇多,很多自己说不清楚或者不理解的概念,感觉在认识层面有些结成网了。对于每个方面的专业知识,要按需深入学习…

[剑指offer][JAVA]面试题[第23题][合并K个排序链表][分治][优先队列]

【问题描述】23.合并K个排序链表 合并 k 个排序链表,返回合并后的排序链表。请分析和描述算法的复杂度。 示例: 输入: [1->4->5,1->3->4,2->6 ] 输出: 1->1->2->3->4->4->5->6【解答思路】 1. 两两合并 public class Soluti…

源码安装的php如何启动脚本,PHP源码编译安装管理常用脚本

#!/bin/sh# 编译安装管理PHPAppphpAppNamePHPAppBase/AppAppDir$AppBase/$AppAppProg$AppDir/sbin/php-fpmAppIni$AppDir/etc/php.iniAppConf$AppDir/etc/php-fpm.confExtensionDir$($AppDir/bin/php-config --extension-dir)AppSrcBase/App/srcAppSrcFile$App-*.tar.*AppSrcDi…

java学习(158):线程的常用方法yield,优先级

//线程 public class test102 extends Thread{public void run(){while (true){System.out.println("我是线程1"this.getName());try {Thread.sleep( 1000 );}catch (InterruptedException e){e.printStackTrace();}}} }//线程 public class test103 extends Thread{…

[Leedcode][JAVA][第542题][01矩阵][BFS]

【问题描述】542. 01 矩阵 给定一个由 0 和 1 组成的矩阵,找出每个元素到最近的 0 的距离。 两个相邻元素间的距离为 1 。 示例 : 输入: 0 0 0 0 1 0 1 1 1 输出: 0 0 0 0 1 0 1 2 1 注意: 给定矩阵的元素个数不超过 10000。 给定矩阵中至少有一个元素是 0。 矩阵…

php where or,php – laravel中whereOr和orWhere之间的区别

我在Laravel的代码中使用whereOr和orWhere都可以,但有时会产生不同的结果$user_query User::select( users.id, users.username,users.first_name,users.last_name, users.photo )->where(users.status,1)->where(users.id,!,$id)->where(users.username,like,%.$sea…

java学习(159):两个线程共同完成1到100计算

//利用两个线程实现1到100的计算 public class MyRannable implements java.lang.Runnable{private Thread th_0;private Thread th_2;int sum0;//存储累加和的结果int i1;public void run(){String thNameThread.currentThread().getName();//获取当前线程的名字while (i<…

约瑟夫问题(Josephus Problem)的两种快速递归算法

参考&#xff1a;http://haoyuanliu.github.io/2016/04/18/Josephus/ 转载于:https://www.cnblogs.com/xiaoshayu520ly/p/10263113.html

java学习(160):interrupt方法

import java.util.PrimitiveIterator;public class Classroon implements Runnable {private Thread student;//学生线程private Thread teacher;//老师线程public Classroon(){student new Thread( this,"小迷糊" );teacher new Thread( this,"大教授" …

elementui图片上传php,vue+element-ui+富文本————图片上传

最近用vueelement-ui开发一套后台管理系统&#xff0c;其中项目中需要用到富文本编辑器&#xff0c;这里总结下开发过程中遇到的坑和使用方法。刚开始用的是vue-quill-editor结合element-ui上传图片到服务器&#xff0c;name问题来了 按照官方文档上面的方式。下面是我的代码cl…

[剑指offer][JAVA][面试第40题][最小的k个数][快选][堆][BST]

【问题描述】面试第40题 最小的k个数 输入整数数组 arr &#xff0c;找出其中最小的 k 个数。例如&#xff0c;输入4、5、1、6、2、7、3、8这8个数字&#xff0c;则最小的4个数字是1、2、3、4。 示例 &#xff1a; 输入&#xff1a;arr [3,2,1], k 2 输出&#xff1a;[1,2] …

表数据的增删改查

一、插入数据 第一种插入方式 语法&#xff1a; insert into 表名(字段1,字段2....) values(值1,值2....) #往指定的表中添加数据&#xff1a;insert into 表名(字段1,字段2....) values(值1,值2....) INSERT INTO java成绩表(姓名,班级,Java成绩) VALUES(王二麻子,dt55班,90.5…

java学习(161):同步代码块

public class SynCode implements Runnable{public void run(){synchronized (this){Thread currentThread.currentThread();//获取当前线程for(int i1;i<10;i){System.out.println( "当前执行代码块的名称为" current.getName());try {Thread.sleep( 1000 );}cat…

ubuntu eclipse java,Ubuntu快速安装eclipse

Ubuntu快速安装eclipse教程&#xff0c;供大家参考&#xff0c;具体内容如下1.先安装jdk&#xff0c;详情见链接2.下载eclipse.tar.gz安装包(官网下载)3.把下载好的安装包复制到/usr目录下先cd到tar.gz压缩包的目录下cd /home/k/下载sudo cp eclipse.tar.gz /usr/4.解压tar.gz文…