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

12年弱 前 | 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....

12年弱 前 | 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...

12年弱 前 | 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...

12年弱 前 | 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 ...

12年弱 前 | 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

12年弱 前 | 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 ...

12年弱 前 | 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...

12年弱 前 | 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.

12年弱 前 | 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 ...

12年弱 前 | 0

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

12年弱 前 | 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 ...

12年弱 前 | 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...

12年弱 前 | 1

| 採用済み

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

12年弱 前 | 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)

12年弱 前 | 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...

12年弱 前 | 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...

12年弱 前 | 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...

12年弱 前 | 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...

12年弱 前 | 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...

12年弱 前 | 0

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

12年弱 前 | 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...

12年弱 前 | 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...

12年弱 前 | 0

| 採用済み

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

12年弱 前 | 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>.

12年弱 前 | 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...

12年弱 前 | 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') ...

12年弱 前 | 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)=[];

12年弱 前 | 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 ...

12年弱 前 | 0

さらに読み込む