问题评论
-
6条评论
玛利斯2013年3月26日
此问题描述将受益于可以预期的输入的示例(以及正确的输出)。
Based on the description, I thought that I had to replace the string 'o'clock' with the string 'o''clock' (so making it usable in MATLAB.). And no, I did not manage to create input like that.
取而代之的是,除了开始和末端报价外,您还需要用双引号替换每个引号。
所以'o''clock'==>'o''''''
孟汉2014年1月5日
一个例子会使它更清楚
Raihan Ahmedon 4 Sep 2015
I am not getting it .... Its always showing wrong
Jerivingtonon 30 May 2016
太奇怪了!!!
Jonathan Perry2016年9月30日
我发现,无论我添加多少个'',它只会添加一个。
Akash Srivastavon 27 May 2018
My answers are coming correct in MATLAB 2017b but not on this site.
解决方案评论
-
1条评论
Furkan Atak2021年7月20日
Learn regexprep. It makes such string-related questions easier.
-
1条评论
Jaya Lee2020年4月9日
weird+1
它在我的本地matlab_2019b中显示正确
-
1条评论
Bas-Jan Zandt2016年2月5日
MATLAB的Backslash Plague版本!
-
1条评论
Erik Zdanskyon 3 Feb 2016
目的是进行正确的预设,并填充它,而无需扩展字符串或重新填充其内容。可以更多地了解如何计算大小是一件好事。评估代码的标准不仅是代码大小,还包括内存和时间效率,以及编写和维护代码方面的效率。
-
1条评论
乔纳森·坎普利(Jonathan Campelli)2015年3月4日
我期待辨别该输出的确应该是什么。遇到困难。
问题最近的求解器2247
Suggested Problems
790个求解器
343个求解器
688 Solvers
find the maximum element of the matrix
411求解器
484个求解器