A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

presque 13 ans il y a

A résolu


Is it an Armstrong number?
An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. Fo...

presque 13 ans il y a

Réponse apportée
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...

presque 13 ans il y a | 0

Réponse apportée
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...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 13 ans il y a | 0

Réponse apportée
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...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 13 ans il y a | 0

Réponse apportée
i am working on a college project, how can i count the no. of objects such as no. of cars in an image? how may i compare previous image and present image and tell the no. of new objects in present image? may i get a code for it?
I think looking at these examples should help you get started: http://www.mathworks.com/products/image/examples.html

presque 13 ans il y a | 0

Réponse apportée
how to shift an array value upward ?
Just use a=a(1:end-1) to remove the last value.

presque 13 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 13 ans il y a | 0

Réponse apportée
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...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
change colour of a text into blue
Try doing it in one line text(10, 0.06, 'Normal distribution', 'Color', 'b')

presque 13 ans il y a | 1

| A accepté

Réponse apportée
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>.

presque 13 ans il y a | 0

Réponse apportée
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...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
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') ...

presque 13 ans il y a | 0

Réponse apportée
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)=[];

presque 13 ans il y a | 0

Réponse apportée
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 ...

presque 13 ans il y a | 0

Réponse apportée
hello, i have 4 figures and need to combine them to one. How can I do it?
If you mean to plot 4 data sets onto the same figure, use the hold on after every plot (or you can do it all together): x1=...

presque 13 ans il y a | 0

Réponse apportée
How to reshape a matrix?
I would recommend looking at these two documentation: <http://www.mathworks.com/help/matlab/ref/reshape.html reshape(A,m,n)> ...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
can i pause matlab excution while it is already running
You can pause the script/function that you're running for a specified amount of time without quitting the script. You can use...

presque 13 ans il y a | 1

Réponse apportée
How do I select rows with particular step size?
If A is the 25000 X 5 matrix, then you can just use: A(1:20:end, :) to get 1,21,41,... from all of the columns. If you w...

presque 13 ans il y a | 0

| A accepté

Question


How can I get notifications when someone replies to an answer or to a comment?
When I'm answering questions in the forums and such, I haven't received any notifications when someone comments after my comment...

presque 13 ans il y a | 2 réponses | 1

2

réponses

Réponse apportée
How to display the answer got from .m file in GUI -- in edit box
I would suggest that your .m is a function that gives a specific output. So, from the previous post (depending on how many outpu...

presque 13 ans il y a | 0

| A accepté

Question


Combining two different matrices of different sizes
I want to combine two different matrices with a different number of columns so that the output has the lower number of columns. ...

presque 13 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
How to transfer axes from GUI to figure and save as PDF
I had this problem a while ago. I couldn't figure out how to solve it. I figured the best way was to open up a new figure (In...

presque 13 ans il y a | 0

Réponse apportée
When using saveas command in a driver file to save figures, is there a way to automatically name the saved figure after the values of a parameter defined in the function file?
I would suggest predefining a variable and using strcat to update the values. Instead of what you had before, you can just pu...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
import data using GUIs
I would suggest using the uigetfile function and then using the load function by using a pushbutton. Using GUIDE, make a pu...

presque 13 ans il y a | 1