photo

Christopher Smith


Last seen: 1 day ago Active since 2017

Followers: 0   Following: 0

Statistics

All
MATLAB Answers

7 Questions
0 Answers

Cody

0 Problems
17 Solutions

RANK
17,742
of 300,742

REPUTATION
2

CONTRIBUTIONS
7 Questions
0 Answers

ANSWER ACCEPTANCE
71.43%

VOTES RECEIVED
2

RANK
 of 21,061

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK
27,159
of 170,691

CONTRIBUTIONS
0 Problems
17 Solutions

SCORE
193

NUMBER OF BADGES
1

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Discussions

AVERAGE NO. OF LIKES

  • Thankful Level 3
  • Solver

View badges

Feeds

View by

Solved


Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to find the logical indices o...

4 months ago

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

4 months ago

Question


Is it possible to make this tiny loop faster?
It seems that it might be possible to make this loop faster. Does anyone have any thoughts? I have to call a loop like this mi...

7 months ago | 2 answers | 0

2

answers

Solved


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

9 months ago

Solved


Find max
Find the maximum value of a given vector or matrix.

9 months ago

Solved


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

9 months ago

Solved


Inner product of two vectors
Find the inner product of two vectors.

9 months ago

Solved


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

9 months ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

9 months ago

Question


Generate Code for transforming structure array to cell array
I have a structure array that I want to convert to a cell array. I can do this in MATLAB, but this function is part of a larger...

10 months ago | 0 answers | 0

0

answers

Question


Make for loop more efficient
I have a function with the following for-loop that seems to be pretty efficient. However, I'm wondering if this is the most eff...

10 months ago | 0 answers | 0

0

answers

Solved


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2 3 3 3 4...

10 months ago

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...

10 months ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...

10 months ago

Solved


Return area of square
Side of square=input=a Area=output=b

10 months ago

Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

10 months ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

10 months ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

10 months ago

Question


Fast reorganization of cell arrays
I have two cell arrays which store row indices to other arrays for processing. TB is a column cell array that stores the indice...

10 months ago | 1 answer | 0

1

answer

Question


Eliminate for-loop in recursive computation?
I'm trying to speed up a recursive calculation that is currently using a for-loop. A minimum working example is below. There a...

11 months ago | 1 answer | 0

1

answer

Solved


Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

11 months ago

Solved


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

11 months ago

Question


How can I more fully vectorize to eliminate for loops?
I have three vectors that must be comined to form a forth vector as where . I want to completely vectorize this computation to...

3 years ago | 1 answer | 0

1

answer

Question


How do I include my simulink model in a live script
I have created a live script that calls a simulink model. The live script calls the simulink model just fine and it runs well, ...

8 years ago | 1 answer | 2

1

answer