'Output Port 1' of 'untitled/Error Rate Calculation' is not connected. Component:Simulink | Category:Block warning MATLAB System block 'untitled/MIMO Fading Channel' error occurred when invoking 'getOutputSizeImpl' method of 'comm.internal.MIMOFadingChannel'. The error was thrown from ' 'D:\Program Files\Polyspace\R2020a\toolbox\comm\comm\+comm\+internal\MIMOFadingChannel.m' at line 77'. Caused by: The signal input must be a double precision, 2-dimensional matrix with the number of columns equal to the number of transmit antennas. Component:Simulink | Category:Model error Error in port widths or dimensions. 'Output Port 1' of 'untitled/QPSK Modulator Baseband' is a [200x1] matrix.
时间: 2024-04-26 18:25:34 浏览: 11
这是一个关于Simulink模型的错误,出现了端口宽度或尺寸的问题。其中一个错误是 'untitled/Error Rate Calculation' 的 'Output Port 1' 没有连接。另一个错误是 'untitled/QPSK Modulator Baseband' 的 'Output Port 1' 是一个 [200x1] 矩阵。在第一个错误中,需要将 'Output Port 1' 与其他端口正确连接。在第二个错误中,需要将输出矩阵的列数与发送天线的数量相匹配。这些问题需要根据具体情况进行调试和解决。
相关问题
MATLAB System block 'untitled/MIMO Fading Channel' error occurred when invoking 'getOutputSizeImpl' method of 'comm.internal.MIMOFadingChannel'. The error was thrown from ' 'D:\Program Files\Polyspace\R2020a\toolbox\comm\comm\+comm\+internal\MIMOFadingChannel.m' at line 77'. Caused by: The signal input must be a double precision, 2-dimensional matrix with the number of columns equal to the number of transmit antennas. Component:Simulink | Category:Model error Error in port widths or dimensions. 'Output Port 1' of 'untitled/QPSK Modulator Baseband' is a [200x1] matrix. Component:Simulink | Category:Model error
这是一个关于Simulink模型的错误。其中一个错误是 'untitled/MIMO Fading Channel' 的 'getOutputSizeImpl' 方法调用时出现了错误,错误信息是 'The signal input must be a double precision, 2-dimensional matrix with the number of columns equal to the number of transmit antennas.'。另一个错误是 'untitled/QPSK Modulator Baseband' 的 'Output Port 1' 是一个 [200x1] 矩阵,这与模型要求的矩阵的维度不匹配。这些问题需要根据具体情况进行调试和解决。在第一个错误中,需要检查输入矩阵的维度和数据类型是否正确,并且确保列数等于发送天线的数量。在第二个错误中,需要将输出矩阵的维度和尺寸修改为模型要求的格式。
/home/vv/untitled5/main.cpp:6: error: undefined reference to `vtable for WorkerThread'
这个错误通常是由于在使用自定义的线程类时,没有正确声明和定义信号槽的原因导致的。
要解决这个错误,你需要确保在自定义的`WorkerThread`类中正确声明了信号和槽,并在相应的地方进行了定义。在你的代码中,你可能需要添加一个信号或槽的声明,并在类的实现部分进行定义。
以下是一个示例代码,展示了如何在自定义线程类中声明和定义信号槽:
```cpp
#include <QThread>
#include <QDebug>
// 自定义的工作线程类
class WorkerThread : public QThread
{
Q_OBJECT
public:
// 声明一个自定义的信号
void mySignal();
protected:
// 重写run()函数来执行线程任务
void run() override;
private slots:
// 声明一个槽函数
void mySlot();
};
// 定义信号的实现
void WorkerThread::mySignal()
{
qDebug() << "Signal emitted";
}
// 定义槽函数的实现
void WorkerThread::mySlot()
{
qDebug() << "Slot called";
}
// 定义run()函数的实现
void WorkerThread::run()
{
// 执行线程任务
}
```
请注意,为了正确使用信号槽机制,`WorkerThread`类需要使用`Q_OBJECT`宏进行标记,并且在类声明后面添加`#include "main.moc"`以便使用元对象编译器(moc)进行处理。
如果你的代码中已经正确声明和定义了信号和槽,那么请确保`.pro`文件中添加了`QT += core`来链接Qt核心模块。
希望这可以帮助你解决问题!如果还有其他疑问,请随时提问。