Problem 564. How to subtract?
解决方案Stats
问题评论
-
7条评论
穆罕默德·阿蒂亚(Mohamed Atyya)2017年10月30日
good
Nipun Gargon 8 Jun 2018
function z = mysub(x,y)
z = num2str(str2num(x) - str2num(y));
end
为什么这对此代码不起作用?
Matt Offredion 8 Mar 2019
好的
马克·桑德森on 14 Mar 2019
Hi. My code only prints out '-' for a negative number but not '+' for a positive. Can anyone help? function Z = mysub(X,Y); W = (str2num(X))-(str2num(Y)); Z = num2str(W); end
Rafael S.T. Vieira2020年7月2日
实际上,每个人都有14个或更少的字符... 15如果我们计算标志。
Rafael S.T. Vieira2020年7月2日
马克·桑德森(Mark Sanderson),如果w> 0 z = ['+'...]
Valeriu Mihailov2022年5月28日
如何解决此问题,但不使用任何转换功能,例如Num2Str,str2num,str2double ...
解决方案Comments
-
1 Comment
Maryam Hctrak Yousef2020年3月28日
小菜一碟
-
1 Comment
wu2018年10月10日
+ - =
-
1 Comment
A Con 31 Jul 2018
字符串到双重和sprintf
-
1 Comment
Giuseppe Ridinòon 23 Nov 2017
需要计算差异...不是总!:)
-
1 Comment
看on 24 Oct 2017
抱歉,只需尝试Regexp即可。不知何故,计算出完全错误的大小.....
问题最近的求解器1473
建议的问题
21077求解器
2118求解器
Who knows the last digit of pi?
601求解器
603 Solvers
249 Solvers