Shojiro SHIBAYAMA
Followers: 0 Following: 0
Dr. Eng. (from University of Tokyo, Japan for chemical engineering)
Feeds
문제를 풀었습니다
Natural numbers in string form
Create a cell array of strings containing the first n natural numbers. _Slightly_ harder than it seems like it should be. Ex...
4년 초과 전
문제를 풀었습니다
Fix the last element of a cell array
Note: this is lifted directly from <http://www.mathworks.com/matlabcentral/answers/82825-puzzler-for-a-monday Puzzler for a Mond...
4년 초과 전
문제를 풀었습니다
Cell Counting: How Many Draws?
You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...
4년 초과 전
문제를 풀었습니다
Convert a Cell Array into an Array
Given a square cell array: x = {'01', '56'; '234', '789'}; return a single character array: y = '0123456789'
4년 초과 전
문제를 풀었습니다
Split a string into chunks of specified length
Given a string and a vector of integers, break the string into chunks whose lengths are given by the elements of the vector. Ex...
4년 초과 전
문제를 풀었습니다
Convert a numerical matrix into a cell array of strings
Given a numerical matrix, output a *cell array of string*. For example: if input = 1:3 output is {'1','2','3'} whic...
4년 초과 전
문제를 풀었습니다
Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...
4년 초과 전
문제를 풀었습니다
Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...
4년 초과 전
문제를 풀었습니다
Get the length of a given vector
Given a vector x, the output y should equal the length of x.
4년 초과 전
문제를 풀었습니다
Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.
4년 초과 전
문제를 풀었습니다
Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...
4년 초과 전
문제를 풀었습니다
Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...
4년 초과 전
문제를 풀었습니다
Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.
4년 초과 전
문제를 풀었습니다
Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
4년 초과 전
문제를 풀었습니다
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
4년 초과 전
질문
操作変数ありのシミュレータの設計
ode45などで操作変数有りのプラントモデルの実装例がみたいです。 simulinkモデル無しにMATLABコードだけでシミュレータとプロセス制御のコードを書きたいのですが、可能ですか?
4년 초과 전 | 답변 수: 0 | 0
0
답변답변 있음
複数の方程式からなる関数を用いたフィッティング方法
fcn2optimexpr この関数のドキュメント読むと,以下の利用例がありました. myfcn = fcn2optimexpr(@RtoODE,r,tspan,y0); これを踏まえると, [T, sol] = fcn2optimexpr(@fu...
複数の方程式からなる関数を用いたフィッティング方法
fcn2optimexpr この関数のドキュメント読むと,以下の利用例がありました. myfcn = fcn2optimexpr(@RtoODE,r,tspan,y0); これを踏まえると, [T, sol] = fcn2optimexpr(@fu...
4년 초과 전 | 0
답변 있음
絶対パスから相対パスへ変更
作業フォルダを起点に相対パスを書くならば [pwd '/relative/path/data.mat'] と pwd コマンドを使うと良いと思います。 mfilenameという関数も場合によっては利用可能です。
絶対パスから相対パスへ変更
作業フォルダを起点に相対パスを書くならば [pwd '/relative/path/data.mat'] と pwd コマンドを使うと良いと思います。 mfilenameという関数も場合によっては利用可能です。
4년 초과 전 | 0
| 수락됨
답변 있음
mファイルでの微分
関数の数値微分は、 と表わせますので、関数 fおよび入力の値xを引数に持つインライン関数などを定義すれば良いと思います。dxは十分小さい値を与えましょう。n階微分を定義するきれいな方法もあるはずですが割愛します。 以下に、2次関数を数値微分するサン...
mファイルでの微分
関数の数値微分は、 と表わせますので、関数 fおよび入力の値xを引数に持つインライン関数などを定義すれば良いと思います。dxは十分小さい値を与えましょう。n階微分を定義するきれいな方法もあるはずですが割愛します。 以下に、2次関数を数値微分するサン...
4년 초과 전 | 1
| 수락됨
답변 있음
Help with column-wise matrix manipulation without for loop
Honestly, I didn't get what you want do precisely, but the following code may help you. IMO, for loop in MATLAB doesn't prolong ...
Help with column-wise matrix manipulation without for loop
Honestly, I didn't get what you want do precisely, but the following code may help you. IMO, for loop in MATLAB doesn't prolong ...
4년 초과 전 | 1
답변 있음
'Too many ouput arguments' error when trying to obtain an MWArray from .dll function in C#.
First, I recommend you to check the datatype of the output of the `magicmod.mymagic`. Or, you should just show us how the origin...
'Too many ouput arguments' error when trying to obtain an MWArray from .dll function in C#.
First, I recommend you to check the datatype of the output of the `magicmod.mymagic`. Or, you should just show us how the origin...
4년 초과 전 | 1
답변 있음
ソース管理の設定
「このrepoは仮に作成したものにすぎないので、この設定を削除、もしくは元に戻したい」 ここがよく分からないのですが、リポジトリを削除するということであれば、以下のコマンドでbashから削除できると思います。 $ ls -lt .git $ rm -...
ソース管理の設定
「このrepoは仮に作成したものにすぎないので、この設定を削除、もしくは元に戻したい」 ここがよく分からないのですが、リポジトリを削除するということであれば、以下のコマンドでbashから削除できると思います。 $ ls -lt .git $ rm -...
4년 초과 전 | 1
| 수락됨
답변 있음
How I ignore the unnecessary areas between two graphs in my Plot?
How about you ignore the indexes of both x `Time` and y `Ventricel` and `Atrium`? Define `THRESHOLD` as you wish and you reco...
How I ignore the unnecessary areas between two graphs in my Plot?
How about you ignore the indexes of both x `Time` and y `Ventricel` and `Atrium`? Define `THRESHOLD` as you wish and you reco...
4년 초과 전 | 1
답변 있음
HOW to open and plot .mat file
IF you follow your way of coding with `load`, the below code will work. x = load('S01E.mat'); figure;plot(x.data); or, `x.dat...
HOW to open and plot .mat file
IF you follow your way of coding with `load`, the below code will work. x = load('S01E.mat'); figure;plot(x.data); or, `x.dat...
4년 초과 전 | 1
답변 있음
`libraryCompiler` view does not show the option of '.NET Assembly'
This issue comes from the license lackness. Thanks.
`libraryCompiler` view does not show the option of '.NET Assembly'
This issue comes from the license lackness. Thanks.
4년 초과 전 | 0
| 수락됨