Community Profile

photo

Crystal Lee


Last seen: 2 years ago Active since 2018

Statistics

All
  • Thankful Level 2
  • Thankful Level 1
  • Solver

View badges

Content Feed

View by

Question


How to get rid of Warning"Unexpected use of '[' in a scalar context."
a part of the function has: if the input A (a vector) matches what is stated, the statement runs. if A == [1,3,3] ...

5 years ago | 2 answers | 0

2

answers

Question


How to get sum of a range
I am trying to get the code below to output the number of elements within v(a vector) that are below 2 and above 4. sum(s...

5 years ago | 1 answer | 0

1

answer

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

6 years ago