문제를 풀었습니다


Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

대략 3년 전

문제를 풀었습니다


Reverse the vector
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]

대략 3년 전

문제를 풀었습니다


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


Return area of square
Side of square=input=a Area=output=b

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


Add two numbers
Given a and b, return the sum a+b in c.

대략 3년 전

문제를 풀었습니다


Octoberfest festival
A group of students decided to visit Octoberfest festival. First they ordered one beer, then after half-hour they taken one more...

대략 3년 전

문제를 풀었습니다


Predicting life and death of a memory-less light bulb
*&#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &#128161 &...

대략 3년 전

답변 있음
How do I send serial commands to a device with Simulink Real Time?
Hi Dan, What kind of cable are you using to test this loopback model? Please note that a null-modem cable (or adaptor) must be ...

대략 3년 전 | 0

답변 있음
How do i save a file into a folder in a different path?
Hi Rachel, That should be fairly straightforward. You can create: a new directory each iteration of the 'for' loop, and save y...

대략 3년 전 | 1

답변 있음
How to export trained RL agent to TwinCat machine learning inference
Hi Chetan, In case you'd like to deploy your algorithm on a real-time target machine that specifically uses Simulink Real-Time ...

대략 3년 전 | 0

| 수락됨

답변 있음
Delete application on target computer programmatically
Hi Matteo, The function "removeApplication" was introduced for that purpose in MATLAB R2022a. Furthermore, the function "remove...

대략 3년 전 | 0

| 수락됨

답변 있음
Why I can not save all the simulation data using to workspace in simulink's external mode?
Hello Amina, I do not recommend using the "To Workspace" block to log data in Simulink Real-Time. If you're using MATLAB R2020a...

대략 3년 전 | 0

답변 있음
Variable Length Windows Real-Time Target UDP Receive Block
Hi Arne, That should be possible in my opinion. I would define the maximum expected size in your UDP receive block, and then di...

대략 3년 전 | 0

답변 있음
If development computer is target computer, how can I built the connection?
Hi Wilson, You must have two separate devices to use Simulink Real-Time: one host/development PC, and one target machine. Best...

3년 초과 전 | 0

답변 있음
Can I connect Simulink Version 2022a to a Non-Speedgoat Target Machine?
Hi Kyle, I'm afraid that's not possible: only Speedgoat target machines are supported by Simulink Real-Time since R2018a. Kind...

3년 초과 전 | 1

| 수락됨

답변 있음
Get 1st element/reading from a Real-time encoder readings
Hi Ahmet, How about using a block-based approach instead? You could for example go for something similar to this: In this ...

3년 초과 전 | 0

| 수락됨

답변 있음
C Caller Block with Simulik Real time R2022b
Hi Daniel, Have you checked these suggestions when updating to R2020b and later? There's a number of differences in Simulink Re...

3년 초과 전 | 0

답변 있음
speedgoat target coputer 1
Hi William, Speedgoat target machines are expressly designed to work with Simulink Real-Time. Similarly, only Speedgoat hardwar...

3년 초과 전 | 0

답변 있음
Event triggered update of simulink.parameter in model deployed to target (Speedgoat) to signal within model
Hi Derry, I would recommend modelling that behaviour, i.e., working with signal values rather than parameters. In the scenario ...

3년 초과 전 | 1

| 수락됨

답변 있음
Simulink Realtime Add-on on Ubuntu 20.04
Hi Ehtisham, I suggest having a look at the following MATLAB Answers posts: https://www.mathworks.com/matlabcentral/answers/48...

3년 초과 전 | 0

답변 있음
Matlab 2020b and above no more target than speedgoat possible?
Hi Jan, That's correct: support for custom target hardware has actually already been removed from Simulink Real-Time in R2018a....

3년 초과 전 | 0

답변 있음
How can I get analog input data to Speedgoat target machine I/O?
Hi Eric, The IO334-325k is a Simulink-programmable FPGA, meaning that you'll have to use HDL Coder to synthesise your own bitst...

3년 초과 전 | 0

| 수락됨

답변 있음
How to stream vector (1X5) data from Target device to App designer?
Hi Jesica, I think there are several mistakes here: The correct syntax of the function is connectScalar (lowercase "c" and "a"...

3년 초과 전 | 1

답변 있음
How to reset a received CAN receive or unpack block
Hi Felix, Absolutely, you can use the "Timestamp" output port of the CAN Unpack block to check when the last message with this ...

3년 초과 전 | 0

답변 있음
Is it possible to generate a PWM signal in a real-time model with a pulse width resolution smaller than the fixed time step of the model?
Hi Findlay, Absolutely, this is possible, though you would probably not use the CPU of your target machine for this purpose. If...

3년 초과 전 | 2

| 수락됨

답변 있음
How can i get the Task Execution Time of a simulink model in Execution Profiling for Real-Time Applications
Hi Liqun, In the figure you posted, the task execution time (TET) is represented by the length of each green bar. Besides the p...

3년 초과 전 | 0

답변 있음
Is there any Simulink block can parse and generate code for LIN Description Files?
Hi Alon, In case you're using Simulink Real-Time, "LIN Pack" and "LIN Unpack" blocks have been introduced for this purpose in M...

3년 초과 전 | 0

답변 있음
Can "Data frame Sizes" be changed longer than 8? Can "Length" be changed longer than 32?
Hi Byeongsoo, The maximum length of a CAN message is by definition 64 bits / 8 bytes. If your message contains more data, you'r...

3년 초과 전 | 1

더 보기