- 博客(7)
- 收藏
- 关注
原创 Python中的Matplotlib
Matplotlib Matplotlib由大量可视化库组成 matplotlib.pyplot是绘制各类可视化图形的命令子库,相当于快捷方式。 import matplotlib.pyplot as plt plot绘图函数 :保存数据的维度 秩(rank):轴的数量 ndarray对象的属性 属性 说明 .ndim 秩,即轴的数量或维度的数量 .shape ndarray对象的尺度,对于矩阵,n行m列 .size ndarray对象的元素个数,相当于.shape中的n*m的值 .dty...
2019-01-11 21:50:11
494
原创 高精度运算
高精度运算 所谓高精度算法,即用数组来储存整数,模拟手算的方法进行四则运算。 小学生算术 阶乘的准确性 高精度运算类 bign 小学生算术 计算两个整数在相加时需要多少次进位。假设输入的数字都不超过9个数字。 Input example: 123 456 555 555 123 594 0 0 Output example: 0 3 1 // int 的上限是2...
2018-08-15 17:58:27
435
原创 Matlab —— 基础绘图
基础绘图 Basic plotting Graphical object properties Basic Plotting Plot from “Data” Stratagies Generate the numeric values of function over a specific range Display the data “point” in a graph...
2018-08-10 17:30:31
1201
原创 搜索
搜索 线性搜索 二分搜索 散列法 线性搜索 从数组开头顺次访问各元素,检查该元素是否与目标元素相等。 一旦相等则返回该元素的位置并结束搜索。 如果检查到数组末尾仍未发现目标值,则返回一个特殊值来说明该情况。 线性搜索的效率很低,但适用于任何算法。 AOJ : ALDS1_4_A 最容易想到的实现: linearSearch() for i 从 0 到 n ...
2018-08-05 16:43:20
5216
原创 Matlab —— 档案与变量存取
档案与变量存取 Variables : string, structure, cell Data access Variable (Data) Type Conversion double() Convert to double precision single() Conver to single precision int8() Conve...
2018-08-04 23:43:02
604
原创 Matlab —— 结构化程式和自定函数
结构化程式和自定函数 Script writing Structured programming User-defined function Script writing Flow Control %% if, elseif, else // Execute statements if condition id true for // ...
2018-08-02 18:00:02
773
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人