Community Profile

Contact

Professional Interests: Aerodynamics

Top 1% contributor

I realize this is a pretty old thread, but I think I've figured out what might have been causing a lot of the confusion in there...

1

Answered 9 months ago

I'm having an issues with a class that I've written. The class is a subclass of another class which is itself a handle class. ...

3 Answers

2

Asked 4 years ago

Apparently the above code would actually work OK if size_t were a 32-bit integer (which I had assumed it was). On my 64-bit lin...

accepted

0

Answered 4 years ago

Is there any good way to load data from files (hopefully MAT-files) into a Matlab function that will be going through the Matlab...

4 Answers

I've run into an interesting problem with parfor... I'm trying to use parfor to evaluate a bunch of different input cases of ...

When using the MATLAB Coder to create a .mex-file, the "Code Style" settings in the GUI settings menu are not available. They o...

1 Answers

Asked 2 years ago

I'm trying to create a MATLAB Function block with a variable-sized output in a Simulink model (R2014A and R2013B). All that's...

I'm playing with the new (R2013b) Simulink "MATLAB System" block, but I can't seem to find any way to connect Bus object inputs ...

Asked 3 years ago

Is it impossible to get/set the state of a Memory block in a Simulink model? When I create the simplest possible model with a M...

I'm trying to use a script to build a Simulink model with a "Matlab Function Block" in it. The method <http://www.mathworks.com...

I'm writing a piece of Matlab code that will be used in a Simulink "Matlab Function" block, meaning that it will get run through...

I've been trying to write some Matlab Coder code that needs a bunch of coder.ceval calls to functions in mat.h and mex.h. I've ...

Hi, I'm trying to use the Matlab "mat" and "mx" C-libraries to use .mat-files inside of a Matlab function I'm compiling with ...

I'm try to get up and running with GPU computing through the Parallel Computing Toolbox, but I'm having trouble getting the tool...

2 Answers

The goal is to create a function that will return a single "NaN" without using the nan function. I am interested to see how many...

Solve this!

3 years ago

1:3 -> 0; 3:5 -> 6

4 years ago

Input x is the sampled signal vector, may have both AC and DC components. Output vector y should not contain any AC component. ...

Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

Input x is the sampled signal vector, may have both AC and DC components. Output y should not contain any DC component. Examp...

Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0

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

Return an array of numbers which (effectively) count from 0 to N^M-1 in base N. The result should be returned in a matrix, with ...

inner product of two vectors

Regardless of input, output the string 'yes'.

*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

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

Write a function that accepts as input a vector and returns the same vector, but retaining only the first occurrence of an eleme...

Load more

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries