Community Profile

Professional Interests: Aerodynamics

Contact

Top 1% contributor

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 3 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 3 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 1 year 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 2 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 ...

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!

2 years ago

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

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

The characteristic equation for a dynamic system is a polynomial whose roots indicate its behavior. If any of the <http://www.ma...

Given a string of text with phone numbers in it, return a unique'd cell array of strings that are the area codes. s = '508-647...

Load more