Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB Logical Operations Question: So I'm streaming real time EMG data and it produces a 1x8 matrix named: emgg. I want to make a conditonal

MATLAB Logical Operations Question:

So I'm streaming real time EMG data and it produces a 1x8 matrix named: emgg. I want to make a conditonal statement that if all the emg signals are within a specific range (e.g emgg(4)) or specified discrete numbers ( e.g. emgg(1) ) that it should display ('true'). The problem is, while streaming data it produces 'true' despite the signals not matching the values I specified. Is something wrong with my syntax? If so, how can I go about fixing it, thanks.

if (emgg(1) == -0.0391 || -0.0234 || -.0078 || -.0313 || -0.0156 || 0.0078 || 0 || 0.0156) && (emgg(2)== -0.0703 || -.0469 || -.0234 || 0 || -.0391 || -.0313 || -.0156 || -.0078 || .0078 || .0156 || .0234) && (-.2422

disp('True')

else

disp( ' Not True')

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

Students also viewed these Databases questions