新人求教matlab max(a,[],1) 2C

数学建模新人求教
matlab max(a,[],1)中的那个'[]'是干什么的,有什么意义?还是只是一个固定的格式?

3个回答

说明 A 是数组,没有其它含义。请看以下两个声明:

C = max(A,B)
返回一个和A和B同大小的数组,其中的元素是从A或B中取出的最大元素。

C = max(A,[],dim)
返回A中有dim指定的维数范围中的最大值。

这是一个数组格式,还是空的数组,如果在里面输入数据就不是空的

你的意思是[]里面可以加东西?我试过了啊,显示错误啊

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
求教matlab的A*算法源代码!!!
欢迎使用Markdown编辑器写博客 本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦: Markdown和扩展Markdown简洁的语法 代码块高亮 图片链接和图片上传 LaTex数学公式 UML序列图和流程图 离线写博客 导入导出Markdown文件 丰富的快捷键 快捷键 加粗 Ctrl + B 斜体 Ctrl + I...
求教 新人求教
在myeclipse中运行出现这些错误 求高人指点 万分感谢rn信息: Server startup in 2181 msrnjava.lang.ClassNotFoundException: com.oracle.jdbc.Driverrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at java.lang.ClassLoader.loadClassInternal(Unknown Source)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Unknown Source)rn at util.DB.(DB.java:16)rn at manager.UserManager.checkUser(UserManager.java:51)rn at manager.UserManager.insertUser(UserManager.java:66)rn at servlet.RegisterServlet.doGet(RegisterServlet.java:23)rn at servlet.RegisterServlet.doPost(RegisterServlet.java:34)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)rnjava.sql.SQLException: No suitable driverrn at java.sql.DriverManager.getConnection(Unknown Source)rn at java.sql.DriverManager.getConnection(Unknown Source)rn at util.DB.(DB.java:26)rn at manager.UserManager.checkUser(UserManager.java:51)rn at manager.UserManager.insertUser(UserManager.java:66)rn at servlet.RegisterServlet.doGet(RegisterServlet.java:23)rn at servlet.RegisterServlet.doPost(RegisterServlet.java:34)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)rn2014-8-28 11:18:30 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet RegisterServlet threw exceptionrnjava.lang.NullPointerExceptionrn at util.DB.(DB.java:31)rn at manager.UserManager.checkUser(UserManager.java:51)rn at manager.UserManager.insertUser(UserManager.java:66)rn at servlet.RegisterServlet.doGet(RegisterServlet.java:23)rn at servlet.RegisterServlet.doPost(RegisterServlet.java:34)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)
新人求教!
有个问题在网上各种找解决方案无果。rnrn错误:rnHTTP Status 404 - /abc/rnrntype Status reportrnrnmessage /abc/rnrndescription The requested resource is not available.rnrnApache Tomcat/7.0.42rnrnrnabc是在webapps目录下的一个目录,我在里面放了一个hello.jsp文件,tomcat启动后我访问localhost:8080/manager/htmlrn然后再点击abc这个目录就报了这个错误。rn我把hello.jsp放在ROOT目录下可以正常打开rnrnTomcat Version JVM VersionrnApache Tomcat/7.0.42 1.7.0_25-b17rnrnweb.xml文件的内容:rn[code=text]rnrnrnrn Tomcat Documentationrn rn Tomcat Documentation.rn rnrn[/code]rn
新人求教!!
最近刚刚接触linux和android系统,遇到一个问题请教大虾们:rnrn一条shell命令用来把3g 网卡mount起来rnmount -t usbfs none /proc/bus/usbrnrn在adb shell上能顺利执行,但是写成mnt.shrnrn#!/system/bin/shrnmount -t usbfs none /proc/bus/usbrnrn在adb shell上就没法执行了,出错信息是:rnmnt.sh:not found rnrn我已经chmod 777 mnt.sh成功了。是不是我的脚本文件有问题啊?rnrn如果我想把上述的mount命令在c语言文件里面执行用什么函数啊?我试了execlp, system这些命令都没有成功!苦于刚刚接触linux所以还请大虾们不吝赐教!!
新人求教
import java.io.*;rnimport java.util.*;rnpublic class compareStrrnrn public void compareStr(String a,String b)rn boolean m = Arrays.equals(InsortStr(a),InsortStr(b));rn if(m)rn System.out.println("the two strings is match");rn elsern System.out.println("the two strings is not match");rn rn public char[] InsortStr(String a)rn char[]c = a.toCharArray();rn Arrays.sort(c);rn return c;rn rnpublic static void main(String[] args)rn System.out.println("please input two strings split with space");rn BufferedReader br = new BufferedReader(new InputStreamReader(System.in));rn tryrn String s = br.readLine();rn System.out.println(s);rn String[] names = s.split(" ");rn for (int i=0;i
新人求教..............
public static void main (String[] args)rn中main函数里面是什么意思??rn为什么用数组??
求教,新人
[code=C/C++][/code]typedef struct _studentrnrn CString strName;rn CString strAge;rn CString strSex;rn CString strStart;rn CString strEnd;rn CString strGrade;rnInfoite;rnrnclass CDBControl rnrnpublic:rnrn CDBControl();rn virtual ~CDBControl();rn void DBConnection();rn void ExeQuery(CString strCommand);rn void AddItem_member(Infoite oInstru);rn void GetItem_menber(Infoite oInstru);rnrnpublic:rn _ConnectionPtr m_pConnection;rn _RecordsetPtr m_pRecordset;rn;rn大家帮我看一下上面那个结构体的定义,有问题吗?为什么我在.h里面定义的这个结构体,在.CPP里面使用会出现rnE:\TANGLX\MemberOri\DBControl.cpp(37) : error C2511: 'GetItem_menber' : overloaded member function 'void (struct CDBControl::_student &)' not found in 'CDBControl'rn e:\tanglx\memberori\dbcontrol.h(15) : see declaration of 'CDBControl'rn这个错误?
新人求教~~
本人刚学Java几天,学到数据类型转换时不太明白。rn书上有一个作业是:编写Java程序,并将所有整数型数值全部转换成int型,并将转换后的值输出。rn大神们能教教我这个该怎么写吗?谢谢啦!
新人求教。
我新学的C语言! liunx 系统 进入终端 打 vi aaaa.crnrn#include rnint main (void)rnrn int n, n2, n3;rn rn n = 2;rn n2 = n * n;rn n3 = n2 * n2;rnprintf ("n = %d, n2 = %d, n3 = %d \n". n, n2, n3);rnreturn 0;rnrnrngcc aaaa.crnaaaa.c:在函数‘main’中:rnaaaa.c:8:36:错误:在非结构或联合中请求成员'n'rnrn怎么回事 以前不会这样的,
新人求教.
想写个程序用于监控,游戏服务端的运行状态.批量启动或停止 单个停止和启动啥的. 该如何实现? 不是只有一个服务端.有好几个同名服务端.
新人求教~~!!
我想写一个文件下载程序~~简单下载软件~请问大虾怎么写。最好能给出主要的语句
新人求教,
想自学html 需要什么书,推荐一本
相关热词 c# login 居中 c# 考试软件 c# 自然语言分析 c# 分段读取文件 c# 泛型反射 c#打断点 c# 时间转多少秒 c# 线程函数加参数 c# modbus 读取 c#查询集合表