Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started