RectangularWaveform103.cpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //
  2. // Academic License - for use in teaching, academic research, and meeting
  3. // course requirements at degree granting institutions only. Not for
  4. // government, commercial, or other organizational use.
  5. // File: RectangularWaveform.cpp
  6. //
  7. // MATLAB Coder version : 5.3
  8. // C/C++ source code generated on : 26-Apr-2023 23:41:22
  9. //
  10. // Include Files
  11. #include "RectangularWaveform103.h"
  12. // Function Definitions
  13. //
  14. // Arguments : void
  15. // Return Type : RectangularWaveform
  16. //
  17. namespace coder {
  18. namespace phased {
  19. RectangularWaveform103::RectangularWaveform103()
  20. {
  21. matlabCodegenIsDeleted = true;
  22. }
  23. //
  24. // Arguments : void
  25. // Return Type : void
  26. //
  27. RectangularWaveform103::~RectangularWaveform103()
  28. {
  29. matlabCodegenDestructor();
  30. }
  31. //
  32. // Arguments : creal_T s[10000]
  33. // Return Type : void
  34. //
  35. void RectangularWaveform103::getMatchingWaveform(creal_T s[10000])
  36. {
  37. for (int k{0}; k < 10000; k++) {
  38. s[k].re = 1.0;
  39. s[k].im = 0.0;
  40. }
  41. }
  42. //
  43. // Arguments : void
  44. // Return Type : void
  45. //
  46. void RectangularWaveform103::matlabCodegenDestructor()
  47. {
  48. if (!matlabCodegenIsDeleted) {
  49. matlabCodegenIsDeleted = true;
  50. if (isInitialized == 1) {
  51. isInitialized = 2;
  52. }
  53. }
  54. }
  55. } // namespace phased
  56. } // namespace coder
  57. //
  58. // File trailer for RectangularWaveform.cpp
  59. //
  60. // [EOF]
  61. //