Tag Archives: matlab
Why does the track2 function is not working?
Hey community
I am using the R2023b version and the track2 function does not respond correctly.
It should work as:[lati , loni] = track2(lat1,lon1,lat2,lon2,number);
This last numbers is automatically 100, however if I change it, matlab still uses 100. Even if I try with 1, or 1000.Hey community
I am using the R2023b version and the track2 function does not respond correctly.
It should work as:[lati , loni] = track2(lat1,lon1,lat2,lon2,number);
This last numbers is automatically 100, however if I change it, matlab still uses 100. Even if I try with 1, or 1000. Hey community
I am using the R2023b version and the track2 function does not respond correctly.
It should work as:[lati , loni] = track2(lat1,lon1,lat2,lon2,number);
This last numbers is automatically 100, however if I change it, matlab still uses 100. Even if I try with 1, or 1000. distance, matlab, function MATLAB Answers — New Questions
How can I add a version number to my standalone executable created with MATLAB Compiler?
I would like to use MATLAB Compiler to generate a Windows standalone executable that has version and file information (which can be seen by right-clicking on the executable and examining its properties, as shown in the screenshot below).I would like to use MATLAB Compiler to generate a Windows standalone executable that has version and file information (which can be seen by right-clicking on the executable and examining its properties, as shown in the screenshot below). I would like to use MATLAB Compiler to generate a Windows standalone executable that has version and file information (which can be seen by right-clicking on the executable and examining its properties, as shown in the screenshot below). standalone, executable, version, meta, data, information, compile, mcc, resource, file, .rc, adding, metadata, to, application MATLAB Answers — New Questions
Which one is the joystick ID?
I am trying to use the vrjoystick command in Matlab to create a joystick object. From the help documentation, I should use the command joy = vrjoystick(id). My problem is that I don’t know how to find out the id.
The description in help is as follows- "The id parameter is a one-based joystick ID. The joystick ID is the system ID assigned to the given joystick device." But, when I get to the device manager, I saw a lot of "IDs" (e.g. hardware IDs, Compatible IDs, etc.) under the "details" tab of the properties window of the Xbox 360 Controller for Windows. I tried to input everyone one of them, but none of them worked.
How should I get the system ID (there is no system ID in the properties window) of a joystick? How should the ID look like? Thank you.I am trying to use the vrjoystick command in Matlab to create a joystick object. From the help documentation, I should use the command joy = vrjoystick(id). My problem is that I don’t know how to find out the id.
The description in help is as follows- "The id parameter is a one-based joystick ID. The joystick ID is the system ID assigned to the given joystick device." But, when I get to the device manager, I saw a lot of "IDs" (e.g. hardware IDs, Compatible IDs, etc.) under the "details" tab of the properties window of the Xbox 360 Controller for Windows. I tried to input everyone one of them, but none of them worked.
How should I get the system ID (there is no system ID in the properties window) of a joystick? How should the ID look like? Thank you. I am trying to use the vrjoystick command in Matlab to create a joystick object. From the help documentation, I should use the command joy = vrjoystick(id). My problem is that I don’t know how to find out the id.
The description in help is as follows- "The id parameter is a one-based joystick ID. The joystick ID is the system ID assigned to the given joystick device." But, when I get to the device manager, I saw a lot of "IDs" (e.g. hardware IDs, Compatible IDs, etc.) under the "details" tab of the properties window of the Xbox 360 Controller for Windows. I tried to input everyone one of them, but none of them worked.
How should I get the system ID (there is no system ID in the properties window) of a joystick? How should the ID look like? Thank you. joystick, vrjoystick MATLAB Answers — New Questions
please create matlab code :- system identification, modal analysis, and estimation of vibration frequencies and damping ratios.
Normalized amplitudes of complex frequency response function of the bridge estimated from Welch’s average power spectral density function due to vehicular movement-based excitation. The gray lines correspond to 10 segments of the measurements and the black lines show their average.Normalized amplitudes of complex frequency response function of the bridge estimated from Welch’s average power spectral density function due to vehicular movement-based excitation. The gray lines correspond to 10 segments of the measurements and the black lines show their average. Normalized amplitudes of complex frequency response function of the bridge estimated from Welch’s average power spectral density function due to vehicular movement-based excitation. The gray lines correspond to 10 segments of the measurements and the black lines show their average. welch’s algorithm, eigensystem realization algorithm (era):, fast fourier transform (fft): MATLAB Answers — New Questions
fuzzy logic controller failed design problem
This days I study a paper about to design a fuzzy logic controller by using fuzzy() ,but it have some prpblem .
I design a fuzzy logic like it. But is wrong!!!
What is the problem about my learning?This days I study a paper about to design a fuzzy logic controller by using fuzzy() ,but it have some prpblem .
I design a fuzzy logic like it. But is wrong!!!
What is the problem about my learning? This days I study a paper about to design a fuzzy logic controller by using fuzzy() ,but it have some prpblem .
I design a fuzzy logic like it. But is wrong!!!
What is the problem about my learning? matlab function MATLAB Answers — New Questions
Subtracting matrices by column and performing a summation.
Hello all. I am new to MatLab but I am hoping to use it for a component of my research. I am going to create matrices and hopfully perform calculations with them in MatLab.
I am going to have matrices that are 3 x X number of points. Usually they will be around 3 x 1500. I am trying to create a code that will subtract the second element value from the first element value for positions i j and k. It would perform this calculation all the way through 1500 lines and then perform a summation of each column at the end. Here is an example.
[0 0 10]
[2 5 8]
[-5 10 6]
Those would be the first 3 of the 1500 lines. The code would subtract 0 from 2 (take the absolute value of that), then add that to -5 minus 2 (take the absolute value of that) and continue that down. It would also subtract 0 from 5 (take the absolute value of that), then add that to 10 minus 5 (take the absolute value of that) and continue that down. Then it would subtract 10 from 8 (take the absolute value of that), then add that to 6 minus 8 (take the absolute value of that) and continue that down.
At then end I would have three values: An absolute value summation of the change in the first column of elements, an absolute value summation of the change in the second column of elements, and an absolute value summation of the change in the third column of elements.
Any help is much appreciated! I am learning MATLAB and will try this out on my own in the meantime. Thank you!Hello all. I am new to MatLab but I am hoping to use it for a component of my research. I am going to create matrices and hopfully perform calculations with them in MatLab.
I am going to have matrices that are 3 x X number of points. Usually they will be around 3 x 1500. I am trying to create a code that will subtract the second element value from the first element value for positions i j and k. It would perform this calculation all the way through 1500 lines and then perform a summation of each column at the end. Here is an example.
[0 0 10]
[2 5 8]
[-5 10 6]
Those would be the first 3 of the 1500 lines. The code would subtract 0 from 2 (take the absolute value of that), then add that to -5 minus 2 (take the absolute value of that) and continue that down. It would also subtract 0 from 5 (take the absolute value of that), then add that to 10 minus 5 (take the absolute value of that) and continue that down. Then it would subtract 10 from 8 (take the absolute value of that), then add that to 6 minus 8 (take the absolute value of that) and continue that down.
At then end I would have three values: An absolute value summation of the change in the first column of elements, an absolute value summation of the change in the second column of elements, and an absolute value summation of the change in the third column of elements.
Any help is much appreciated! I am learning MATLAB and will try this out on my own in the meantime. Thank you! Hello all. I am new to MatLab but I am hoping to use it for a component of my research. I am going to create matrices and hopfully perform calculations with them in MatLab.
I am going to have matrices that are 3 x X number of points. Usually they will be around 3 x 1500. I am trying to create a code that will subtract the second element value from the first element value for positions i j and k. It would perform this calculation all the way through 1500 lines and then perform a summation of each column at the end. Here is an example.
[0 0 10]
[2 5 8]
[-5 10 6]
Those would be the first 3 of the 1500 lines. The code would subtract 0 from 2 (take the absolute value of that), then add that to -5 minus 2 (take the absolute value of that) and continue that down. It would also subtract 0 from 5 (take the absolute value of that), then add that to 10 minus 5 (take the absolute value of that) and continue that down. Then it would subtract 10 from 8 (take the absolute value of that), then add that to 6 minus 8 (take the absolute value of that) and continue that down.
At then end I would have three values: An absolute value summation of the change in the first column of elements, an absolute value summation of the change in the second column of elements, and an absolute value summation of the change in the third column of elements.
Any help is much appreciated! I am learning MATLAB and will try this out on my own in the meantime. Thank you! matrices, subtracting, absolute value MATLAB Answers — New Questions
Run a calculation on multiple different .csv files and export the result
Hello all!
I am new to MATLAB but I am working on performing matrix calculations. I have the calculation code nailed down. The problem is I have 500+ .csv files that I have to read in, perform the calculation, and export each separately.
Is there a way to read in a folder of .csv files, perform my calculation on each, and then export the result of each 500+ calculations to one place?
%so this grabs one single .csv file and performs my calculation%
>> filename=’THESISv1-DATA.csv’;
M=csvread(filename);
>> S = sum(abs(M(2:end,:)-M(1:end-1,:)),1)Hello all!
I am new to MATLAB but I am working on performing matrix calculations. I have the calculation code nailed down. The problem is I have 500+ .csv files that I have to read in, perform the calculation, and export each separately.
Is there a way to read in a folder of .csv files, perform my calculation on each, and then export the result of each 500+ calculations to one place?
%so this grabs one single .csv file and performs my calculation%
>> filename=’THESISv1-DATA.csv’;
M=csvread(filename);
>> S = sum(abs(M(2:end,:)-M(1:end-1,:)),1) Hello all!
I am new to MATLAB but I am working on performing matrix calculations. I have the calculation code nailed down. The problem is I have 500+ .csv files that I have to read in, perform the calculation, and export each separately.
Is there a way to read in a folder of .csv files, perform my calculation on each, and then export the result of each 500+ calculations to one place?
%so this grabs one single .csv file and performs my calculation%
>> filename=’THESISv1-DATA.csv’;
M=csvread(filename);
>> S = sum(abs(M(2:end,:)-M(1:end-1,:)),1) .csv, export results, multiple calculations, matrices MATLAB Answers — New Questions
Numbers on the middle of colorbar in MATLAB
How to create a colorbar in MATLAB like this in which the numebrs comes exactly on the colorbar cell.How to create a colorbar in MATLAB like this in which the numebrs comes exactly on the colorbar cell. How to create a colorbar in MATLAB like this in which the numebrs comes exactly on the colorbar cell. colorbar, numbers, matlab MATLAB Answers — New Questions
About fitting one curve with one equation and calculating two values from fitting
I want to fit one curve (x vs y1) with equation y2=(1/ (exp(e-u))/kt)) with same x axis and want to find the value of e and u. How can I do it?I want to fit one curve (x vs y1) with equation y2=(1/ (exp(e-u))/kt)) with same x axis and want to find the value of e and u. How can I do it? I want to fit one curve (x vs y1) with equation y2=(1/ (exp(e-u))/kt)) with same x axis and want to find the value of e and u. How can I do it? about fitting one curve with one equation MATLAB Answers — New Questions
What is TextControl>TextControl.process listed when profiling appdesigner code (Matlab 2021b)?
I am writing an application using appdesigner in Matlab 2021b. I have been using the profiler to understand how to improve the response times of the application display, and the most time consuming function name is always listed as ‘TextControl>TextControl.process’ as follows:
To improve the response time of my application, I have been reducing the number of calls to plot() and text(), and this has been quite helpful. But I am finding this ‘TextControl’ function calls entry hard to understand, so it is not so easy to progress further. Any suggestions would be appreciated.I am writing an application using appdesigner in Matlab 2021b. I have been using the profiler to understand how to improve the response times of the application display, and the most time consuming function name is always listed as ‘TextControl>TextControl.process’ as follows:
To improve the response time of my application, I have been reducing the number of calls to plot() and text(), and this has been quite helpful. But I am finding this ‘TextControl’ function calls entry hard to understand, so it is not so easy to progress further. Any suggestions would be appreciated. I am writing an application using appdesigner in Matlab 2021b. I have been using the profiler to understand how to improve the response times of the application display, and the most time consuming function name is always listed as ‘TextControl>TextControl.process’ as follows:
To improve the response time of my application, I have been reducing the number of calls to plot() and text(), and this has been quite helpful. But I am finding this ‘TextControl’ function calls entry hard to understand, so it is not so easy to progress further. Any suggestions would be appreciated. profiler, text, appdesigner, plotting MATLAB Answers — New Questions
Where can I find details regarding the SGP4 orbit propagator (satellite function of Aerospace Toolbox)?
Related help page: https://www.mathworks.com/help/aerotbx/ug/satellitescenario.satellite.html#namevaluepairarguments
What assumptions does SGP4 propagator make for spacecraft ballistic coefficient?
What other perturbations are included or excluded? What assumptions are made for those?Related help page: https://www.mathworks.com/help/aerotbx/ug/satellitescenario.satellite.html#namevaluepairarguments
What assumptions does SGP4 propagator make for spacecraft ballistic coefficient?
What other perturbations are included or excluded? What assumptions are made for those? Related help page: https://www.mathworks.com/help/aerotbx/ug/satellitescenario.satellite.html#namevaluepairarguments
What assumptions does SGP4 propagator make for spacecraft ballistic coefficient?
What other perturbations are included or excluded? What assumptions are made for those? satellite MATLAB Answers — New Questions
Plotting a graph based on a large table
Im trying to graph a large 17×17 table and haven’t got a clue how to do it, i’ve managed to import the data from Excel but cant work out how to display the relationship between the x and y axis when there are so many different data entries. Any help would be great, thanks.Im trying to graph a large 17×17 table and haven’t got a clue how to do it, i’ve managed to import the data from Excel but cant work out how to display the relationship between the x and y axis when there are so many different data entries. Any help would be great, thanks. Im trying to graph a large 17×17 table and haven’t got a clue how to do it, i’ve managed to import the data from Excel but cant work out how to display the relationship between the x and y axis when there are so many different data entries. Any help would be great, thanks. plotting, tables MATLAB Answers — New Questions
Load nonfinite (Inf or NaN) data into simulink simulation
Before R2022b it was possible to directly load a timeseries with nonfinite data into a Simulink model. Either by loading it directly from the workspace via the Data Import/Export tab of the Configuration Parameters, or by using a similar approach using a ‘From Workspace’ block.
As of R2022b the support for the following types is dropped: Simulink.Timeseries, Simulink.TsArray, Simulink.SubsysDataLogs, ScopeDataLogs, and StateflowDataLogs.
This means that I have to search for a new way to load nonfinite data into my model. The Simulink.Timeseries documentation suggests to use a Simulink.SimulationData.Dataset. Unfortunately this doesn’t seem to be a valid option, as it throws the following error: "The Data property of timeseries must be a built-in numeric, logical, fixed point or enumerated type. Data must be finite (not Inf or NaN)."
What other options are available to load data into a simulation, if the data must be able to contain Inf or NaN?Before R2022b it was possible to directly load a timeseries with nonfinite data into a Simulink model. Either by loading it directly from the workspace via the Data Import/Export tab of the Configuration Parameters, or by using a similar approach using a ‘From Workspace’ block.
As of R2022b the support for the following types is dropped: Simulink.Timeseries, Simulink.TsArray, Simulink.SubsysDataLogs, ScopeDataLogs, and StateflowDataLogs.
This means that I have to search for a new way to load nonfinite data into my model. The Simulink.Timeseries documentation suggests to use a Simulink.SimulationData.Dataset. Unfortunately this doesn’t seem to be a valid option, as it throws the following error: "The Data property of timeseries must be a built-in numeric, logical, fixed point or enumerated type. Data must be finite (not Inf or NaN)."
What other options are available to load data into a simulation, if the data must be able to contain Inf or NaN? Before R2022b it was possible to directly load a timeseries with nonfinite data into a Simulink model. Either by loading it directly from the workspace via the Data Import/Export tab of the Configuration Parameters, or by using a similar approach using a ‘From Workspace’ block.
As of R2022b the support for the following types is dropped: Simulink.Timeseries, Simulink.TsArray, Simulink.SubsysDataLogs, ScopeDataLogs, and StateflowDataLogs.
This means that I have to search for a new way to load nonfinite data into my model. The Simulink.Timeseries documentation suggests to use a Simulink.SimulationData.Dataset. Unfortunately this doesn’t seem to be a valid option, as it throws the following error: "The Data property of timeseries must be a built-in numeric, logical, fixed point or enumerated type. Data must be finite (not Inf or NaN)."
What other options are available to load data into a simulation, if the data must be able to contain Inf or NaN? simulink nonfinite inf nan MATLAB Answers — New Questions
Possibility of Custom Denominator of Transfer Function within Simulink
I’m trying to replicate a part of a block diagram and I’m unable to use a normal transfer function block as it only accepts the input signal, and not a varying time constant such as tau_D. I know that I can use a function block and create a code to accept both the input signal and the time varying variable. However, within simulink I’m not able to use the "tf" function as it not supported. I apply state space method, and while the results are within 1-2 Hp, I’m not happy with the time response of the engine ramping up to the desired HP number (See display and scope). It also doesn’t start at zero. When I uncomment the rest of the diagram to verify how it integrates with the other blocks within the block diagram, the function block produces the following error:
"Derivative of state ‘1’ in block ‘Question_Variable_Transfer_Function/Integrator’ at time 0.0 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)"
Essentially, my it boils down too two questions:
1.) Is there a block or a function that allows a variable time constant (tau_D) to be inputted into the denominator of the transfer function of the transfer function?
2.) Apart from changing the fixed step size, is there any other way to remove the error simulink is presenting.
I appreciate any guidance or help to mitigate this issue? Thanks in advance.I’m trying to replicate a part of a block diagram and I’m unable to use a normal transfer function block as it only accepts the input signal, and not a varying time constant such as tau_D. I know that I can use a function block and create a code to accept both the input signal and the time varying variable. However, within simulink I’m not able to use the "tf" function as it not supported. I apply state space method, and while the results are within 1-2 Hp, I’m not happy with the time response of the engine ramping up to the desired HP number (See display and scope). It also doesn’t start at zero. When I uncomment the rest of the diagram to verify how it integrates with the other blocks within the block diagram, the function block produces the following error:
"Derivative of state ‘1’ in block ‘Question_Variable_Transfer_Function/Integrator’ at time 0.0 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)"
Essentially, my it boils down too two questions:
1.) Is there a block or a function that allows a variable time constant (tau_D) to be inputted into the denominator of the transfer function of the transfer function?
2.) Apart from changing the fixed step size, is there any other way to remove the error simulink is presenting.
I appreciate any guidance or help to mitigate this issue? Thanks in advance. I’m trying to replicate a part of a block diagram and I’m unable to use a normal transfer function block as it only accepts the input signal, and not a varying time constant such as tau_D. I know that I can use a function block and create a code to accept both the input signal and the time varying variable. However, within simulink I’m not able to use the "tf" function as it not supported. I apply state space method, and while the results are within 1-2 Hp, I’m not happy with the time response of the engine ramping up to the desired HP number (See display and scope). It also doesn’t start at zero. When I uncomment the rest of the diagram to verify how it integrates with the other blocks within the block diagram, the function block produces the following error:
"Derivative of state ‘1’ in block ‘Question_Variable_Transfer_Function/Integrator’ at time 0.0 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)"
Essentially, my it boils down too two questions:
1.) Is there a block or a function that allows a variable time constant (tau_D) to be inputted into the denominator of the transfer function of the transfer function?
2.) Apart from changing the fixed step size, is there any other way to remove the error simulink is presenting.
I appreciate any guidance or help to mitigate this issue? Thanks in advance. simulink, integrator, function block, transfer function, time constant, error MATLAB Answers — New Questions
AMSimulink.mdl not find after Matlab installation
Hi everyone
I have an issue to find the files AMSimulink.mdl and also Aspen-Matlab on C:programfilesMatlabbin……. boths files not availble here after matlab installation
what I understand these two files are mandatory to connect aspentech dynamic to matlab.
in the first time when I install Matlab 2023 a it was okay ,the two files were there but after upgrade to 2024 a ,the two files not available ,even after remove then all and reinstall again the issue not solved
thank you for your help and supportHi everyone
I have an issue to find the files AMSimulink.mdl and also Aspen-Matlab on C:programfilesMatlabbin……. boths files not availble here after matlab installation
what I understand these two files are mandatory to connect aspentech dynamic to matlab.
in the first time when I install Matlab 2023 a it was okay ,the two files were there but after upgrade to 2024 a ,the two files not available ,even after remove then all and reinstall again the issue not solved
thank you for your help and support Hi everyone
I have an issue to find the files AMSimulink.mdl and also Aspen-Matlab on C:programfilesMatlabbin……. boths files not availble here after matlab installation
what I understand these two files are mandatory to connect aspentech dynamic to matlab.
in the first time when I install Matlab 2023 a it was okay ,the two files were there but after upgrade to 2024 a ,the two files not available ,even after remove then all and reinstall again the issue not solved
thank you for your help and support transferred MATLAB Answers — New Questions
Adding plots to an existing root locus plot
how can I add damping frequency lines constraints to an existing root locus plothow can I add damping frequency lines constraints to an existing root locus plot how can I add damping frequency lines constraints to an existing root locus plot adding constraints lines MATLAB Answers — New Questions
Why do R2024b products not launch on RHEL 7.9-based machines with an error mentioning “GLIBC_2.18 not found”?
Why do R2024b products not launch on RHEL 7.9-based machines with an error mentioning "GLIBC_2.18 not found"? Below is the whole error message.
MATLAB: detail/MvmLocalBoundMethods.cpp:112: static void mvm::detail::MvmLocalBoundMethods::initMethods(bool): Assertion `Failed to open local mvm library: /lib64/libm.so.6: version `GLIBC_2.18′ not found (required by /usr/local/MATLAB/R2024b/bin/glnxa64/../../sys/os/glnxa64/libgfortran.so.5)’ failed.Why do R2024b products not launch on RHEL 7.9-based machines with an error mentioning "GLIBC_2.18 not found"? Below is the whole error message.
MATLAB: detail/MvmLocalBoundMethods.cpp:112: static void mvm::detail::MvmLocalBoundMethods::initMethods(bool): Assertion `Failed to open local mvm library: /lib64/libm.so.6: version `GLIBC_2.18′ not found (required by /usr/local/MATLAB/R2024b/bin/glnxa64/../../sys/os/glnxa64/libgfortran.so.5)’ failed. Why do R2024b products not launch on RHEL 7.9-based machines with an error mentioning "GLIBC_2.18 not found"? Below is the whole error message.
MATLAB: detail/MvmLocalBoundMethods.cpp:112: static void mvm::detail::MvmLocalBoundMethods::initMethods(bool): Assertion `Failed to open local mvm library: /lib64/libm.so.6: version `GLIBC_2.18′ not found (required by /usr/local/MATLAB/R2024b/bin/glnxa64/../../sys/os/glnxa64/libgfortran.so.5)’ failed. MATLAB Answers — New Questions
How can i know my first image is master image and second image my current image how can i find the noise raito between this two images.
Post Content Post Content image analyst MATLAB Answers — New Questions
Doxygen comments in code generated with Simulink Embedded Coder
I am using Embedded Coder to generate C code for a model. My model contains several busses that are translated to struct typedefs in C.
As expected, the "Description" field of each signal in the bus is transalted into a comment in the C code.
I would like the comment to have a doxygen style, that is it should be in the form:
/** My comment */
By looking into the help, I saw that in Simulink there is the possibility to do something similar by creeating a custom CGT file (see this page). Anyway, the comment style only applies to file banners, functions banners and file trailers, while comments to typedefs are left in a classic style.
I also found that it is possible to insert doxygen-like comments for typedefs in MATLAB generated code (see this page). However, I cannot manage to do the same for code generated from a Simulink model. I tried to add a "Type Definitions" section to my custom CGT file but nothing happened. In particular I added the following lines to my custom CGT:
%% Type Definitions
<TypeDefinitionsBanner style="doxygen_qt">
Type Definitions
</TypeDefinitionsBanner>
Any suggestion?
Thnak you.I am using Embedded Coder to generate C code for a model. My model contains several busses that are translated to struct typedefs in C.
As expected, the "Description" field of each signal in the bus is transalted into a comment in the C code.
I would like the comment to have a doxygen style, that is it should be in the form:
/** My comment */
By looking into the help, I saw that in Simulink there is the possibility to do something similar by creeating a custom CGT file (see this page). Anyway, the comment style only applies to file banners, functions banners and file trailers, while comments to typedefs are left in a classic style.
I also found that it is possible to insert doxygen-like comments for typedefs in MATLAB generated code (see this page). However, I cannot manage to do the same for code generated from a Simulink model. I tried to add a "Type Definitions" section to my custom CGT file but nothing happened. In particular I added the following lines to my custom CGT:
%% Type Definitions
<TypeDefinitionsBanner style="doxygen_qt">
Type Definitions
</TypeDefinitionsBanner>
Any suggestion?
Thnak you. I am using Embedded Coder to generate C code for a model. My model contains several busses that are translated to struct typedefs in C.
As expected, the "Description" field of each signal in the bus is transalted into a comment in the C code.
I would like the comment to have a doxygen style, that is it should be in the form:
/** My comment */
By looking into the help, I saw that in Simulink there is the possibility to do something similar by creeating a custom CGT file (see this page). Anyway, the comment style only applies to file banners, functions banners and file trailers, while comments to typedefs are left in a classic style.
I also found that it is possible to insert doxygen-like comments for typedefs in MATLAB generated code (see this page). However, I cannot manage to do the same for code generated from a Simulink model. I tried to add a "Type Definitions" section to my custom CGT file but nothing happened. In particular I added the following lines to my custom CGT:
%% Type Definitions
<TypeDefinitionsBanner style="doxygen_qt">
Type Definitions
</TypeDefinitionsBanner>
Any suggestion?
Thnak you. doxygen, cgt MATLAB Answers — New Questions
How can I add reflecting plane in “siteviewer” without using STL file in Matlab R2023b?
I am trying to use the ray tracing feature of the Antenna Toolbox. I am placing 1 transmitter and receiver and setting the material as water. However, I do not see the expected output of the raytracing where a reflecting plane should have been present. How do I add a reflecting surface without using STL file?I am trying to use the ray tracing feature of the Antenna Toolbox. I am placing 1 transmitter and receiver and setting the material as water. However, I do not see the expected output of the raytracing where a reflecting plane should have been present. How do I add a reflecting surface without using STL file? I am trying to use the ray tracing feature of the Antenna Toolbox. I am placing 1 transmitter and receiver and setting the material as water. However, I do not see the expected output of the raytracing where a reflecting plane should have been present. How do I add a reflecting surface without using STL file? antenna, toolbox, raytracing, custom, environment, siteviewer MATLAB Answers — New Questions