Answered
How to change the MIN function?
Sounds like there are a variable number of inputs to this function. So your function can be used like: mina = mymin(1,2,3,...

12 years ago | 0

| accepted

Answered
Error using movie command in Matlab
Hi Adrian, I was able to reproduce the same issue with your above code. The problem is how the *M* array is being updated. ...

12 years ago | 1

| accepted

Answered
selective remove lines from array
Firas - if you have a matrix like the following: Z = 1 6 11 16 21 2 7 12 17 22 ...

12 years ago | 1

Answered
Input String as Array Variable_Urgent help
Juzer - your comments above seem to indicate that you are reading in some data from a text file and then trying to process the d...

12 years ago | 0

Answered
I want to skip one step
yousef - please remove/delete your answer (as it isn't an answer to your question). I've attached your pdf to this one. From...

12 years ago | 0

Answered
User defined color/linetype property
Hi Ryan - I think that the problem is what you have said above - when you _write out the *string*, it works fine_. This _string...

12 years ago | 0

| accepted

Answered
Extract data from cell array based on date and back into dataset
Hi Masao - A combination of the _ismember_ and removing of zeros may work. If *A* is your first matrix (larger data set) and *B...

12 years ago | 0

| accepted

Answered
Help with CODE please
Mo - A couple of things I did notice in the above code: there will be an an error/failure when the code tries to add the labels ...

12 years ago | 0

| accepted

Answered
draw points using mouse
You can try this: create a script called *myplotter.m*. Within this script, add the following code: % close any open figur...

12 years ago | 0

Answered
Image to Text conversion
The code is converting the uint8 integer array, *Img1D*, to the hexadecimal equivalent, stored as characters: imgHex = dec2...

12 years ago | 0

Answered
Sorting and storing character and numeric values
One approach may be to do something like the following - separate the text data and numeric data into two separate matrices. Bo...

12 years ago | 0

| accepted

Answered
delete variables without deleting gui
Elysi - if there are specific variables that you want cleared, then you can clear them by name: x = zeros(100,100); y ...

12 years ago | 1

| accepted

Answered
Beginning Matlab simple text question
You can use the square brackets to concatenate two strings (or arrays, matrices, etc.) together. For example: a = 'hello';...

12 years ago | 0

| accepted

Answered
How can I read from a text file in the following format?
If your above pattern hold true (i.e. line of text, 4x4 numeric matrix, line of text, 4x4 numeric matrix, etc.) then you can do ...

12 years ago | 0

| accepted

Answered
matrix sorting and distibution
yousef - the easiest part of the above problem is to get a matrix of sorted indices that correspond to the data in each row sort...

12 years ago | 1

| accepted

Answered
problm in imwriting a arrayimage
rohan - when you step through the attached code, does the following line get called 18 times (I'm guessing this is how many imag...

12 years ago | 0

| accepted

Answered
Updating values with for-loop
Mohammad - Please edit your above code so that it is a little more readable. Comments would definitely help. Please also descr...

12 years ago | 0

| accepted

Answered
Vectorizing/Profiling Code with double for loops etc
Hi E, Within your *while* loop, there is the following chunk of code: %making sure we begin with our circle again... ...

12 years ago | 1

| accepted

Answered
reading multiple images with two indexes using imread
Hi Chiara, Within your inner *for* loop, you are doing the following: ani=imread(['ani_',num2str(i),'_level_',num2st...

12 years ago | 0

| accepted

Answered
How to make multiples loops run at the same time?
Hi John - why not have an array of (ahem) balls each with their initial position and radius set, and then just the one while loo...

12 years ago | 1

| accepted

Answered
Combination of special sets and subsets
Hi hassan, My understanding of your question is that you want a way to find all combinations/sets of four elements where each...

12 years ago | 0

Answered
How can I export the output data into a ‘*.txt’ file?
Hi JMS, Just open a file for text writing (wt): fid = fopen('outputData.txt','wt'); Ensure that the file identifier (...

12 years ago | 3

| accepted

Answered
Debugging Help - Write a series of filenames
Hi Cameron, If I try to run the same code, I get the "Subscripted assignment dimension mismatch.". The problem is in the as...

12 years ago | 0

| accepted

Answered
How do I incremental increase values
Hi John, When including code in your question, please edit it so that it appears readable - just highlight the code portion(s...

12 years ago | 0

| accepted

Answered
unable to call the java function in my .jar
Hi Chan, I can replicate your issue if I load my collective.jar file and try to view the methods of the Radix2FFT java class:...

12 years ago | 0

Answered
Index must be positive integer or logical. I keep getting the same error when trying to run my code for numerical integration
Hi Beth, The error message 'Attempted to access fx(0); index must be a positive integer or logical.' arises because...

12 years ago | 0

Answered
randn function with so many digits or huge numbers
Metin - the result is not strange for the first example, since your vector of 100 elements is all ones (due to the 0*randn) and ...

12 years ago | 0

| accepted

Answered
How to select only some sections of a matrix?
Hi Cris, There are a couple of commands that may do what you want, but I'm not sure if you can completely avoid the for loops...

12 years ago | 0

Answered
Choose pairs of integers without repeating this selection in a loop
Hi Ehsan, One option is to keep track of a list of all the possible choices for your recombination, randomly select a pair of...

12 years ago | 1

Load more