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

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Deleting Certain Numbers in a Matrix
you can do this A(A>8.4)=[];

plus de 12 ans il y a | 0

| A accepté

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

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 0

| A accepté

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

plus de 12 ans il y a | 0

| A accepté

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

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 1

| A accepté

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

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 0

| A accepté

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

plus de 12 ans il y a | 0

| A accepté

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

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 0

| A accepté

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

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 2

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

plus de 12 ans il y a | 0

Réponse apportée
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(:);...

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 1

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

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 0

| A accepté

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

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 1

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

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 0

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

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How to get the most frequent value of vector on Matlab ?
you can use mode()

plus de 12 ans il y a | 0

| A accepté

Charger plus