Community Profile

photo

Ben


Last seen: 7 months ago Active since 2013

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


Finding the "center integers" of an array
Consider the input vector: [1 2 3 10 11 12 15 16 17 20 21 22 23 24 30]' Let's group the elements of the input vector in th...

9 years ago | 3 answers | 0

3

answers

Question


Is there a way to fully display a symbolic answer that is truncated in the command window?
I am trying to display a symbolic answer in the command window. However, the entire symbolic expression cannot be displayed. If ...

9 years ago | 1 answer | 2

1

answer

Question


How do you save a text file containing symbolic variables?
I want to be able to write symbolic variables to a .txt file and then be able to look at that file. I'm trying to do: A = s...

9 years ago | 0 answers | 0

0

answers

Question


How do you transform a vector of numbers into a cell of strings?
I have a vector of numbers: A = [1 2 3 4 5]'; I want to change it to a cell of strings, such as the one I've declared here...

10 years ago | 2 answers | 1

2

answers

Question


Comparing vectors of different size
How do I compare two vectors of different size? I want to compare them using the "greater than or equal to operator" or "less th...

10 years ago | 1 answer | 0

1

answer

Question


After taking the time derivative of a symbolic expression, how do you then differentiate that new expression with respect to another variable's time derivative?
I apologize for such a poorly worded question, but I'm not quite sure how else to word it. You're given, x and y, both symbol...

10 years ago | 2 answers | 0

2

answers

Question


Rounding each individual value in a vector to values in another vector
If you have v1 = [2.5 3.74 7.92] (These numbers are meant to be random) and you wanted to round these numbers up or down, you us...

10 years ago | 1 answer | 0

1

answer

Question


Is there a function or method that rounds a value towards a entries of a vector?
Say we have the value 5.5. If we do floor(5.5), we get 5. If we do ceil(5.5), we get 6. Is there a function or method that can b...

10 years ago | 2 answers | 0

2

answers

Question


How do you vectorize the following for loop?
I'm trying to vectorize this for loop. A and B are both vectors. The general idea is that D should be a vector made up of 0's an...

10 years ago | 1 answer | 0

1

answer