回答済み
Bug when printing to eps
Does this work? print(fig_h, '-depsc','-r700',file_saveas)

約14年 前 | 2

公開済み


When Deal doesn’t work, Disperse!
Brett's Pick this week is Disperse, by Sam Hallman. When I first saw Sam's "disperse" function--with the...

約14年 前

Thumbnail

回答済み
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:...

約14年 前 | 0

解決済み


Extract leading non-zero digit
<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...

約14年 前

解決済み


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

約14年 前

解決済み


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

約14年 前

回答済み
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...

約14年 前 | 0

| 採用済み

回答済み
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...

約14年 前 | 0

回答済み
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.

約14年 前 | 0

回答済み
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 ...

約14年 前 | 0

回答済み
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...

約14年 前 | 0

| 採用済み

回答済み
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')

約14年 前 | 3

| 採用済み

回答済み
replacement of for loop
It should be |&| instead of |&&| indexes= ROI~=255 & ROI~=0;

約14年 前 | 0

| 採用済み

回答済み
swap matrix row randomly
random_x = x(randperm(size(x, 1)), :)

約14年 前 | 30

| 採用済み

回答済み
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...

約14年 前 | 2

回答済み
converting date to matlab date
You need to pass in a string for datenum datenum('20100815', 'yyyymmdd')

約14年 前 | 1

| 採用済み

回答済み
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...

約14年 前 | 1

解決済み


Back to basics 20 - singleton dimensions
Covering some basic topics I haven't seen elsewhere on Cody. Remove the singleton dimensions from the input variable (e.g. if...

約14年 前

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

約14年 前 | 0

回答済み
"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...

約14年 前 | 0

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

約14年 前 | 0

| 採用済み

公開済み


Interactive Curve Class
Jiro's pick this week is Interactive Curve Class by Maxim Vedenyov. Have you ever wanted to create a test data set...

約14年 前

Thumbnail

回答済み
Unable to run Discriminant Analysis
|ClassificationDiscriminant| class is new in R2011b Statistics Toolbox. Do you have R2011b?

約14年 前 | 0

| 採用済み

回答済み
"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...

約14年 前 | 1

| 採用済み

解決済み


Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

約14年 前

回答済み
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...

約14年 前 | 0

| 採用済み

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

約14年 前 | 1

| 採用済み

解決済み


Angle between two vectors
You have two vectors , determine the angle between these two vectors For example: u = [0 0 1]; v = [1 0 0]; The a...

約14年 前

回答済み
Warning "Unable to interpret LaTeX string ..."
In case you didn't know, you could suppress certain warnings, like this: warnState = warning('off', 'MATLAB:gui:latexsup:Ba...

約14年 前 | 0

回答済み
Using gcf in functions
<http://www.mathworks.com/help/matlab/ref/gcf.html |gcf|> is not a variable, but rather a function. So you don't need to treat i...

約14年 前 | 3

さらに読み込む