photo

Shojiro SHIBAYAMA


Last seen: 3 years ago Active since 2016

Followers: 0   Following: 0

Dr. Eng. (from University of Tokyo, Japan for chemical engineering)

Statistics

All
  • Thankful Level 2
  • Community Group Solver
  • Knowledgeable Level 2
  • Revival Level 1
  • Personal Best Downloads Level 2
  • 5-Star Galaxy Level 1
  • First Submission
  • GitHub Submissions Level 1
  • First Review
  • First Answer
  • Thankful Level 1
  • Solver

View badges

Feeds

View by

Solved


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 years ago

Solved


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 years ago

Solved


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 years ago

Solved


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 years ago

Solved


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 years ago

Solved


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 years ago

Solved


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 years ago

Solved


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 years ago

Solved


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

4 years ago

Solved


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

4 years ago

Solved


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 years ago

Solved


Create a vector
Create a vector from 0 to n by intervals of 2.

4 years ago

Solved


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 years ago

Solved


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

4 years ago

Solved


Find max
Find the maximum value of a given vector or matrix.

4 years ago

Solved


Inner product of two vectors
Find the inner product of two vectors.

4 years ago

Solved


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

4 years ago

Solved


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 years ago

Solved


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 years ago

Question


操作変数ありのシミュレータの設計
ode45などで操作変数有りのプラントモデルの実装例がみたいです。 simulinkモデル無しにMATLABコードだけでシミュレータとプロセス制御のコードを書きたいのですが、可能ですか?

4 years ago | 0 answers | 0

0

answers

Answered
複数の方程式からなる関数を用いたフィッティング方法
fcn2optimexpr この関数のドキュメント読むと,以下の利用例がありました. myfcn = fcn2optimexpr(@RtoODE,r,tspan,y0); これを踏まえると, [T, sol] = fcn2optimexpr(@fu...

4 years ago | 0

Answered
絶対パスから相対パスへ変更
作業フォルダを起点に相対パスを書くならば [pwd '/relative/path/data.mat'] と pwd コマンドを使うと良いと思います。 mfilenameという関数も場合によっては利用可能です。

4 years ago | 0

| accepted

Answered
mファイルでの微分
関数の数値微分は、 と表わせますので、関数 fおよび入力の値xを引数に持つインライン関数などを定義すれば良いと思います。dxは十分小さい値を与えましょう。n階微分を定義するきれいな方法もあるはずですが割愛します。 以下に、2次関数を数値微分するサン...

4 years ago | 1

| accepted

Answered
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 years ago | 1

Answered
'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 years ago | 1

Answered
ソース管理の設定
「このrepoは仮に作成したものにすぎないので、この設定を削除、もしくは元に戻したい」 ここがよく分からないのですが、リポジトリを削除するということであれば、以下のコマンドでbashから削除できると思います。 $ ls -lt .git $ rm -...

4 years ago | 1

| accepted

Answered
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 years ago | 1

Answered
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 years ago | 1

Answered
`libraryCompiler` view does not show the option of '.NET Assembly'
This issue comes from the license lackness. Thanks.

4 years ago | 0

| accepted

Submitted


outN
A function that picks up N-th output of a function.

4 years ago | 1 download |

Load more