Answered
How to use the Finite Difference Method to get the gradient?
Have you looked at the <http://www.mathworks.com/help/releases/R2011a/techdoc/ref/gradient.html |gradient|> function? Arnaud

14 years ago | 1

Answered
plotting data with and without errorbars
Use <http://www.mathworks.com/help/releases/R2011a/techdoc/ref/errorbar.html |errorbar|>: X = 0:pi/10:pi; Y = sin(X); E =...

14 years ago | 0

| accepted

Answered
Obtaining a path name and using it
source_dir = uigetdir(); %Folder with the *.tif files cd(source_dir); %Changes folder to chosen folder mkdir('Target'); d...

14 years ago | 1

| accepted

Answered
vector display
Have a look at the <http://www.mathworks.com/help/releases/R2011a/techdoc/ref/format.html |format|> function, for example try: ...

14 years ago | 0

| accepted

Answered
automatic save images
See: * <http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F How can I create variab...

14 years ago | 0

Answered
how to simulate dinamic load in simpowersystem
Have a look at this <http://www.mathworks.com/support/solutions/en/data/1-1BDGS/ technical solution>. HTH, Arnaud

14 years ago | 0

Answered
Discrete equation with two unknown variables
This can be rewritten as: a*x1^2 - b*y1 = y1 a*x2^2 - b*y2 = y2 or in matrix form: A * [a b]' = [y1 y2]' where:...

14 years ago | 2

| accepted

Answered
saving figure at specefic resolution
Use the <http://www.mathworks.com/help/releases/R2011a/techdoc/ref/print.html |print|> command with the |-r| flag. HTH, Ar...

14 years ago | 0

| accepted

Answered
Plotting a graph to show correlation of voltage over current
voltage = 0:2.5:25; % V resistance = 10; % Ohms current = voltage / resistance; plot(current,voltage) xlabel('Current [A]'...

14 years ago | 2

| accepted

Answered
what is the difference between manually generated data and loaded data or random data?
<http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F>

14 years ago | 0

| accepted

Answered
Error Handling WITHOUT using try-catch statments
I wouldn't recommend trying to run a Simulink model within an Embedded MATLAB Function, which itself resides in another Simulink...

14 years ago | 0

Answered
complex numbers
You probably want: if (M(j,i)==0 || M(i,j)==1) However, I would not recommend testing directly for equality if you're us...

14 years ago | 0

Answered
I have a problem when I open the simulink file.
That's not very clear, but it seems that you need to change the character encoding. Have a look at the following pages from the ...

14 years ago | 3

| accepted

Answered
transfer function to c code
The code generation products have been repackaged in the latest release, R2011a. If you are using R2011a, you can use <http:/...

14 years ago | 0

Answered
Retrieve the figure from the surface fitting tool
Use |File| -> |Generate Code| to generate some MATLAB code that you can re-execute with different data. The generate MATLAB code...

14 years ago | 0

Answered
SimPowerSystem block Asynchronous Machine parameter values
That's a duplicate of a <http://www.mathworks.co.uk/matlabcentral/answers/7099-simpowersystem-block-asynchronous-machine-si-unit...

14 years ago | 0

Answered
Moisture in pneumatic model
As you point out, the pneumatic blocks in Simscape are based on the ideal gas law, so no, it's not directly possible to model mo...

14 years ago | 0

| accepted

Answered
data stored in workspace
If you look at the <http://www.mathworks.com/help/releases/R2011a/toolbox/simulink/slref/fromworkspace.html documentation> for t...

14 years ago | 1

| accepted

Answered
how to make arrows
You can use the <http://www.mathworks.com/help/releases/R2011a/techdoc/ref/annotation.html |annotation|> function as suggested b...

14 years ago | 1

| accepted

Answered
NI PCI-6115 hardware support in matlab
The web page you mention indicates that this particular board has been supported by the Data Acquisition Toolbox since R14SP3, s...

14 years ago | 0

| accepted

Answered
How to measure the frequency response of power system network in Simulink?
You can use <http://www.mathworks.co.uk/products/simcontrol/ Simulink Control Design> to linearize the model around an operating...

14 years ago | 1

Answered
How to delete mdl file with comand line?
It's probably because the file |new.mdl|, although erased, is still loaded in memory. Try using <http://www.mathworks.com/help/r...

14 years ago | 0

| accepted

Answered
TeX/LaTeX: how to define cubic root?
Is it as an <http://www.mathworks.com/help/releases/R2011a/techdoc/creating_plots/f0-4741.html annotation> on a plot? If so, you...

14 years ago | 1

| accepted

Answered
sum function
As Seth suggested, use the Sum block, or even the <http://www.mathworks.com/help/releases/R2011a/toolbox/simulink/slref/add.html...

14 years ago | 0

Answered
from gui to workspace
Use <http://www.mathworks.co.uk/help/techdoc/ref/assignin.html |assignin|>. HTH, Arnaud

14 years ago | 1

| accepted

Answered
regarding conversion of time domain data to frequency domain having large values like 4096
Also look at this <http://www.mathworks.com/matlabcentral/answers/5823-fft-of-discrete-time-domain-data similar question>. HT...

14 years ago | 0

Answered
How to transfer electric torque to mechanical system via gear reducer
When combining electrical models in SimPowerSystems with mechanical models in SimMechanics, it's generally best to use the speed...

14 years ago | 1

| accepted

Answered
How to solve Differential Equation in Simulink Model
Use the <http://www.mathworks.com/help/releases/R2011a/toolbox/simulink/slref/mathfunction.html Math Function> block, and select...

14 years ago | 0

| accepted

Answered
Plot like a "scope" block
You can also use <http://www.mathworks.com/help/releases/R2011a/toolbox/simulink/slref/simplot.html |simplot|>. HTH Arnaud...

14 years ago | 0

Answered
Setting axes with center in origin (0,0) in plotted variables.
Does the <http://www.mathworks.com/help/releases/R2011a/techdoc/ref/axis.html |axis|> command do the trick? Arnaud

14 years ago | 5

Load more