for jj=1:1:51
for jjj=1:1000
for k=1:12
sg(jjj,k) = signal(jj,jjj,k);
sgu(jjj,k) = signalun(jj,jjj,k);
end
end
net.trainParam.epochs = 1;
net=train(net,sg,[1 1 1 1 1 1 1 1 1 1 1 1 ;0 0 0 0 0 0 0 0 0 0 0 0]);
net=train(net,sgu,[0 0 0 0 0 0 0 0 0 0 0 0;1 1 1 1 1 1 1 1 1 1 1 1]);
end
//g++ 7.4.0
https://qna.habr.com/q/1088148
#include<iostream>
#include <cstring>
#include<cmath>
#include<cstdlib>
#include<ctime>
#include<vector>
#include <bits/stdc++.h>
using namespace std;
int main()
{
setlocale(LC_ALL, "RUS");
srand(time(NULL));
const int n = 5;
double a[n][n], buf;
int k = 1;
cout << "Массив a" << endl;
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
a[i][j] = rand() % 20 - 10;
cout << "a[" << i << "][" << j << "] = " << a[i][j] << "\t";
}
cout << endl;
cout << endl;
}
vector<double> vd;
for (int i = 0; i < n; i++)
{
for (int j = 0;j<n;j++)
{
if(i==j)
break;
if(i==j+1)
vd.push_back(a[i][j]);
}
}
sort(vd.begin(), vd.end());
for(int i=0;i<vd.size();i++)
cout <<vd[i]<< endl;
k=0;
for (int i = 0; i < n; i++)
{
for (int j = 0;j<n;j++)
{
if(i==j)
break;
if(i==j+1){
a[i][j] = vd[k];
k++;
}
}
}
cout << "Отсортированная параллель побочной диагонали расположенной под диагональю" << endl;
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
cout << "a[" << i << "][" << j << "] = " << a[i][j] << "\t";
}
cout << endl;
cout << endl;
}
}
#include "MD5.h"
std::string query;
md5(pass);
#include <iostream>
#include <unistd.h>
int main()
{
int i=0;
while(i<1)
{
sleep(1);
i++;
}
std::cout << "Hello, world!\n";
}