Answered
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 ˜ (...

ungefär 12 år ago | 0

| accepted

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

ungefär 12 år ago | 1

| accepted

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

ungefär 12 år ago | 0

| accepted

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

mer än 12 år ago | 0

| accepted

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

mer än 12 år ago | 1

| accepted

Answered
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/>

mer än 12 år ago | 0

| accepted

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

mer än 12 år ago | 0

Answered
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); ...

mer än 12 år ago | 1

| accepted

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

mer än 12 år ago | 0

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

mer än 12 år ago | 1

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

mer än 12 år ago | 0

| accepted

Answered
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_...

mer än 12 år ago | 2

| accepted

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

mer än 12 år ago | 0

Answered
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: ...

mer än 12 år ago | 1

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

mer än 12 år ago | 0

| accepted

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

mer än 12 år ago | 1

| accepted

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

mer än 12 år ago | 0

| accepted

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

mer än 12 år ago | 1

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

mer än 12 år ago | 0

| accepted

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

mer än 12 år ago | 0

Answered
How to simplify transfer function?
Try s=tf('s'); A=1/(1+s);B=A/(1+A); minreal(B)

mer än 12 år ago | 1

| accepted

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

mer än 12 år ago | 0

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

mer än 12 år ago | 0

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

mer än 12 år ago | 0

| accepted

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

mer än 12 år ago | 0

Answered
cell array
Try entryname1 =['b';'a'] entryname2 =['d';'c'] entryname=[entryname1 entryname2]

mer än 12 år ago | 1

| accepted

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

mer än 12 år ago | 0

| accepted

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

mer än 12 år ago | 0

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

mer än 12 år ago | 0

| accepted

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

mer än 12 år ago | 0

| accepted

Load more