/*あああ*/ /*あああ*/

2021年1月30日土曜日

simulink シミュレーション結果(scope)データの保存方法

あとで書き直す

備忘録的にsimulinkのゼロからの使い方しるしていけばよかったな

いやまた今度時間あるときにやろうかな


いやまじの今更な話なんだけど、simulinkのscopeデータを出力する方法について

こんな感じでscopeに結果を出して眺めていてもそれを残せなければ仕方ありません。画像で保存してもいいかもしれませんが、後々の検討にデータが使えません。終焉った。もう、いい。

scopeを開き、赤印の設定ボタン(コンフィギュレーションプロパティ)→ログ→ワークスぺースにデータのログを作成にチェックを入れてからシミュレーションを実行します


するとワークスペースにコンフィギュレーションプロパティで設定した変数(ここではScopeData)が出力されます
なんか初期設定だとoutの中に出てout.ScopeDataになるっぽい


このデータをファイルに書き出します。
今回は時間軸(左列)とsin波形のデータ(右列)をエクセルファイルに書き出します。

writematrix(書き出す変数名,"保存名.xlsx")


でMATLABで開いてるディレクトリに保存されます

writematrix(書き出す変数名)

だけだとtxtで保存されるとかそういう出力指定子とかなしょさいはwritematrix (公式ページ)にありました

おわり





1 件のコメント:

  1. If you should 클레오카지노 play fewer than maximum credits, look for a multiplier in which the final-coin bounce within the prime jackpot is fairly small. Better yet, choose a machine that lets you keep inside your finances while enjoying in} maximum credits. If your finances will not allow you to play maximum credits on a $1 machine, transfer to a quarter machine. If you're not comfy enjoying in} three quarters at a time, transfer to a two-quarter machine. If you'll be able to|you presumably can}'t play two quarters at a time, play a nickel machine. Second, as a result of|as a result of} the combinations are random, or as near random as is possible to set the program, the percentages of hitting any particular mixture are the identical on every pull.

    返信削除

TVS REGZA ブルーレイレコーダ DBR-T1010のHDD換装

◆要約 ・DBR-T1010を購入し、1TBの内蔵HDDを6TBに換装した。 ・TVS REGZA製のブルーレイレコーダはHDD換装が可能で大容量を安価に実現できるのでおすすめ。 〇TVS REGZA製のブルーレイ...