Réponse apportée
How to meet two true conditions in a single loop?
Matlab allows you to string together multiple boolean expressions using the standard logic operators, "&" (and), ¦ (or), and ˜ (...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Cell matrix
I think you need to do.. UserData.matrix(i,j)={'0'}; % notice where we have parenthesis (indexing) and curly braces for th...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
transfering an image
Loren has a nice blog on transferring data between two computers using MATLAB. You should be able to use the same concepts.. ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Using parfor
What kind of problem have you set up using parfor.. a general fact about the Parallel Computing Toolbox is that the parallel tas...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
how to draw border
Since you are performing your operations on an image I'm assuming you know the coordinates and size of the rectangle you wan...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
How to index a cell
try size(a{1}) This should help <http://blogs.mathworks.com/loren/2006/06/21/cell-arrays-and-their-contents/>

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
plotyy xaxis not aligned with 'keeptick' and datenum
Clear the XTickLabel before using datetick.. remove hold.. That should solve the problem.. y1 = rand(12,1); y2 = rand(1...

plus de 14 ans il y a | 0

Réponse apportée
while plotting the graph ,it appears blank. How to solve this problem?
Try saving z as a vector and plotting it outside the loop.. f=[1,2,3,4,5,6,7,8,9,10]; t=1/0.4521; l=length(f); ...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
subplot axis scaling
because size(a) ans = 1.00 1001.00 It is not multiplying your xaxis by 1000, it is just plottin...

plus de 14 ans il y a | 0

Réponse apportée
Funny situations while helping others on MATLAB Answers
The easiest one so far has been.. How to add 1 to each element of array c=[2 4 6] Ans: c+1 This from a user...

plus de 14 ans il y a | 1

Réponse apportée
how to convert dicom image to jpg
You could use a software like power-dicom <http://www.dicom-solutions.com/powerdicom.shtm> around $200 or use a free soft...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Undefined function or variable when using load and trying to operate with variables
Since you are saving all the variables a 'z' try the following.. Z_1=load('C\wherever.the.variable.is.stored\Z_1'); Z_...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
loop on gpu
Hi this demo gives a good demo about converting matlab for loop example from CPU to GPU <http://www.mathworks.com/products/de...

plus de 14 ans il y a | 0

Réponse apportée
Possible OpenGL problem when using the figure command
You could try the following from terminal (not MATLAB command).. $ glxinfo | less make sure the following is right: ...

plus de 14 ans il y a | 1

Réponse apportée
plot textdata on the x axis and number data on the y axis
Convert your date array into a number using datenum doc datenum and then plot it using the plot command, and use 'dateti...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
date time convert to elapsed time
your cell array c={'12:00:00' '12:00:01' '12:00:02' '12:00:03'} d=datenum(c,'HH:MM:SS') out=d-d(1); time_sec=out*86...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
matrix form numerical integration
you are trying to perform trapezoidal numerical integration over a number of different values but the output z is not a vector....

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Statistical Test for Random Number Generators
You could try runstest - Run test for randomness <http://www.mathworks.com/help/toolbox/stats/runstest.html> Not sure...

plus de 14 ans il y a | 1

Réponse apportée
Change a single pixel value in a Grayscale JPEG image
Are you sure you are checking Xc in the variable editor, you might be checking X (original image). the above does work.. I h...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
How to calculate pink noise in Matlab?
This DSP demo has good details of filtering white and pink noise.. <http://www.mathworks.com/products/dsp-system/demos.html?f...

plus de 14 ans il y a | 0

Réponse apportée
How to simplify transfer function?
Try s=tf('s'); A=1/(1+s);B=A/(1+A); minreal(B)

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
what function of this? (weibul)
don't really understand your question, but I guess you want to to know what functions are being used above: fittype: Fit type...

plus de 14 ans il y a | 0

Réponse apportée
Collatz Sequence Plotting Issue
You could plot the number of steps required to get to 1 as shown in the Wolfram mathworld link <http://mathworld.wolfram.com...

plus de 14 ans il y a | 0

Réponse apportée
Using Pretty with R2011a?
Hmm, is definitely not related to R2011b, I have checked the following on all Ver R2010a,b, R 2011a,b and R 2012a on both window...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Newbie: Euclidean distance of a matrix??
Dunno if this is what you need: X=[5 3 1; 2 5 6; 1 3 2] for i=1:length(X) dist(i,:)=pdist(X(:,i),'euclidean')'; en...

plus de 14 ans il y a | 0

Réponse apportée
cell array
Try entryname1 =['b';'a'] entryname2 =['d';'c'] entryname=[entryname1 entryname2]

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Using the find function
A= magic(4) [row,col]=find(A>10) should give you all positions of values in a Which are > 10 To find the actual value...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
ginput
Try for i=1:12, [X,Y] = ginput(i); end X=round(X); Y=round(Y); * EDIT for 12 inputs* remove fo...

plus de 14 ans il y a | 0

Réponse apportée
Inserting Image
This might help: <http://blogs.mathworks.com/pick/2007/10/16/matlab-basics-setting-a-background-image-for-a-gui/>

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
convert Julian day to month
datetick('x','mmm','keeplimits') % remove keepticks to see all months Jan-Dec Dunno about the 10e5 bit.. might be a bug remn...

plus de 14 ans il y a | 0

| A accepté

Charger plus