How to input logical value to From Workspace Block?

Logical Operator Block successfully reads input data from Constant Block, for example [1 0 1]. But it doesn't read the same massive from workspace. How to input logical value to From Workspace Block in correct form?

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2016년 4월 9일
If you want to use a=[1 0 1] as a constant, then use constant block. To use it as a signal you can use a from workspace block. In this case like indicated in the help, the first element of each row correspond to a time stamp. You can write for example
a=[0 1 0 1];
The first element of a corresponds to a time 0. the output will be [1 0 1]

추가 답변 (1개)

Radimtsev Andrey
Radimtsev Andrey 2016년 4월 9일

0 개 추천

It works! Thank you very much for your help!

카테고리

Community Treasure Hunt

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

Start Hunting!

Translated by