1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- //
- // Academic License - for use in teaching, academic research, and meeting
- // course requirements at degree granting institutions only. Not for
- // government, commercial, or other organizational use.
- // File: PhaseCodedWaveform203.cpp
- //
- // MATLAB Coder version : 5.3
- // C/C++ source code generated on : 26-Apr-2023 23:54:03
- //
- // Include Files
- #include "PhaseCodedWaveform203.h"
- // Function Definitions
- //
- // Arguments : void
- // Return Type : PhaseCodedWaveform203
- //
- namespace coder {
- namespace phased {
- PhaseCodedWaveform203::PhaseCodedWaveform203()
- {
- matlabCodegenIsDeleted = true;
- }
- //
- // Arguments : void
- // Return Type : void
- //
- PhaseCodedWaveform203::~PhaseCodedWaveform203()
- {
- matlabCodegenDestructor();
- }
- //
- // Arguments : creal_T s[10000]
- // Return Type : void
- //
- void PhaseCodedWaveform203::getMatchingWaveform(creal_T s[10000])
- {
- int ibtile;
- int k;
- signed char b_s[10000];
- signed char c_s[10000];
- for (k = 0; k < 2500; k++) {
- ibtile = k << 2;
- b_s[ibtile] = 1;
- b_s[ibtile + 1] = 1;
- b_s[ibtile + 2] = -1;
- b_s[ibtile + 3] = 1;
- }
- for (k = 0; k < 10000; k++) {
- s[k].re = 1.0;
- s[k].im = 0.0;
- }
- for (k = 0; k < 4; k++) {
- for (ibtile = 0; ibtile < 2500; ibtile++) {
- c_s[ibtile + 2500 * k] = b_s[k + (ibtile << 2)];
- }
- }
- for (k = 0; k < 10000; k++) {
- ibtile = c_s[k];
- s[k].re *= static_cast<double>(ibtile);
- s[k].im *= static_cast<double>(ibtile);
- }
- }
- //
- // Arguments : void
- // Return Type : void
- //
- void PhaseCodedWaveform203::matlabCodegenDestructor()
- {
- if (!matlabCodegenIsDeleted) {
- matlabCodegenIsDeleted = true;
- if (isInitialized == 1) {
- isInitialized = 2;
- }
- }
- }
- } // namespace phased
- } // namespace coder
- //
- // File trailer for PhaseCodedWaveform203.cpp
- //
- // [EOF]
- //
|