Answered
セル配列の参照について
「非セル配列オブジェクトからセル要素を参照しています。」 は例えば _cell2mat_ にセル配列以外のものを入力したときに発生するエラーですが、表示されているセル配列 _data2_ に対して cell2mat(data2) の実行で発生...

10 years ago | 3

| accepted

Answered
2016b fitlm giving me error "Undefined function or variable 'istall'."
Hmm I could not reproduce your issues. One possibility is that the error comes due to corrupt path or installation. Have you tri...

10 years ago | 4

Answered
Error using Parallel Computing Toolbox with INTLAB
There are some restrictions on variables you can use within _parfor_. Example: <https://www.mathworks.com/help/distcomp/objects...

10 years ago | 0

Answered
Is it true that I will have GUIs issues when upgrading from Matlab 2013b?
It might be true if you are upgrading to R2014b or later. See <https://www.mathworks.com/help/matlab/graphics-changes-in-r20...

10 years ago | 2

Answered
Windowsで作成したMatLabプログラムをLinuxで動作する形にコンパイルすることは出来ますか?
どういった形で Lunix で動作させることを想定されていますでしょうか。 MATLAB上で動作することが前提ですと、基本的にはOS関係なくプログラムをそのまま MATLAB上で実行することが出来ます。 オプションの <https://jp....

10 years ago | 2

| accepted

Answered
インポートファイルの番号の更新方法について
sprintf('AAAA%04d.csv', i) ではいかがでしょうか。%4d でフィールド幅4の整数文字を作成しますが、%04d とすることで、値の前にゼロを入れてフィールド幅をパディングし、0001 や 0010 などを再現します。詳細は...

10 years ago | 2

| accepted

Answered
Distance after n steps in a one-dimensional random walk
Should the line d_n(i) =sqrt((mean(X.^2))); %the expected translation distance after n steps be out of for m=1:M loop?

10 years ago | 0

| accepted

Answered
Logical indexing in cell array
Using _cellfun_ is one way. b = {'1' '2' '3' '4' '5' '6'}; cellfun(@(x) strcmp(x,'3'), b)

10 years ago | 1

Answered
How do seperate a string in different strings while not creating new strings for variables
Using regular expression,, input = '# Donald-Duck [Father] Heuy [Son] Goofy Dewey [Son] Daisy-Duck Scrooge-McDuck [Uncle]';...

10 years ago | 1

Answered
how do I add MEAN to Boxplot?
The ability to plot the mean values using _boxplot_ is not available as of release R2016b. To work around this issue, you can fi...

10 years ago | 3

| accepted

Answered
RESAMPLE関数とスタンドアローン実行ファイルについて
_resample_ も複数ありまして状況に合わせて適切なものが呼び出されます。Signal Processing Toolbox の _resample_ に加えて、MATLAB本体にも _timeseries_ クラスの _resample_ メソッド...

10 years ago | 2

| accepted

Answered
how to create a linear regression in least squares method and Least absolute value method, and find the correlation coefficients.
As far as I know, MATLAB does not have least absolute value method implemented. Related answers are # <http://jp.mathworks.co...

10 years ago | 0

Answered
散布図の相関係数の求め方
<https://jp.mathworks.com/help/matlab/ref/corrcoef.html corrcoef関数>で相関係数は計算できるかと思います。 「各データセットごとではなくプロットした全ての値」から相関係数または線形回帰な...

10 years ago | 0

Answered
散布図の最小二乗法及び最小絶対値方による線形回帰
最小二乗法での簡単な線形回帰は、多項式近似を行う polyfit が MATLAB 本体にありますが、最小絶対値法を使用して線形回帰を行う関数はありません。fminsearch関数などを使用して最適化問題としての実装が可能かと思います。 今回、コ...

10 years ago | 1

Answered
Why "Can't load 'C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll': C:\Program Files\MATLAB\R2016b\bin\win64\libmwsimulink.dll is not a valid Win32 application."?
This may be a path issue. You installed a 64 bit MATLAB, but it seems that OS thinks it is a 32 bit application. The issue m...

10 years ago | 0

Answered
How do I extract extra parameters from the ode45 ordinary differential equation solver function?
One way is to use _OutputFcn_. I have attached an example function that will save _mass_ to the workspace when the calculation i...

10 years ago | 2

| accepted

Answered
Custom probability distribution in disttool
Unfortunately, using a custom distribution in _disttool_ is not currently supported. If I were you, I would # create my o...

10 years ago | 0

| accepted

Answered
When i saved my code , I am getting this error "Undefined function 'X0' for input arguments of type 'double'". Why is that?
_x0_ in your code is a variable or a function? The error message says that _x0_ is not defined.

10 years ago | 1

| accepted

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

10 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

10 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 ...

10 years ago

Answered
How to count the length of a raw?
Not sure if I understand your issues correctly, but do you happen to use ()? To see the length of the text inside of the cell, y...

10 years ago | 0

Answered
How to separate the field from a structure in MATLAB?
Your structure seems to be a nonscalar structure, so try using curly bracket: load('shape.mat'); x_constraint = {S.X}; ...

10 years ago | 0

| accepted

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

10 years ago

Answered
Approximate matching of numbers across 20 Matrices
If all the 20 datenum vectors has the same length, the following (though not straight forward) could work. # Concatenate all...

10 years ago | 2

| accepted

Answered
TreeBagger: Random forest or bagged decision trees?
It's Breiman's Random forest algorithm by default. Ref: <https://jp.mathworks.com/matlabcentral/answers/92525-where-can-i-f...

10 years ago | 5

| accepted

Answered
How to enlarge node in a graph?
_highlight_ function may be the one you are looking for. <https://www.mathworks.com/help/matlab/ref/graph.plot.highlight.html h...

10 years ago | 1

| accepted

Answered
Manipulating figure in any way makes cpu and ram go to 100%
I am not sure why the sudden issues, but if you are using R2014b or later, the following link could be of help. <https://www....

10 years ago | 1

Answered
Can I use the PDE toolbox to solve a heat transfer problem with 1 moving part?
Does your geometry consist of many parts with 1 moving part or just a single part that is going in and out of water? If your...

10 years ago | 0

Load more