Answered
Storing values from a nested FOR loop (can't get how to save the output into a matrix)
Your for loop goes from 1 to 70, so it looks like you're trying to generate 70 columns of data, not 40. Aside from that, you ...

5 years ago | 0

| accepted

Answered
Parforを用いてSimulink モデルを並列に実行する方法
これは、 |parfor| 内でループの外の変数が見えていないから起きます。一番簡単な対処法はループ内のコードを一つの関数としてまとめる方法です。 実際に |dsim| のモデル内でどの変数が必要か分かりませんが、仮に |A|, |fsin|, |T...

5 years ago | 4

| accepted

Answered
クラス フォルダーを利用してメンバ関数を別ファイルに作成した際に、TAB補完によるメンバ変数、メンバ関数を表示させる方法について
操作1に関しては、ドット表記の場合は別ファイルのメソッドに飛んでくれないみたいですが、関数表記だと飛んでくれました。 this.func1() % 飛ばない func1(this) % 飛ぶ 操作2に関してはでき無そうなので、対...

5 years ago | 2

| accepted

Answered
how to get a line information after applying the houghlines
In your example, the variable |lines| has the information about the straight lines. Double-click the variable in the Workspace. ...

5 years ago | 0

| accepted

Answered
Simulinkでベ​クトル信号の要素を昇順、降順で並​び替えるにはどうすれ​ばよいですか?
<https://jp.mathworks.com/products/dsp-system/ DSP System Toolbox> があれば <http://jp.mathworks.com/help/dsp/ref/sort.html Sort> ブロ...

5 years ago | 6

| accepted

Answered
How link axes horizontally in subplots?
I think what you want is this. Note the indexing using inside |linkaxes|. f = figure(); bFig(1:10) = axes(f); for k =...

5 years ago | 2

| accepted

Answered
グレースケールの3次元マッピング
グレースケール値を3次元の散布図で可視化したいということでしょうか。 im = imread('peppers.png'); imG = rgb2gray(im); % グレースケールに変換 imD = im2double(...

5 years ago | 3

Answered
how to implemment HMM [Hidden Markov Model of speech recognition]
If you have Statistics Toolbox, take a look at <http://www.mathworks.com/help/stats/hidden-markov-models-hmm.html HMM> there.

7 years ago | 0

| accepted

Answered
How to plot a simple curve
This is a very basic question and we have many places in the documentation for you to learn: # <http://www.mathworks.com/help...

8 years ago | 3

Answered
opening many files and changing code to match file name
This is probably a little too specific to your case, i.e. it's looking for a particular text. I'm just using <http://www.mathwor...

9 years ago | 0

| accepted

Answered
Bug when printing to eps
Does this work? print(fig_h, '-depsc','-r700',file_saveas)

10 years ago | 2

Answered
Simultaneous Video and Audio Acquisition
I assume you want something much better than issuing a "start" command to both |analoginput| and |videoinput| objects like this:...

10 years ago | 0

Answered
Unwanted line on plot
Is this what you're looking for? count = 0; Out1 = nan(1, 30); Time = nan(1, 30); while count < 3 for i = 1...

10 years ago | 0

| accepted

Answered
Unwanted line on plot
*[Old Answer]* You're seeing that behavior because you have data points remaining from the previous loop. You can reset the v...

10 years ago | 0

Answered
error in code
Read this line carefully: k(i+1;:)=k(i;:)+h*F_tanker(x,kat(i)) ; You have a couple of extra |;| in the line.

10 years ago | 0

Answered
Beginners Guide to Excel Link?
Have you gone through the documentation for Excel Link (or Spreadsheet Link EX)? It has several examples, including writing VBA ...

10 years ago | 0

Answered
Labeling data points in plotyy
You can specify the axes in which to place the text. For example, specify |ax(2)| for the right axes. Notice below, I specifi...

10 years ago | 0

| accepted

Answered
GUI - How to make a pop-up figure prevent from modifying anything else until it's closed
Is this what you're looking for? figure('WindowStyle', 'modal')

10 years ago | 3

| accepted

Answered
replacement of for loop
It should be |&| instead of |&&| indexes= ROI~=255 & ROI~=0;

10 years ago | 0

| accepted

Answered
swap matrix row randomly
random_x = x(randperm(size(x, 1)), :)

10 years ago | 25

| accepted

Answered
Question about labels under each boxplot.
When you say you don't have success, I assume you're saying that the labels aren't being rendered with the bold/italics/subscrip...

10 years ago | 2

Answered
converting date to matlab date
You need to pass in a string for datenum datenum('20100815', 'yyyymmdd')

10 years ago | 1

| accepted

Answered
Identifying lab id within a parfor
Why not save the file based on the iteration number? Wouldn't you still overwrite the results if you were using the labindex bec...

10 years ago | 1

Answered
function reference file
Read about <http://www.mathworks.com/help/matlab/matlab_prog/function-handles.html "Function Handles"> here.

10 years ago | 0

Answered
"print figure" to variable... getframe, with better resolution...
Take a look at <http://www.mathworks.com/matlabcentral/fileexchange/23629 |export_fig|> which is a user-submitted file on File E...

10 years ago | 0

Answered
structure conversion
Functions can take structures (created from Simulink or elsewhere). It depends on which function you're trying to call. That det...

10 years ago | 0

| accepted

Answered
Unable to run Discriminant Analysis
|ClassificationDiscriminant| class is new in R2011b Statistics Toolbox. Do you have R2011b?

10 years ago | 0

| accepted

Answered
"rise time, overshoot, settling time" from Simulink graph?
If you have <http://www.mathworks.com/products/control/ Control System Toolbox>, you can use <http://www.mathworks.com/help/tool...

10 years ago | 1

| accepted

Answered
Need help solving second order differential equations using ODE45
The initial conditions imply that t=0, so you simply need to pass in the two initial conditions for x and dx/dt. So for your exa...

10 years ago | 0

| accepted

Answered
Pop up menu
Value = 2; set(handles.popupmenu, 'Value', Value); |'Value'| refers to the "Value" property of the pop up menu. The seco...

10 years ago | 1

| accepted

Load more