ArrayPlot in Simulink. I am not able to plot a simple column vector using array plot?

9 ビュー (過去 30 日間)
Roshan Sharma
Roshan Sharma 2018 年 3 月 23 日
コメント済み: Roshan Sharma 2018 年 3 月 23 日
I am simply trying to plot a column vector having some N number of elements. I first make a vector in a MATLAB script say mydata = rand(N,1). I then run the script and load the variable mydata into the workspace. In simulink, I then use a constant block and use 'mydata' in the constant value: field of the constant block in Simulink. Then I connect the constant block to an array plot availbale in DSP toolbox. Unfortunately I cannot plot the column vector. In the arrayplot window the following message is displayed: "Input processing of columns as channels (frame based) cannot be used. This scope uses continuous sample time or the input sample time is either continuous, infinite, or undefined." Can somebody help me as to how can I plot a column vector using arrayplot in Simulink? Thanks.
  2 件のコメント
Birdman
Birdman 2018 年 3 月 23 日
Do you have to use ArrayPlot?
Roshan Sharma
Roshan Sharma 2018 年 3 月 23 日
I am trying to plot a given vector vs another vector of the same length. I am not trying to plot a signal verses time. Thus I guess I cannot use the scope (normal scope) in simulink. The normal scope is simulink plots a data signal against time. I am not aware of other plotting blocks in simulink that can plot array or vectors. If there are other better ways to do so, it would be really nice to know. Thanks.

サインインしてコメントする。

回答 (1 件)

Roshan Sharma
Roshan Sharma 2018 年 3 月 23 日
This is all I am trying to do. But I can't seem to use arrayplot to plot a vector of data.

カテゴリ

Help Center および File ExchangeScopes and Data Logging についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by