Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB I have an array, SinRay. I want to replace the negative numbers with 0 using logical indexing, so that the vector length doesn't change.

MATLAB

I have an array, SinRay. I want to replace the negative numbers with 0 using logical indexing, so that the vector length doesn't change. I found that SinRay(SinRay < 0) = 0; works how I want it to. However, I have to assign this new array to SinPositive, which I don't understand how to do. Is it possible using the method illustrated? Thank you!

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

Where do you use oral communication in business? Section B

Answered: 1 week ago

Question

Challenges Facing Todays Organizations?

Answered: 1 week ago