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

plus de 9 ans il y a | 1

Réponse apportée
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]';...

plus de 9 ans il y a | 1

Réponse apportée
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...

plus de 9 ans il y a | 3

| A accepté

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

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

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

plus de 9 ans il y a | 0

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

plus de 9 ans il y a | 1

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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.

plus de 9 ans il y a | 1

| A accepté

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

A résolu


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

plus de 9 ans il y a

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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}; ...

plus de 9 ans il y a | 0

| A accepté

A résolu


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

plus de 9 ans il y a

Réponse apportée
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...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 5

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
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....

plus de 9 ans il y a | 1

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
複数のテキストデータから一つの散布図の作り方
Communication System Toolboxの関数 _scatterplot_ は実行毎に新しいFigureが作成されます。散布図を新規のFigureではなく、既存のFigureに追加する場合には、 scatterplot(x,n,o...

plus de 9 ans il y a | 1

Réponse apportée
how do I make scatterplot from many data sets.
See. https://jp.mathworks.com/matlabcentral/answers/304711-

plus de 9 ans il y a | 1

Réponse apportée
Matlab2016aが起動できなくなった[windows10]
MATLABのインストールフォルダごと消えてしまったということでしょうか。 matlab.exeが消えてしまうという現象は確認したことがありませんが、Windows側に原因がある場合にはMATLAB側からの修復は難しい可能性があります。再インストールも検...

plus de 9 ans il y a | 4

Réponse apportée
Replacing elements in an array
R=[1 2 1 2 2 2]'; R(R==2) = 4; See <http://blogs.mathworks.com/loren/2013/02/20/logical-indexing-multiple-conditions/ Lo...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
Control histogram appearance: width of bars
_'BarWidth'_ option only applies to histograms of categorical data. Is your _FIBR_ categorical or numerical? The following is...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
Mapping Toolboxをインストールするための手順はどのようにすればいいのでしょうか?
Mapping ToolboxはStudent版では提供されていませんが(詳細: <https://jp.mathworks.com/academia/student_version/add-ons.html Add-ons> ) <https://...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
Passing additional inputs to gamultiobj
You can take advantage of properties of anonymous functions to define values for additional inputs. Suppose you have another ...

plus de 9 ans il y a | 2

| A accepté

Charger plus