Frage


Properly Disconnect from ROS2 Network with Generated Code
The Matlab ROS2 publish/subscribe documentation suggests using clear to remove the sample nodes, publishers and subscribers from...

8 Monate vor | 1 Antwort | 0

1

Antwort

Frage


How to Flush Input Buffer for dsp.UDPReceiver
I am using dsp.UDPReceiver objects in my code. There are times when I put my code into an idle state. When I transition back to ...

8 Monate vor | 0 Antworten | 0

0

Antworten

Beantwortet
How do I pre-allocate memory for a structure?
Repmat offers another solution for preallocating structures: https://www.mathworks.com/help/simulink/ug/defining-arrays-of-stru...

8 Monate vor | 0

Beantwortet
Object Arrays in Code Generation
The answer is that it does not support object arrays. Here is the workaround https://www.mathworks.com/help/coder/ug/resolve-er...

8 Monate vor | 0

| akzeptiert

Frage


Object Arrays in Code Generation
Does code generation support arrays of custom objects? Here is a simple class. classdef MyClass properties value...

8 Monate vor | 1 Antwort | 0

1

Antwort

Beantwortet
Code Generation Segmentation Fault
I figured out the problem. In my code, I has a relative path that pointed to a configuration file my code needed that used to be...

8 Monate vor | 0

| akzeptiert

Frage


Code Generation Segmentation Fault
I am trying to generate an executable from my Matlab Code. I have done this in the past with this same codebase and it worked fi...

8 Monate vor | 1 Antwort | 0

1

Antwort

Beantwortet
ROS2 Bag Writer?
I appears as though this wasn't supported for R2022a, but the prerelease of R2022b has a new function ros2bagwriter object: http...

8 Monate vor | 0

| akzeptiert

Frage


Error recovery (try/catch) for Code Generation
What is the best way to implement error handling for Matlab code that I plan to deploy to C/C++ so that my code doesn't crash if...

8 Monate vor | 0 Antworten | 0

0

Antworten

Frage


ROS2 Lifecycle Node Example
I am trying to build a ROS2 node in Matlab that is compliant as a life cycle managed node. I am having trouble understanding how...

8 Monate vor | 1 Antwort | 0

1

Antwort

Frage


Use ROS2 Launch File to Run Multiple Instances of Matlab Generated ROS2 Nodes
I have generated and succesfully deployed a ROS2 node that publishes simple messages from my Matlab code. I can run this on my t...

8 Monate vor | 1 Antwort | 0

1

Antwort

Beantwortet
Compatibility ros2node with Coder Generation
FYI for anyone in the future: A quick way to see how to use command line code generation if you are used to using the Coder App ...

9 Monate vor | 1

Frage


How to Run a ROS2 Node Executable Generated by Coder?
I have a simple function that publishes to a ROS2 topic and I need this publisher to run as a separate process outside of Matlab...

9 Monate vor | 1 Antwort | 0

1

Antwort

Frage


Compatibility ros2node with Coder Generation
According to the ros2node documentation, the function supports code generation with a one node per function limitation. When I t...

9 Monate vor | 2 Antworten | 0

2

Antworten

Frage


ROS2 Bag Writer?
There appears to only be a rosbagwriter function for ROS log files but not ROS2 log files: https://www.mathworks.com/help/ros/...

9 Monate vor | 1 Antwort | 0

1

Antwort

Beantwortet
Delete array elements with Coder compatibility
Figured out a solution. Redefine the string use logical indexing to select all but the element you want to exclude. myStr = myS...

12 Monate vor | 0

Frage


Delete array elements with Coder compatibility
I need to delete elements of a string with compatibility for Coder. For example: myStr = 'This is a fun problem!' myStr(10) = ...

12 Monate vor | 2 Antworten | 0

2

Antworten

Beantwortet
Timing for UDP Data Stream
@Gavin Grant This isn't quite what I was looking for, as I was trying to get execution synchronized with wall clock time. I real...

mehr als ein Jahr vor | 1

| akzeptiert

Frage


Simulink Standalone Executable from Coder for Real-Time Execution
I need to receive UDP data in real time and do some light processing of the data (mixing and decimating). I eventually want to r...

mehr als ein Jahr vor | 0 Antworten | 0

0

Antworten

Frage


Signal types for dimension 8 vs [8 x 1] - what's the difference?
I appologize for such a simple questions, but I am in the process of learning Simulink. I am using the 'Information Overlay' to ...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


Timing for UDP Data Stream
I have a software defined radio that is streaming data over a network port at 192,000 Samples per second. I want to connect to t...

mehr als ein Jahr vor | 2 Antworten | 0

2

Antworten

Beantwortet
No log file generated for standalone app
I got a response back from Mathworks Support about this. In short, as suspected, there is an issue with file permissions in Find...

mehr als ein Jahr vor | 1

| akzeptiert

Frage


No log file generated for standalone app
I am on macOS Catalina trying to deploy a standalone Matlab app using the application compliler. I am on R2020b. I check off t...

mehr als ein Jahr vor | 1 Antwort | 1

1

Antwort

Frage


Auto resize of manually added axes
I need to manually add axes to a figure, but I want the axes I add to automatically resize when I maximize/scale the figure wind...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Beantwortet
Print an array of coordinates with 2 Arrays of Varriables.
Simple in Matlab X = [150 200 300 500]'; Y = [300 500 800 300]'; coords = [X,Y] coords = 150 300 200 500 ...

mehr als ein Jahr vor | 0

| akzeptiert

Beantwortet
Matlab Coder support for object arrays
I believe this isn't possible. I think you have to use a cell array of the objects as a work around. See this answer: Limitati...

mehr als ein Jahr vor | 0

Frage


System Object Variable Size Tuneable Properties
I am new to system objects, but need to develop one to do some stream processing of incoming data. Part of the algorithm I am de...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How to 3D plot a circle with radius of 1 in x y and sine wave in z?
Try this: %Position of center of chip in 3D space x0 = 1; y0 = 1; z0 = 1; r = 1;%Radius of chip d_theta = 2*pi/60; %Diff...

fast 2 Jahre vor | 2

| akzeptiert

Beantwortet
The 'matlab.mixin.Copyable' class does not support code generation.
I got around this by creating a 'copy' method for my class. Here is a simple example. classdef myobj < handle % used to be mat...

fast 2 Jahre vor | 0

Frage


Custom object class array initilization within Simulink Matlab Function Block
The summary of my question is I need know how to preallocate an array of custom objects in a way that is compatible with Simulin...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden