Matlab:ndgrid函数
来源:互联网 发布:淘宝卖家虚拟电话 编辑:程序博客网 时间:2024/05/29 02:27
>> x0=-3:3;
y0=-2:2;
[x,y]=ndgrid(x0,y0)
x =
-3 -3 -3 -3 -3
-2 -2 -2 -2 -2
-1 -1 -1 -1 -1
0 0 0 0 0
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
y =
-2 -1 0 1 2
-2 -1 0 1 2
-2 -1 0 1 2
-2 -1 0 1 2
-2 -1 0 1 2
-2 -1 0 1 2
y0=-2:2;
[x,y]=ndgrid(x0,y0)
x =
-3 -3 -3 -3 -3
-2 -2 -2 -2 -2
-1 -1 -1 -1 -1
0 0 0 0 0
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
y =
-2 -1 0 1 2
-2 -1 0 1 2
-2 -1 0 1 2
-2 -1 0 1 2
-2 -1 0 1 2
-2 -1 0 1 2
-2 -1 0 1 2
>> [x,y]
ans =
-3 -3 -3 -3 -3 -2 -1 0 1 2
-2 -2 -2 -2 -2 -2 -1 0 1 2
-1 -1 -1 -1 -1 -2 -1 0 1 2
0 0 0 0 0 -2 -1 0 1 2
1 1 1 1 1 -2 -1 0 1 2
2 2 2 2 2 -2 -1 0 1 2
3 3 3 3 3 -2 -1 0 1 2
0 0
- Matlab:ndgrid函数
- ndgrid 和 meshgrid 函数-Matlab
- Matlab:一个简单例子了解ndgrid函数
- 【matlab】函数meshgrid的用法详解(生成网格矩阵)和ndgrid的区别及用法
- [MATLAB]MATLAB常用函数
- [Matlab] Matlab cell函数
- matlab函数
- MATLAB函数
- matlab 函数
- matlab函数
- Matlab函数
- matlab函数
- Matlab函数
- Matlab 函数
- Matlab函数
- MATLAB函数
- Matlab函数
- Matlab函数
- AXIS2发布WebService服务示例(Eclipse+AXIS)
- 操作系统面试题
- 智能指针的两种实现(引用计数)
- 数据库概念初始
- tableau server 离线加载自定义谷歌地图瓦片
- Matlab:ndgrid函数
- linux目录和文件名的命名规则
- 解决fastjson内存对象重复/循环引用json错误
- mysql 优化(3)聚簇索引和非聚簇索引
- 【Leetcode】Verify Preorder Serialization of a Binary Tree
- 资料收藏
- Java学习笔记之String、StringBuffer和StringBuilder
- 操作系统常见面试题总结
- 【Leetcode】Binary Tree Zigzag Level Order Traversal