Answered
Textscan with blocks of data with headers to individual block
Raj - presumably, each block of 8 lines that you wish to ignore is of the format <empty line> Data Header: ...

12 years ago | 0

Answered
How do you do a derivative with a certain value?
Yianni - try using <http://www.mathworks.com/help/symbolic/subs.html subs> as syms x f = (3*x^5)-(x^3)+(2*x^2)+4; df =...

12 years ago | 0

| accepted

Answered
error while using comm.QPSKModulator object
Franklin - I suspect a problem with the line 56 of *transmitter.m* modData = step(hModulator, adjustedIndex); is that you...

12 years ago | 0

| accepted

Answered
im2frame, imread, movie...difficult. how could i work it?
In the line of code that is being used to read the image, you are concatenating the filename (a string/character array) with a 6...

12 years ago | 1

Answered
Error using imnoise>ParseInputs (line 227)
You have a typo in the noise type - it should be *pepper* and not *papper*. Try the following instead imnoise(k,'salt & pep...

12 years ago | 0

| accepted

Answered
How to callback multiple Button Groups
Kenny - for simplicity, let's assume that you just want your static text string to be a combination of the radio button text fro...

12 years ago | 0

| accepted

Answered
How to completely change the title of a plot when switching between two cases?
Fede - what do you mean by _Everything is actually updated but the title: when I switch to the second case, it is overwritten_. ...

12 years ago | 0

| accepted

Answered
Matlab change structure field name by comparing it with a list of conversions
Mustahsan - to be clear, you have a struct with a number of fields. If any of those field names appear in column 1 of your *lab...

12 years ago | 1

| accepted

Answered
How will i solve this problem? "Index exceeds matrix dimensions". i am not sure which line corresponds to the error can anyone help me?
Santhiya - which line of code does the error correspond to? The error message is telling you that you are trying to access an e...

12 years ago | 1

| accepted

Answered
How can put or place cursor a tex edit box in GUI without a mouse click?
Try using <http://www.mathworks.com/help/matlab/ref/uicontrol.html uicontrol> to set focus to the username text box. If you a...

12 years ago | 2

| accepted

Answered
How to delete specific lines from a txt file?
Mario - which of your two matrices, *E* or *G*, do you wish to delete the excess row from? Your code compares the first column ...

12 years ago | 1

| accepted

Answered
How to run multiple programs
Dav - it seems that you could use the <http://www.mathworks.com/help/matlab/ref/run.html run> command to do this. If *test* is ...

12 years ago | 2

Answered
Section a 2d matrix and put the sections into a 3d matrix
You can use the *reshape* function to produce the desired result without looping. Since each of the three dimensions correspond...

12 years ago | 2

Answered
Sort Matrix by rows
Ege - consider using *sortrows* to perform the above task A = [1 2 3 4 5 6 23 45 10 90 11 34]...

12 years ago | 0

Answered
How to create a for loop in function with a step size as input?
You may be able to avoid the *for* loop altogether and just pass in a vector of the values from 765 to 805. This should work s...

12 years ago | 1

| accepted

Answered
Elite feature of genetic algorithm
Mudasir - from your previous posts, I think that you have written your own version of the genetic algorithm and are not using th...

12 years ago | 0

| accepted

Answered
Adding subplots to animated gif file
Masao - what do you mean by _I would like to do this with subplots for other parameters_? As your above code doesn't reference ...

12 years ago | 1

| accepted

Answered
problem with cellular automata code?
Sara - how did you try to execute the code? Based on the given link, the function requires a rule (so this is an integer from 1...

12 years ago | 1

| accepted

Answered
How to properly pass handles into TimerFcn? Handles is currently showing up as emtpy
Justin - remember that function signature for *Opening_Fcn* is function myGui_OpeningFcn(hObject, eventdata, handles, vararg...

12 years ago | 3

| accepted

Answered
Cant get headerlines to work
Cio - as you noted, the result of the *urlread* is a 1x2881 character array. To convert it to a matrix, you could just look for...

12 years ago | 0

Answered
Error while evaluating unicontral callback calculator
Gry - you seem to be missing the function definition for the *pushbutton3_Callback*. Your code for this is simply % --- Exe...

12 years ago | 0

Answered
Midpoint numerical integration without a built in function
Aggie - the midpoint method should be very similar to your Euler implementation, with just a couple of minor changes (for exampl...

12 years ago | 2

Answered
Need help creating a matrix based on user inputs for the following snake like pattern
Since the grid size is NxN, then wouldn't your *X* and *Y* vectors have N*N elements or coordinates each, one for each square in...

12 years ago | 0

Answered
How to access the data type of the each column of a table
I think that your code is almost there in terms of breaking down the data into categorial, string, and numeric types, it is just...

12 years ago | 0

Answered
how to add columns with a certain formula
AA - you seem to have a good idea of the algorithm, so it should be straightforward to implement. Suppose *myData*, a matrix of...

12 years ago | 0

| accepted

Answered
why when i use two guides i'm losing the handles variables?
You included a lot of code in your question. In the future, please just attach the m files to your question using the paperclip...

12 years ago | 2

| accepted

Answered
i am working in fluid dynamics problem. when i run the program , i got the following error. please explain Attempted to access n(-0.2); index must be a positive integer or logical
Siva - *n* is defined as n=sqrt(a4); where *a4* is a 1x1 complex number. So *n* is a 1x1 complex number as well. The er...

12 years ago | 0

Answered
Overload only several functions
Zoltán - have you created a new class that you wish to implement the *max*, *min*, and *abs* functions for? Or are you trying t...

12 years ago | 2

Answered
calculating average from 2 rows
It sounds like you just want to add a seventh column to each cell in your cell array. Just sum the third and fourth columns and...

12 years ago | 0

| accepted

Answered
Matlab recognizes arduino but not other code.
Andrew - a similar problem was discussed <http://www.mathworks.com/matlabcentral/answers/157092-matlab-r2014a-updates-my-arduino...

12 years ago | 1

Load more