Respondida
How to remove subplot grey space between images
One way is to use |subplot| or |axes| to manually specify a tight region. In your code, change the |subplot| line to subplo...

más de 7 años hace | 3

| aceptada

Respondida
Problem using cell2mat on cell arrays from textscan
If they are numbers, why don't you read them in as a numeric (e.g. %f)? data = textscan(fid,'%f %f','Delimiter',','); Th...

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 4

| aceptada

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

más de 7 años hace | 2

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 6

| aceptada

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

más de 7 años hace | 2

| aceptada

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

más de 7 años hace | 3

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

alrededor de 9 años hace | 0

| aceptada

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

más de 10 años hace | 3

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

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 2

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

| aceptada

Respondida
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')

alrededor de 12 años hace | 3

| aceptada

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

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 30

| aceptada

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

alrededor de 12 años hace | 2

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

alrededor de 12 años hace | 1

| aceptada

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

alrededor de 12 años hace | 1

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

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

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 0

| aceptada

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

alrededor de 12 años hace | 1

| aceptada

Cargar más