![]() |
在任何Java库中都可以使用MATLAB的“ reshape”功能吗?
我正在尝试使用Java中的MATLAB中提供的reshape函数的功能。 Java是否提供任何重塑实现?
[B]回答:[/B] 我在[URL="http://forums.sun.com/thread.jspa?threadID=5429447"]阳光论坛[/URL]上发现了这个(稍作修改)。 public class Test { public static void main(String[] args) { double[][] ori = new double[][] { {1,2,3}, {4,5,6}, {7,8,9}, {10,11,12} }; double[][] res = reshape(ori,2,6); for(int i = 0;i |
所有时间均为北京时间。现在的时间是 18:19。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.