小编Zak*_*har的帖子

找到最大凸面积

我的问题与普劳问题非常相似; 但有这种差异:

如何找到可以适合非凸区域的最大凸区域?

例如,考虑这个非凸区域:

图片

任何想法或解决方案将不胜感激,谢谢.

convex non-convex

7
推荐指数
1
解决办法
1458
查看次数

使用MatLab将逻辑转换为矩阵

在MatLab环境中,如何将Logical转换为矩阵形式?

例如,请考虑以下逻辑:

 [0 1 0 1]
 [0 0 1 0]
 [1 0 1 1]
 [0 1 0 0]
Run Code Online (Sandbox Code Playgroud)

matlab matrix

2
推荐指数
1
解决办法
9959
查看次数

列引用的歧义

我尝试运行一个简单的代码如下:

Create Table weather (
    city        varchar(80),
    temp_lo     int,
    temp_hi     int,
    prcp        real,
    date        date
);
Insert Into weather Values ('A', -5, 40, 25, '2018-01-10');
Insert Into weather Values ('B', 5, 45, 15, '2018-02-10');

Create Table cities (
    city        varchar(80),
    location    point
);
Insert Into cities Values ('A', '(12,10)');
Insert Into cities Values ('B', '(6,4)');
Insert Into cities Values ('C', '(18,13)');

Select * From cities, weather Where city = 'A'
Run Code Online (Sandbox Code Playgroud)

但我得到的是

错误:列引用"city"不明确.

我的代码出了什么问题?

postgresql postgresql-9.6

2
推荐指数
2
解决办法
1025
查看次数

标签 统计

convex ×1

matlab ×1

matrix ×1

non-convex ×1

postgresql ×1

postgresql-9.6 ×1