Community Profile

photo

Carl Witthoft


Autoliv

65 total contributions since 2015

null

Contact

Carl Witthoft's Badges

  • First Answer
  • Commenter
  • Solver

View details...

Contributions in
View by

Submitted


Replacement for CLEAR to avoid destructive behavior
this clear.m ensures you'll never accidentally type "clear" or "clear all" and wipe your workspace.

5 Monate ago | 0 downloads |

Answered
How to set legend marker size
Best way: see Stackoverflow question 2871747 % thanks to , Luis Mendo and Lea [~, objh] = legend({'one plot', 'another plot'...

5 Monate ago | 1

Question


Why is text() unable to orient output in 3 axes?
text(x,y,z,string,'rotation',theta) is only capable of rotating about one axis, and even more annoyingly the text rotates on its...

fast 2 Jahre ago | 1 answer | 0

1

answer

Submitted


why(varargin)
Enhanced version of MATLAB: base:why

etwa 2 Jahre ago | 0 downloads |

Submitted


fitconicsections package
Fit data to conic section curves

fast 3 Jahre ago | 3 downloads |

Submitted


clplot( x, y, cutval, cols, varargin )
Creates a line plot whose color depends on which 'slice' of the y-range the y-value falls into.

mehr als 3 Jahre ago | 0 downloads |

Thumbnail

Question


Why isn't strfind written to return a value in all cases?
A very common programming question (e.g. <http://www.mathworks.com/matlabcentral/answers/167892-why-does-the-absolutely-not-work...

mehr als 3 Jahre ago | 1 answer | 0

1

answer

Solved


Increment a number, given its digits
Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...

fast 4 Jahre ago

Solved


Matrix of almost all zeros, except for main diagonal
Write a program to input an integer n and build a n-by-n matrix with the numbers 1,2,...,n on the main diagonal and zeros elsewh...

fast 4 Jahre ago

Solved


Knight's Tour Checker
Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...

fast 4 Jahre ago

Solved


Create an array (n,n) where only diagonal elements are '1' and others are '0'
Create an array (n,n) where only diagonal elements are '1' and others are '0' EX: n = 3; then Resultant array would be [ 1 0...

fast 4 Jahre ago

Solved


Sum my indices
Given inputs M and N (in that order), output an MxN matrix whose entries are equal to the sum of their indices. Example input...

fast 4 Jahre ago

Solved


Small aircraft weight limit
Write an if-else statement that evaluates to true if the sum of passengerWeight and cargoWeight is less than or equal maxWeight....

fast 4 Jahre ago

Solved


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

fast 4 Jahre ago

Solved


Sums with Excluded Digits
Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9. no...

fast 4 Jahre ago

Solved


Writing a while loop
Write a while loop that continues to increment userValue by 5 until userValue is less than 0.

fast 4 Jahre ago

Solved


Determine the full width at half max
Determine the full width at half max of a curve. The full width at half maximum (FWHM) is a parameter which is used for desc...

fast 4 Jahre ago

Solved


What's the missing interior angle?
I'm talking about polygons... The sum of the interior angles of a triangle is 180 degrees. The sum of the interior angles of a...

fast 4 Jahre ago

Solved


While loop: Summation
Write a while loop that assigns summedValue with the sum of all values from 1 to userNum. Assume userNum is always greater than ...

fast 4 Jahre ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

fast 4 Jahre ago

Solved


Find the two most distant points
Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

fast 4 Jahre ago

Solved


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

fast 4 Jahre ago

Solved


The Goldbach Conjecture, Part 2
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

fast 4 Jahre ago

Submitted


fundy(x)
provides values for many fundamental physical constants

fast 4 Jahre ago | 0 downloads |

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

fast 4 Jahre ago

Solved


Summing Digits within Text
Given a string with text and digits, add all the numbers together. Examples: Input str = '4 and 20 blackbirds baked in a...

fast 4 Jahre ago

Solved


Making change
Given an amount of currency, return a vector of this form: [100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01] Example: Input a = ...

fast 4 Jahre ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

fast 4 Jahre ago

Solved


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

fast 4 Jahre ago

Solved


Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

fast 4 Jahre ago

Load more