将矩阵转换为结构时出错?

时间:2018-09-22 15:55:46

标签: matlab

我正在Matlab中尝试以下方法: Traveling Salesman Problem - Genetic Algorithm by Joseph Kirk

但是,当我创建矩阵并尝试将其传递给结构体时,会出现错误:

<?php

session_start();

$_SESSION['username'] = 'User'; //test 
$_SESSION['points'] = 300; //test

if (isset($_GET['reward'])){
   $_SESSION['reward_hit'] = true;
   header('Location: /temp/test.php'); //redirect to same url

} elseif (isset($_SESSION['reward_hit'])) {

    unset($_SESSION['reward_hit']);
    $username = $_SESSION['username'];
    $points = $_SESSION['points'];

    if ($points >=500) {
      echo " test value is more than 500";
    } // ANTRA IF UZDAROM
    else {
      echo " test value is less than 500";  //test
      echo '<script type="text/javascript">';
      echo 'setTimeout(function () { swal({type: "error",title: "Oops...",text: "You do not have enough points!
",buttonsStyling: false,heightAuto: false});';
      echo '}, 1000);</script>';
    }
} // PIRMA IF UZDARO

错误:

B = [1 2 3 4; 5 6 7 8];
C = struct(B);
tsp_ga(C);

0 个答案:

没有答案