Answered
how to run all the images from a particular folder at a time ?
you can get the listing for all the images in a folder by using imageFiles = dir('*.imageExtension'); imageFiles will be a st...

12 years ago | 0

| accepted

Answered
Deleting Certain Numbers in a Matrix
you can do this A(A>8.4)=[];

12 years ago | 0

| accepted

Answered
How can I get cumulative product with tomonthly
What you are describing isn't cumsum. you should be using prod() which will be the product of all the elements. cumsum is the ...

12 years ago | 0

Answered
Add arrows to a graph
so to get the image without the arrows i am going to assume you have the [x,y,u,v] that will be used in quiver. as you have x,y...

12 years ago | 0

Answered
Deleting specific Rows in a matrix
you can do this A(B)=[]; This will delete the rows from A given the numbers that are stored in B.

12 years ago | 0

| accepted

Answered
I used 5 sliders in which values of 1st is changing in edit box. Others are not changing. Coding attached.
Just as you created each pushbutton and slider individually you should also create each edit box as well. Then pass the handle ...

12 years ago | 0

| accepted

Answered
How do you program CLT?
you can look at conv() which will do a rolling sum. With the rolling sum you just need to divide by the number of elements to ...

12 years ago | 0

Answered
How to add matrices with different dimensions
That makes more sense now. you can do something like this. k1=reshape([1:16],4,4)'; k2=reshape(17:32,4,4)'; K1=z...

12 years ago | 1

| accepted

Answered
Matlab algorithm for finding ROI
Here is an example of what you can do to determine the surroundings using convolution. x= randi(5,16,16); %generate rando...

12 years ago | 0

Answered
Selecting an ellipse as a region of interest (ROI)
Image Analyst should be getting the credit for the answer but here <http://www.mathworks.com/matlabcentral/answers/76788-how-to-...

12 years ago | 0

Answered
How to convert hex number '0' to binary when it is at first place in a bit stream
reading the documentation on dec2bin you can specify the number of bits >> hexstr= '0123'; >> n=length(hexstr); >> d ...

12 years ago | 0

Answered
Plotting within a FOR loop
a for loop to do the first part can be then used for the rest of your plots plot(EvaporatingT(1:8),Powerinput(1:8),'b', Eva...

12 years ago | 0

Answered
How to get values matrix ​​from the user ?
you can use input() and ask for the matrix. then transpose the matrix with B=A';

12 years ago | 0

| accepted

Answered
How do I copy pixels from one image onto another image?
What you have should be fine so far. After your maskimg = A.createMask you can use the find() function to find when maskimg~=0;...

12 years ago | 0

| accepted

Answered
how can i change the illumination angle when i mesh a 3D fig?
look at the <http://www.mathworks.com/help/matlab/visualize/lighting-overview.html> for an over view of changing the type and p...

12 years ago | 0

Answered
Importing data from an ascii file.
you can use dlmread() which you can specify the specific row and column to start importing the data. One thing to remember dlmr...

12 years ago | 0

Answered
graphing only portions of data
you don't need any for loops to do this. subplot(4,1,1),subplot(x(1:250),y(1:250)); subplot(4,1,2),subplot(x(1:2500),y(1...

12 years ago | 0

| accepted

Answered
How do I convert pdf to text through matlab?
If you have to do this manually (creating your own pdf to text) then you'll have to read up on the PDF file structures (link for...

12 years ago | 0

Answered
loading a mat file using its location, without knowing its name
The dir() command is what you are looking for. such that you can do MATfiles = dir('c:\testfolder\*.mat'); which will re...

12 years ago | 2

Answered
Searching different elements from array.
your example doesn't really make sense as array=[12 3 4 8 9 3 3 4 1] search=[4 9 3]; doesn't give you your answer if...

12 years ago | 0

Answered
loading text file to matrix without delimiters
simple method fid = fopen('example.txt','r'); line = fgetl(fid); spaces = strfind(line,' '); line(spaces)=0; x=line(:);...

12 years ago | 0

Answered
Plotting a function with different conditions
Look at each portion of your mytri() function. (side note your x2 equation doesn't match the first condition for x (you're miss...

12 years ago | 1

Answered
plotting 2 variable of different size length
You should look at the help documentation for plot(), How you have it written is you are plotting dd versus DFSL. I do not kno...

12 years ago | 0

Answered
Why the answer is wrong ( SIMPLE TRIGONOMETRIC)
to try to get zero as you want, you may have to do it in degrees. x= pi/4*180/pi; cosd(x)*cosd(x)-sind(x)*sind(x) wil...

12 years ago | 0

| accepted

Answered
how to convert a [1,a,a] array in a [a,a] array?
the function squeeze() should do the trick, it should return an array with the same elements your starting one but with all the...

12 years ago | 0

Answered
How to efficiently write an alternate code for the below given code?
If you know the total size of histo, pre-allocating it should make it run faster. histo = zeros(N,100000) %where N = number ...

12 years ago | 1

Answered
Pass variables between Guis created using Guide
If you want to get way from the use of global variables you try guidata(). A quick search of the forums came up with this link ...

12 years ago | 0

Answered
Adding vertical lines to subplots
you'll have to set the active axes before you do each line. Subplot h2 was the only one with the lines because it was the las...

12 years ago | 0

Answered
How to "print" on the command line or from a gui like is done from the figure "file" menu option
Thinking about it more... here is what i came up with. in GUIDE use the menu editor add in file and print as a new menu and m...

12 years ago | 0

| accepted

Answered
How to get the most frequent value of vector on Matlab ?
you can use mode()

12 years ago | 0

| accepted

Load more