Answered

Simulink Project Git error with Bitbucket git: git: cannot open git-receive-pack

I think you can work around this issue by using an ssh link to clone your repositories as opposed to https. See the following l...

Simulink Project Git error with Bitbucket git: git: cannot open git-receive-pack

I think you can work around this issue by using an ssh link to clone your repositories as opposed to https. See the following l...

environ un an ago | 0

Question

Change simulink port location of signal after dragging block into "Create Subsystem"

Often times when I create a subsystem from a group of Simulink blocks, the inport and outports have the signals entering into th...

presque 2 ans ago | 1 answer | 0

Question

Reordering Quick Insert Search Results in Simulink

Is there a way to reorder the results from Quick Insert (where you click on whitespace and start typing the block name)? I us...

environ 2 ans ago | 0 answers | 0

Question

When using 'sim' in a for loop in accelerator mode I get an 'accelbuild' error after 5,6 or sometimes 18 iterations.

I am doing a Monte Carlo simulation of a simulink model with Matlab 2015b using the sim command SimOuts = sim(ModelName, 'L...

plus de 2 ans ago | 0 answers | 0

Answered

Simulink Project Cloned Repository not keeping configuration

The issue is a compatibility issue between 2014b and 2015b. When the original Simulink Project was created and pushed to a remo...

Simulink Project Cloned Repository not keeping configuration

The issue is a compatibility issue between 2014b and 2015b. When the original Simulink Project was created and pushed to a remo...

plus de 2 ans ago | 0

| accepted

Question

Error when generating S-function from subsystem with Stateflow chart and Function Call outputs

I am getting an error when generating a S-function for a subsystem containing a Stateflow chart with Event outputs to drive othe...

plus de 2 ans ago | 0 answers | 0

Question

Using set_param with Configuration Set Reference

I have a medium sized Simulink project using Configuration Reference to tie all the submodels (Model Reference) to one Configura...

presque 3 ans ago | 1 answer | 0

Answered

Are there any examples of how to use the Simulink Real-Time XCP library?

If you type speedgoatdoc at the command line and select "Examples" it will have several IO601 CAN examples (message lo...

Are there any examples of how to use the Simulink Real-Time XCP library?

If you type speedgoatdoc at the command line and select "Examples" it will have several IO601 CAN examples (message lo...

presque 3 ans ago | 0

Question

How to use quiver3m with usamap() in Mapping Toolbox

I cannot get quiver3m to work with usamap(latlim, lonlim) in Mapping toolbox. plot3m works fine. figure() usamap([34.02...

environ 3 ans ago | 0 answers | 0

Question

How do I open the Code Generation Report after it's been closed?

I generate the C code using ctrl-B and the Code Generation Report opens. I can see all the *.css, *.html, and *.js files under ...

environ 3 ans ago | 2 answers | 0

Question

Currently getting a domain error when running Simulink code. No indication where the error is occurring.

I'm getting the following error when running my simulink code: Domain error. To compute complex results from real x, use 'a...

environ 3 ans ago | 1 answer | 1

Question

Simulink Project Git error with Bitbucket git: git: cannot open git-receive-pack

We recently transition to BitBucket for our source control needs. Simulink Project shows a dialog box error when using those gi...

plus de 3 ans ago | 1 answer | 6

Solved

Weighted average

Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

plus de 3 ans 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...

plus de 3 ans 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...

plus de 3 ans 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...

plus de 3 ans 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...

plus de 3 ans 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...

plus de 3 ans 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...

plus de 3 ans 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 ...

plus de 3 ans 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...

plus de 3 ans ago

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

plus de 3 ans 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...

plus de 3 ans ago

Solved

Determine if input is odd

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

plus de 3 ans ago

Question

Running Simulink Blocks without License in Collaborative Project

I am working on a collaborative project where I have blocks utilizing special tools - in this case Stateflow. Another collabora...

plus de 3 ans ago | 1 answer | 0

Question

Using Mask Initialization and Parameter with Data Dictionaries

I currently have a system using Model Reference for subsystems and Data Dictionaries to maintain variables. I would like to mas...

plus de 3 ans ago | 0 answers | 0

Question

Implementing Model Reference, Data Dictionaries, and Buses

Hello, I have a large model with multiple collaborators. We have a system bus defined as well as several submodels using mo...

plus de 3 ans ago | 1 answer | 0

Question

Simulink Project Cloned Repository not keeping configuration

I'm cloning a Simulink Project from git revision control. On my original workstation I have all the Model Configuration paramet...

plus de 3 ans ago | 2 answers | 0

Question

Integrating Libraries with Simulink Project and Git

I have 2 Simulink projects that would like to use components from a shared in-house Simulink library. The Simulink Projects are...

presque 4 ans ago | 0 answers | 1