-
his little function rounds a number (or the elements of a vector ot matrix) towa...
his little function rounds a number (or the elements of a vector ot matrix) towards the nearest number with N significant digits.
Examples:
roundsd(0.012345,3) returns 0.0123
roundsd(12345,2) returns 12000
This is a useful complement to Matlab s ROUND, ROUND10 and ROUNDN (Mapping toolbox), especially when dealing with data with a large variety of order of magnitudes.
I was about to upload this file when I found "sd_round.m" by Edward Zechmann (see aknowledgment), which has similar feature (and more). But, because my script is very different in coding (much much shorter), I decided to share it anyway.
- 2022-06-30 21:07:55下载
- 积分:1
-
三维推箱子游戏源代码,非常漂亮
三维推箱子游戏源代码,非常漂亮-3D viewing the game"s source code is very beautiful
- 2022-05-31 01:28:19下载
- 积分:1
-
一个计算线性方程组的源程序,可以有多种算法选择
一个计算线性方程组的源程序,可以有多种算法选择-a calculation of linear equations of the source can be many choices Algorithm
- 2023-03-23 02:40:04下载
- 积分:1
-
网络神经代码,是综合评价较好的一种方法,该程序是实现该方法途径....
网络神经代码,是综合评价较好的一种方法,该程序是实现该方法途径.-Neural network code, is a comprehensive evaluation of a better way to realize that the procedure was in the approach.
- 2022-08-26 12:35:29下载
- 积分:1
-
陈列馆问题:
1.问题描述
世界名画陈列馆有m*n个陈列室组成。为了防止名画被盗,需要在陈列室设置警卫机器人哨位,每算法个警卫机器人除了监视它所在的陈列...
陈列馆问题:
1.问题描述
世界名画陈列馆有m*n个陈列室组成。为了防止名画被盗,需要在陈列室设置警卫机器人哨位,每算法个警卫机器人除了监视它所在的陈列室之外,还可以监视与它所在的陈列室相邻的上,下,左,右4个陈列室。
2.要求
试要求,设计一个安排警卫机器人哨位的算法,使得名画陈列馆的每个陈列室都在警卫机器人监视之下,切所用的警卫机器人数目最少。
3.结果输出
将计算的警卫机器人数及其最佳哨位安排输出到文件output.txt。文件的第1行是警卫机器人数;接下来的m行中每行n个数,0表示无哨位,1表示哨位。-Gallery problem:
1. Problem Description
Painting gallery in the world there are m* n composed of a showroom. In order to prevent the paintings stolen, you need to set the security robot sentinel showroom, each algorithm is a security robot in addition to monitor it in the showroom, you can also watch it in the showroom with the adjacent upper and lower, left, Right 4 showrooms.
2. Demand
Test requirements, design an arrangement guard robot sentinel algorithm, making paintings in each gallery showroom are under the surveillance of the security robot, cutting the number of robots used by security guards at least.
3. The resulting output
Will calculate the number of security robots and the best sentinel ar
- 2022-06-27 18:30:39下载
- 积分:1
-
描述
Description
Calculate a*b
Input
Two integer a,b (0
- 2022-04-13 04:20:00下载
- 积分:1
-
16*16点阵显示汉字,能够实现汉字循环移动,已经调试过了
16*16点阵显示汉字,能够实现汉字循环移动,已经调试过了-16* 16 dot matrix display Chinese characters, Chinese characters can be achieved recycling movement, has been passed to debug
- 2022-10-10 02:40:03下载
- 积分:1
-
- 2022-03-28 13:42:07下载
- 积分:1
-
这是卡耐基SSD5 EX2
这是卡耐基梅隆大学的ssd课程的ssd5联系2答案-this is the icarnegie ssd5 ex2
- 2022-01-31 09:20:24下载
- 积分:1
-
非常流行的游戏!希望你喜欢!java是用来希望它可能是我们的语言…
很受欢迎的游戏制作!
希望大家喜欢!
使用语言是java
希望对大家有用-very popular game! Hope you like! Java is the language used to hope it may be useful
- 2022-05-31 15:17:48下载
- 积分:1