photo

Muhammad Akhtar


Active since 2016

Followers: 0   Following: 0

Message

Statistics

Feeds

View by

Question


Matlab cash register problem Syntax
Using  either  codes  from  Parts  A  or  B,  adjust  the  m-­‐‑file  in  a  way  such  that  it  will  calculate  the  cost  of...

8 years ago | 1 answer | 0

1

answer

Question


How to create a loop with the sum adding up to a given N?
The bread-and-butter of any program language is its ability to perform repeated calculations in a “loop”. Variables are often i...

8 years ago | 2 answers | 0

2

answers

Question


Make r a 1x5 vector using rand. Find the elements that have values <0.5 and set those values to 0 (use find).
Confused on how to write this code, r = rand(1,5); find(r<0.5)=0 tried that, didnt work. anything help. Thanks in ad...

8 years ago | 1 answer | 0

1

answer