Community Profile

photo

Will Donahue


Louisiana State University

Active since 2013

Statistics

All
  • Thankful Level 1
  • Solver

View badges

Content Feed

View by

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

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

8 years ago

Question


Stack Trace: MEX crash Seg Fault
Hi Everyone, I have looked but can't find an answer. What do the numbers mean next to my function name in my stack trace (in ...

9 years ago | 1 answer | 0

1

answer

Question


Creating 2d Plots colors representing log scale weights
Hi everyone, So I have a 2d plot that represents the geometry of a structure and need to plot wights i calculated on each seg...

9 years ago | 0 answers | 0

0

answers

Question


Is there a way to change the active figure without making it visible?
Hi Everyone, My Situation: I am trying to use a MATLAB plot to generate a representation of a geometry I have. The Geo...

9 years ago | 1 answer | 0

1

answer

Question


displaying data in a sectioned annulus
Hi Everyone, I am working on a project of calculating various values to an annulus. I am calculating these values to 10 separ...

9 years ago | 3 answers | 0

3

answers

Question


Fitting two related functions to two sets of data
Hi Everyone, I need to fit the two functions below <</matlabcentral/answers/uploaded_files/18358/image003.png>> and ...

9 years ago | 0 answers | 0

0

answers

Solved


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

10 years ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

10 years ago

Solved


Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

10 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

10 years ago

Solved


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

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

10 years ago

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

10 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

10 years ago

Solved


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

10 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

10 years ago

Question


How do i combine two 2D matrices in one 3D matrix, where each 3D pixel represents the sum of two elements.
I am trying to create a 3D matrix that calculates all of the elements the following equation: x*cos(theta)+y*sin(theta) I ...

10 years ago | 0 answers | 0

0

answers