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

alrededor de 14 años hace | 2

Respondida
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, ...

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 2

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

alrededor de 14 años hace | 0

| aceptada

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 0

| aceptada

Respondida
Time delay
See: doc pause

alrededor de 14 años hace | 0

| aceptada

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 3

| aceptada

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

alrededor de 14 años hace | 0

| aceptada

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

alrededor de 14 años hace | 1

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 16

| aceptada

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 0

| aceptada

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

alrededor de 14 años hace | 0

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

alrededor de 14 años hace | 1

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

más de 14 años hace | 1

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

más de 14 años hace | 2

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0