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

circa 14 anni fa | 2

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

circa 14 anni fa | 0

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

circa 14 anni fa | 0

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

circa 14 anni fa | 2

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

circa 14 anni fa | 0

| accettato

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

circa 14 anni fa | 0

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

circa 14 anni fa | 0

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

circa 14 anni fa | 0

| accettato

Risposto
Time delay
See: doc pause

circa 14 anni fa | 0

| accettato

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

circa 14 anni fa | 0

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

circa 14 anni fa | 3

| accettato

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

circa 14 anni fa | 0

| accettato

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

circa 14 anni fa | 1

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

circa 14 anni fa | 0

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

circa 14 anni fa | 16

| accettato

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

circa 14 anni fa | 0

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

circa 14 anni fa | 0

| accettato

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

circa 14 anni fa | 0

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

circa 14 anni fa | 1

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

oltre 14 anni fa | 1

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

oltre 14 anni fa | 2

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

oltre 14 anni fa | 0

| accettato

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

oltre 14 anni fa | 0