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

circa 11 anni fa | 0

| accettato

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

circa 11 anni fa | 0

| accettato

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

circa 11 anni fa | 1

| accettato

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

circa 11 anni fa | 0

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

circa 11 anni fa | 0

Risposto
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

circa 11 anni fa | 0

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

circa 11 anni fa | 0

| accettato

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

circa 11 anni fa | 0

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

circa 11 anni fa | 0

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

circa 11 anni fa | 0

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

circa 11 anni fa | 0

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

circa 11 anni fa | 0

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

circa 11 anni fa | 1

| accettato

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

circa 11 anni fa | 0

| accettato

Risposto
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)

circa 11 anni fa | 1

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

circa 11 anni fa | 0

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

circa 11 anni fa | 0

| accettato

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

circa 11 anni fa | 0

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

circa 11 anni fa | 0

| accettato

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

circa 11 anni fa | 0

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

circa 11 anni fa | 0

| accettato

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

circa 11 anni fa | 0

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

circa 11 anni fa | 0

| accettato

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

circa 11 anni fa | 1

| accettato

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

circa 11 anni fa | 0

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

circa 11 anni fa | 0

| accettato

Risposto
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') ...

circa 11 anni fa | 0

Risposto
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)=[];

circa 11 anni fa | 0

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

circa 11 anni fa | 0

Carica altro