Answered

incompatible global variables in a model reference

I use ConfigSet References. And I made all my variables local to the model workspace. Except the ConfigSet and the Simulink.Bu...

incompatible global variables in a model reference

I use ConfigSet References. And I made all my variables local to the model workspace. Except the ConfigSet and the Simulink.Bu...

5 years ago | 0

Question

incompatible global variables in a model reference

Hi all, I have a model reference, which is built every time. Also if nothing changed. :-( My Rebuild configuration is set...

6 years ago | 3 answers | 0

Question

User Specified State Transition Execution Order in Matlab Stateflow

Hi, is there a possiblility to deactivate "User Specified State Transition Execution Order" in Stateflow Chart with Matlab A...

6 years ago | 0 answers | 0

Question

Model Advisor custom checks are slow

Hi, I have a lot of test for simulink models, which test inport, sum blocks etc. I use function like find_system, the Sta...

7 years ago | 0 answers | 0

Question

Unnecessary typedef in generated code for bus objects

Hi all, I want to generate code for a model. This model contains one bus object named "bdv_MeasAndUsability". When I gene...

7 years ago | 0 answers | 0

Question

file packaging format "compact"

Hey all, I want to build my model with the embedded coder (ert.tlc). I select the code parameter setting file packaging f...

7 years ago | 0 answers | 2

Solved

Implement a ROT13 cipher

Replace each character in string s1 with the character that is shifted 13 positions from it (wrap back to the beginning if neces...

7 years ago

Solved

Test for balanced parentheses

Given the input inStr, give the boolean output out indicating whether all the parentheses are balanced. Examples: * If ...

7 years ago

Solved

Duplicates

Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...

7 years ago

Solved

Indexed Probability Table

This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

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

7 years ago

Solved

Make a Palindrome Number

Some numbers like 323 are palindromes. Other numbers like 124 are not. But look what happens when we add that number to a revers...

7 years ago

Solved

Trimming Spaces

Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32). Input a = ' singular value deco...

7 years ago

Solved

Finding Perfect Squares

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

7 years ago

Solved

Create times-tables

At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

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

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

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

7 years ago

Solved

Triangle Numbers

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

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

7 years ago

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

7 years ago

Question

Add stack to created MException object

Hi, can I add stack Information to a created object. I have created a MException object, like this. myEx = MException('...

7 years ago | 0 answers | 1

Answered

Time cell (or char) inside a double array

What is exactly the result you expect? Can you give an example for the cell array "dateCells "? dateCells = {'09:45:43','0...

Time cell (or char) inside a double array

What is exactly the result you expect? Can you give an example for the cell array "dateCells "? dateCells = {'09:45:43','0...

7 years ago | 0

Answered

Time cell (or char) inside a double array

which matlab release do you use? dateCells = {'09:45:46','09:45:49'} dateString = strjoin(dateCells, sprintf('\n')) res...

Time cell (or char) inside a double array

which matlab release do you use? dateCells = {'09:45:46','09:45:49'} dateString = strjoin(dateCells, sprintf('\n')) res...

7 years ago | 1

| accepted

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

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

7 years ago

Solved

Determine if input is odd

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

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

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

7 years ago