Answered
Plot Multiple Colours automatically in a for loop
I would suggest taking a look at the 'hold all' command. Just replace the line: hold on with: hold all That way ...

14 years ago | 2

Answered
how can I use a name of an external variable in a function?
Do you mean something like this: function [] = savefigure( data, filename ) imagesc(data) saveas(1, filename, ...

14 years ago | 0

Answered
source code
Depends on the function. Just type 'edit' before the function name to see if the source is visible to the end user. For example:...

14 years ago | 0

Answered
Start Stop timer using counter in simulink
Just put an integrator within your enabled sub-system. Feed the integrator with a constant. Your output will then only ramp up w...

14 years ago | 2

Answered
Simulink and Variable Sized Global Variables
I don't believe you can do this, at least not in an easy way. You might be better off looking into the possiblity of initialisin...

14 years ago | 0

| accepted

Answered
cordic angles in hexadecimal format
See: doc num2hex Please note that your answers will be stored as strings.

14 years ago | 0

Answered
HOw to interfacing matlab with gsm
See FEX submission: http://www.mathworks.com/matlabcentral/fileexchange/16649-send-text-message-to-cell-phone

14 years ago | 0

Answered
Question matlab code
Try this: faceTemp = input('What is the temperature on the left face?'); The variable 'faceTemp' will now hold the numer...

14 years ago | 0

| accepted

Answered
Time delay
See: doc pause

14 years ago | 0

| accepted

Answered
Error in writing function file
Your function specifies 'k' as an output, yet within the function you use it as an input. There set 'k' as an input in addition ...

14 years ago | 0

Answered
Simulink to matlab results display
Export the signals from Simulink by using the 'To Workspace' block. Set the save format as 'Structure With Time'. In Matlab you ...

14 years ago | 3

| accepted

Answered
i have two tables, 1table is for power and other one is for area, if do have data in table 1
You could use one of Matlab's interpolation functions. Just ensure that your power and area tables are the same size. See: do...

14 years ago | 0

| accepted

Answered
rectangular grid lines on root locus plot
Like this for example: num = [1]; den = conv ([1 0] , [1 4 8]); rlocus (num, den) set(gca,'XGrid','on') set(gca...

14 years ago | 1

Answered
Windows® enviroment window control from matlab (activate window and enter commands)
I don't have Windows 7 to test this on, but this method works for Windows XP. To run a system command just append the command wi...

14 years ago | 0

Answered
how to edit GUI .fig file ??
Start the GUI editor by typing: guide Click on the 'Open Existing GUI' tab, then click browse to select you .fig file.

14 years ago | 16

| accepted

Answered
matrix
Using find with two return parameters might make it easier. [row, col] = find(matrix == 90096);

14 years ago | 0

Answered
Array Division
Usually u/v is equal to u*inv(v) in matrix terms. However, since v does not have an inverse Matlab will calculate the Moore-P...

14 years ago | 0

| accepted

Answered
How can I change the color of text?
The simple answer is that you can't, at least not using any standard Matlab commands. It is possible however to use Java to a...

14 years ago | 0

Answered
if statement
Within an embedded matlab function you have to ensure all variables are set independent of execution path through the code. Whi...

14 years ago | 1

Answered
Undefined function or variable 'fid' , but 'fid' isn't in any of the script files
The variable 'fid' is usually associated with file reading. You might want to start your search at those points in the code wher...

14 years ago | 1

Answered
profiler causing severe slowdown
The Profiler will slow your system down. Only turn it on when you really need it. There is no way to avoid this slow-down.

14 years ago | 2

Answered
simulate a variable from 0 to 255 in simulink
This setup should do what you need: Create a constant (1 for example), feed that into an integrator block, then feed that into ...

14 years ago | 0

| accepted

Answered
Help writting a simple code!
You won't be able to write an infinite series directly. You will either have to use an approximation, or only calculate the sum ...

14 years ago | 0