已回答
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...

15 years 前 | 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...

15 years 前 | 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.

15 years 前 | 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 ...

15 years 前 | 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...

15 years 前 | 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')

15 years 前 | 3

| 已接受

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

15 years 前 | 0

| 已接受

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

15 years 前 | 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...

15 years 前 | 2

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

15 years 前 | 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...

15 years 前 | 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...

15 years 前

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

15 years 前 | 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...

15 years 前 | 0

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

15 years 前 | 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...

15 years 前

Thumbnail

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

15 years 前 | 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...

15 years 前 | 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...

15 years 前

已回答
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...

15 years 前 | 0

| 已接受

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

15 years 前 | 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...

15 years 前

已回答
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...

15 years 前 | 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...

15 years 前 | 3

已解决


Specific Element Count
Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...

15 years 前

已回答
How to find all XY Graphs in Simulink model
As you can see from the FRP for <http://www.mathworks.com/help/toolbox/simulink/slref/find_system.html |find_system|>, you can s...

15 years 前 | 1

| 已接受

已回答
Fastest way to dot product all columns of two matricies of same size
When you say you're doing the dot product, I assume you're doing this: v1'*v2 and not dot(v1, v2) The equivalent...

15 years 前 | 0

已解决


Find matching string from a list of strings
Write a function that returns a string that is a unique match (if it exists) of the string |inStr| from a list of strings |strLi...

15 years 前

问题


Find matching string from a list of strings
Write a function that returns a string that is a unique match (if it exists) of the string |inStr| from a list of strings |strLi...

15 years 前 | 4 | 277 个解题者

已解决


First non-zero element in each column
For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero ...

15 years 前

加载更多