已回答
How do I label Lines
Look at the <http://www.mathworks.com/help/matlab/ref/text.html text()> matlab function. You can add a label at any point and yo...

11 years 前 | 0

| 已接受

已回答
How to use a loop to call function to same plot.
Just use a loop, after the first line (after figure()), use for i=1:10 ...%Put code here end Make sure to add the end....

11 years 前 | 0

| 已接受

已回答
How can I extract one column from this matlab file?
If I were to assume that the column e is the second column and the name of the matrix it's in is matrix1, then: RequiredCol...

11 years 前 | 1

| 已接受

已回答
Solve f(x) in terms of another variable? Or just in general.
First of all, unless you define e as a number, MATLAB doesn't recognize it as the number e. To use the number e (2.71..), you sh...

11 years 前 | 0

已回答
Checking duplicateentries in a large matrix
I would recommend looking at the <http://www.mathworks.com/help/matlab/ref/unique.html unique()> function in MATLAB. In your ...

11 years 前 | 0

已回答
Cleaning-up Code With Comments
To add comments into a code, simply use the percent (%) sign. For example for i=1:10 x=i % Makes x equal to i end

11 years 前 | 0

已回答
How to insert a function into a push button
One of your problems might be that you are defining x in two different sections of the GUI. What you can do is pass the handles ...

11 years 前 | 0

| 已接受

已回答
how to close a particular figure file if it exists
I tried running the same thing and it worked, however, I assume that your main problem is in the if statement, not the close lin...

11 years 前 | 0

已回答
please any help to CHANGE THIS CODE to acquire one gray image per 3 minute
Change the pause line to pause(180). It reads it in seconds.

11 years 前 | 0

已回答
How to step over a loop and go into next iteration & plot graph with different vector length?
Why don't you use the <http://www.mathworks.com/help/matlab/ref/interp1.html interp1()> function to get data sets with the same ...

11 years 前 | 0

已回答
set image as background
http://www.mathworks.com/support/solutions/en/data/1-19J7T/?solution=1-19J7T

11 years 前 | 0

已回答
how to random value?
Generate values from the uniform distribution on the interval [a, b]. r = 2 + (3-2).*rand(1); or the general form ...

11 years 前 | 0

已回答
How to stop an ode-solver if integration takes too long?
At the start of your code: StartTime=clock; At the end of each loop/the point you might want to exit TimeElapsed=cl...

11 years 前 | 1

| 已接受

已回答
How to find the volume from a set of 500 datas?
plot(Data(:,1), Data(:,2))

11 years 前 | 0

| 已接受

已回答
How to use a function for multiple sets of numbers with a single command?
D=sqrt((A(2:end,2)-A(1:end-1,2)).^2+(A(2:end,3)-A(1:end-1,3)).^2)

11 years 前 | 1

已回答
sending data via serial port
To put a time interval in your script, I would suggest looking at the <http://www.mathworks.com/help/matlab/ref/pause.html pause...

11 years 前 | 0

已回答
About vector comparasion question.
Have you tried using the 'or' operator? if size(a,2)==3 | size(b,2)==3 ... elseif size(a,1)<=size(b,1) ... end Sorry...

11 years 前 | 0

| 已接受

已回答
How to remove background color from an image
I think this <http://www.mathworks.com/videos/image-processing-toolbox-overview-61214.html tutorial> will help you. Look through...

11 years 前 | 0

已回答
What does this mean? "In an assignment A(I) = B, the number of elements in B and I must be the same"
In the p(i+1) section, the y that you are multiplying by is actually a matrix. I think there is a mistake there because you p...

11 years 前 | 0

| 已接受

已回答
getframe in MATLAB movie
Just set your getframe(gcf) to whichever window you want to capture. For example, if you want to capture the plot in figure 1...

11 years 前 | 0

已回答
how to shift an array value upward ?
Just use a=a(1:end-1) to remove the last value.

11 years 前 | 0

| 已接受

已回答
A normalizing constant to a histogram
The way I understand it is that you want the plot to have more white space. Have you considered redefining the axis limits? T...

11 years 前 | 0

已回答
Is it possible to show point id in figure
hold on % Get the values from the matrix point_id=Matrix1(:,1); x=Matrix1(:,2); y=Matrix1(:,3); % Set the text to show up...

11 years 前 | 0

| 已接受

已回答
change colour of a text into blue
Try doing it in one line text(10, 0.06, 'Normal distribution', 'Color', 'b')

11 years 前 | 1

| 已接受

已回答
how to convert gray scale image into rgb image?
Gabriel made a script for that. You can find it <http://www.mathworks.com/matlabcentral/fileexchange/28111-gray2rgb here>.

11 years 前 | 0

已回答
Coordinates of an area graph
My solution would be to use the find() function. Since you have the max, you can search the data for where that value exists and...

11 years 前 | 0

| 已接受

已回答
Getting an if statement to accept a word.
Just change your inputs function to be: fit=input('Would you describe your fitness level as low, medium, or high?', 's') ...

11 years 前 | 0

已回答
How do i remove rows from a column based on the value of a corresponding column?
Remove=find(A<=120.0000); B(Remove)=[]; If you also want to remove these values from matrix A, then A(Remove)=[];

11 years 前 | 0

已回答
Integrate in time domain
You can use the <http://www.mathworks.com/help/symbolic/int.html int(expr,var,a,b)> function. So in your case, it would be ...

11 years 前 | 0

加载更多