Answered
最小の傾きを調べる方法
下記の数式は回帰分析で導出したのではなく(そもそも座標データが提示されていない)、曲線がシグモイド関数に似ている事から同関数の式の係数を調整して作成しました。またこの数式は質問文と90度違っていて、xが縦軸B, y=f(x)が横軸Aです。 >X座標が...

5 years ago | 0

| accepted

Solved


Count unique orderings of vertices of a polygon
Cody Problem 2671 asks us to determine whether four points can be the corners of a rectangle. The points are not necessarily inp...

5 years ago

Solved


Find the sum of the following series
A(n)=(n*(n-1)!)/(n-2)!

5 years ago

Answered
データのプロットを得る方法
データにフィッティングする関数を求めるにはどのような方法がありますか? - MATLAB Answers - MATLAB Central (mathworks.com) 上記の公式回答がとても参考になるので、自分の目的にあった方法を探してください。 ...

5 years ago | 0

| accepted

Answered
MATLABのプログラミングで「XFLR5」というソフトを使う方法
「XFLR5」というソフトを使った事が無いので良くわかりませんが、MATLABとのインターフェースに着目して回答します。 >MATLABと他のソフト(XFLR5のような)をつなげて、計算することはできますか? 質問の解釈 MATLABは何も指示しなく...

5 years ago | 0

| accepted

Answered
Excelの数値変換について
異なる列数の行列の連結について - MATLAB Answers - MATLAB Central (mathworks.com) 上記Q&Aを真似てExcelの入出力を追記しました。 % 数値だけ読み込む(Aはテストデータと正解の両方) [A,~,...

5 years ago | 2

Answered
CSVデータで指定した列数だけ行数を切り取り、正方形のデータとして抽出したい
前回答のコメントで追加された要件への対応です。末端の処理は「余るデータを切り捨て」ではなく「データ数不足でも保存」に変更しました。while文ループなのでreshape関数に比べると処理が遅いです。 function k = moving_window_...

5 years ago | 1

Answered
ある関数y=f(x)についての逆関数の作り方
逆関数 - MATLAB finverse - MathWorks 日本 syms x f(x) = 1/tan(x); g = finverse(f) g(x) = atan(1/x)

5 years ago | 2

| accepted

Answered
semilogx におけるグリッドラインについて
座標軸の外観と動作 - MATLAB - MathWorks 日本 >実線のグリッドラインは残し,点線のグリッドラインとその部分の目盛りを消去する方法を教えてください. % 実線のグリッドラインは残し gca.XGrid = 'on' gca.YG...

5 years ago | 1

| accepted

Answered
BusSelectorの入力信号のフィルタ結果をMファイルからアクセスする
>BusSelectorのフィルタ結果を返すコマンドはありますか 質問文にあるget_paramの引数を’OutputSignals'にすれば、フィルタをかけた結果が得られます。 get_param('untitled/BusSelector','Ou...

5 years ago | 0

Answered
figの中のplotしたグラフのプロパティインスペクターの選択方法
Figure の [プロット ブラウザー] の表示/非表示 - MATLAB plotbrowser - MathWorks 日本 Figureのメニューから「デスクトップ」-「プロット ブラウザー」を選択すると、各信号を項目表示します。 「プロパティ...

5 years ago | 2

| accepted

Answered
凡例のフォントを指定する方法
MATLABからベクトルグラフィックスとして図を書き出す方法 - Qiita 「既定値」(デフォルト値)をTimes New Romanの字体に設定するなら、 set(groot,'DefaultLegendFontName','Times New R...

5 years ago | 1

Answered
凡例のフォントを指定する方法
既存の凡例のフォントを設定したい場合: 下記の様に'Legend'オブジェクトを探して、その'fontName'を指定する事が出来ます set(findobj('type', 'Legend'), 'FontName', 'Times New Roma...

5 years ago | 1

Answered
アクティベーション解除の方法
通常は下記公式回答のようにアクティベーション停止アプリケーションより停止を行いますが、 アクティベーション停止手順を教えてください。 - MATLAB Answers - MATLAB Central (mathworks.com) 上記が不可の場合、...

5 years ago | 1

| accepted

Answered
Excelのデータのプロット
本回答に添付したEXCELファイルを読み込む事を例に説明致します。 インポート ツールを使用したスプレッドシート データの読み取り - MATLAB & Simulink - MathWorks 日本 下図の「データのインポート」、「選択のインポート」...

5 years ago | 1

| accepted

Answered
Switch Case or if-else?
Switch statement cannot judge the range of R. It may be possible but it must be very tricky. Execute one of several groups of s...

5 years ago | 1

| accepted

Answered
for loo内のtrapzのエラーについて
台形則による数値積分 - MATLAB trapz - MathWorks 日本 trapz関数の引数の組み合わせは下記三種類のパターンがあります。引数の意味も併記しておきます。 Q = trapz(Y) Y — 数値データ:ベク...

5 years ago | 0

| accepted

Solved


Solving a quadratic equation
Given a, b ​​and c, Return the solution of the following quadratic equation: a*x^2 + b*x + c = 0.

5 years ago

Solved


Vectorizing, too easy or too hard?
Please insert a . before any ^, * or / in the string. That's it!!

5 years ago

Solved


Simple spirometer - find your lung capacity from the number and size of soap bubbles in one breath
Assumed that each bubble has practically the same diameter d. Given total number n of bubbles. Find volume v of breath.

5 years ago

Answered
連続した同じ数字をカウントアップする方法
x = [0 0 0 1 1 1 0 0 1] ; y = cell2mat(arrayfun(@(t)1:t,diff(find([1 diff(x) 1])),'un',0)); 演算の過程をメモします x = [0 0 0 1 1 1 0 0 ...

5 years ago | 2

| accepted

Answered
Calculate number in a matrix
> how can I calculate a matrix by asking a user's input? input function is the best solution. Request user input - MATLAB input...

5 years ago | 0

| accepted

Answered
How to eliminate combinations while looping?
1) I am not able to come up with a system to eliminate the combinations that occur so that I can reduce the number of iterations...

5 years ago | 0

Answered
Efficient way to build a matrix
> I want create a new matrix that includes these plus the 7 sequential values that preceed these, e.g. IndexSunriseFinal = [5 6 ...

5 years ago | 0

| accepted

Answered
入力引数の不足について
実行してみましたところ同様のエラーがでました。関数に対して引数を与える必要があるからだと理解しました。質問にあるコードをozbudak_bifurcation.mとして保存し、コマンドプロンプトから下記の様に関数を実行したところエラーは解消しました。引数の...

5 years ago | 0

Answered
コンフィギュレーションパラメータ LabelGuidedReuseについて
Optimize Generated Code by Using Signal Labels to Guide Buffer Reuse - MATLAB & Simulink - MathWorks 日本 上記ドキュメントが本質問の回答になっています。...

5 years ago | 0

Answered
saveコマンドを用いて変数をmatファイルに保存する場合にfigureの保存を除く方法
whs = whos; % ワークスペースの変数をサイズおよびタイプと共に一覧表示する whs(ismember({whs.class}, 'matlab.ui.Figure')) = []; % 一覧からクラスが'matlab.ui.Figure'の変...

5 years ago | 3

| accepted

Load more