Solved


Generate N equally spaced intervals between -L and L
Given N and L, return a list of numbers (in ascending order) that divides the interval [-L L] into N equal-length segments. For...

1 year ago

Solved


Return unique values without sorting
If the input vector A is [42 1 1], the output value B must be the unique values [42 1] The values of B are in the same order a...

1 year ago

Solved


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

1 year ago

Solved


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

1 year ago

Solved


Inner product of two vectors
Find the inner product of two vectors.

1 year ago

Solved


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

1 year ago

Solved


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

1 year ago

Solved


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

1 year ago

Solved


Find max
Find the maximum value of a given vector or matrix.

1 year ago

Solved


Create a vector
Create a vector from 0 to n by intervals of 2.

1 year ago

Solved


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

1 year ago

Solved


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

1 year ago

Answered
fminsearch function stops after a few iterations in simulink real time with inverter
Hi Yannic, I would suggest explicitly defining / checking the tolerances and stopping criteria of the "fminsearch" function in ...

1 year ago | 0

Answered
Can simulink real-time host PC be a linux machine?
Hi Cody, You can use Simulink® Real-Time™ on Windows® and Linux® platforms for your host PC starting from R2022a, as indicated ...

1 year ago | 1

| accepted

Answered
CAN Explorer and I/O 602 Speedgoat module
Hi Gabriel, In short, you will need to insert the CAN driver blocks corresponding to your IO602 module in your model. These dri...

1 year ago | 1

Answered
Speedgoat, select default output for monitor connexion
Hi Bertrand, Usually, such settings can be found in the BIOS of your target machine. For more details, I kindly suggest that yo...

1 year ago | 0

| accepted

Answered
Speedgoat IO306 Serial Connection
Hi Rafael, In short, the Serial (UART) protocol transmits packets of 8 bits each that will contain your data. The structure of ...

1 year ago | 0

| accepted

Answered
Apply C code for real-time Speedgoat operation
Hi Mantas, The integration of external C/C++ code in Simulink Real-Time is documented here. Please note that your original code...

1 year ago | 0

Answered
Can every motherboard use for xPC target application?
Hi GreenPiece and Yavuzhan, Not every hardware will work with Simulink Real-Time. I'm not aware of any list of supported config...

1 year ago | 0

Answered
custom hardware interface for Simulink Desktop Real-Time
Hi Michiel, Not sure about Simulink Desktop Real-Time, but you might want to have a look into the solution offered by Simulink ...

1 year ago | 0

Answered
implementation of the HIL test on a new target.
Hi Zineb, I'm assuming you have the following files in mind, is that correct? Create a Transport Layer for TCP/IP or Serial Ex...

1 year ago | 0

Answered
Bus Restriction on Name/DataType in Real-Time Simulation
Hi MT, I suggest reporting this to the MathWorks Support team (support@mathworks.com) to have this investigated and potentially...

1 year ago | 0

Answered
I am getting an error 'Output Port 1' of 'Wind_Turbine/Scopes/Blade Load Scopes i not connected." when i run the model below but I'm not sure where to connect the in/output
Hi Karam, It looks like these output ports are not used anywhere in your model, so you can simply delete them to get rid of the...

1 year ago | 0

| accepted

Answered
Simulink simulation output differs when run on Speedgoat Target machine and on user's machine
Hi Andrea, If the simulation outputs are different, there's a high chance that the input signals are different too. Could you c...

1 year ago | 0

Answered
Are there any blocks that work with Simulink simulation but not real-time?
Hi John, The easiest way to get more details about the build error is to go here in the diagnostics viewer: Best, Dimitri

1 year ago | 0

Answered
simulink real time maximum hardware support?
Hi Nicky, In R2020a and earlier, Simulink Real-Time uses a 32-bit real-time OS (RTOS) on the target machine. The maximum quanti...

1 year ago | 0

Answered
Download Simulink Real-Time Target Support Package version 21.1.0
Hi Nicolas, As far as I know, this is not possible by default as of now. I suggest that you reach out to the MathWorks support ...

1 year ago | 1

Solved


Locate image wells
A mathematical model of wells pumping groundwater near a boundary can be constructed using the method of images, which is also u...

1 year ago

Solved


How to find the 5th power of a variable
Getting an aquaintance of how to find the 5th power of a variable

2 years ago

Solved


How to square something
Looking to see if something could be squared from the code you created from the input of x

2 years ago

Load more