photo

Jordan


Active since 2011

Followers: 0   Following: 0

Statistics

All
  • Thankful Level 1
  • Solver

View badges

Feeds

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

Question


Adding directories to MCC with symbolic links
Running mcc on linux x86_64 using R2010b. I am trying to add a directory structure to mcc command with '-a'. Inside one of th...

9 years ago | 0 answers | 0

0

answers

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

9 years ago

Solved


Stuff the Board
You have a stack of tiles to put onto an array-like playing board. Each tile has a number (always an integer), and the board var...

10 years ago

Solved


Scoring for oriented dominoes
Given a list of ordered pairs, and the order they should be placed in a line, find the sum of the absolute values of the differe...

10 years ago

Solved


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

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

10 years ago

Solved


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

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

Question


MCR using custom Java archives (jar)
I am trying to use deploytool to deploy an application with custom built java jar archives. The issue is that we include a bunch...

12 years ago | 1 answer | 0

1

answer

Answered
Using MEX compiler options "-Dname=value"
Pierre, your addendum assumption was more correct. I needed to determine the right escape sequence. The following works, but cou...

13 years ago | 0

Question


Using MEX compiler options "-Dname=value"
Hi, I am trying to compile a mex cpp function which I need to define a preprocessor symbol (i.e. mex -DXX="I AM A STRING" xxx...

13 years ago | 3 answers | 0

3

answers