Answered
Remove parameter from workspace
Use functional syntax clearvars(param_name); instead of command syntax.

14 years ago | 0

| accepted

Answered
switch case
if T(1) == B(1) if T(2) == B(2) ... end else ... end if T(2) ~= B(2) .....

14 years ago | 0

Answered
How change x axis scale from array values into time?
Please format your code.

14 years ago | 0

Answered
generate square wave with random amplitude
Several questions: # What sampling rate do you want the signal to have? # What is the frequency of amplitude transitions? #...

14 years ago | 0

Answered
message box
Please try: fig = figure; tx = uicontrol('style','text','position',[ 40 40 540 320 ]); set(tx,'string',myTextMessa...

14 years ago | 0

| accepted

Answered
Simulation time
Please take a look at this page in the Simulink documentation: * <http://www.mathworks.com/help/toolbox/simulink/ug/bry62t3.h...

14 years ago | 2

| accepted

Answered
converting 3D matrix to 2D
>> doc reshape

14 years ago | 0

Answered
Writing a function that can take a financial time series or a vector
if isa(x,'timeseries') ... else ... end

14 years ago | 1

| accepted

Answered
Solve cubic equation in MATLAB
>> doc roots >> doc isreal

14 years ago | 0

| accepted

Answered
How to switch between two different functions
switch whichFunction case isLinear y = linear(x); case isJoint y = joint(x); ...

14 years ago | 0

Answered
publish to html gui results
Please be more specific.

14 years ago | 0

Answered
Plot Matix
Please post your code.

14 years ago | 0

Answered
FFT produces flat Transfer Function
Why are you setting the variable |nyquist| to a value of 200? The Nyquist frequency should be half of the sampling rate: ...

14 years ago | 0

| accepted

Answered
FFT produces flat Transfer Function
What is the value of |n=length(Y)|?

14 years ago | 0

Answered
State Matrix and Output of LTI System
Close, but not quite correct. In the main loop, you need to use the state space model to compute the updated state variables |x...

14 years ago | 0

Answered
labelling figures
You can easily automate the location of the text by using the |get| function to find out the x- and y- limits of the axes, and t...

14 years ago | 0

Answered
State Matrix and Output of LTI System
Please try: %% Time specifications stopTime = 10; Fs = 1; dt = 1/Fs; t = (0:dt:stopTime)'; N = siz...

14 years ago | 0

Answered
State Matrix and Output of LTI System
Do you have access to the *Control System Toolbox*, or just core MATLAB itself?

14 years ago | 0

Answered
State Matrix and Output of LTI System
Please format your code.

14 years ago | 0

Answered
Reproduce a legend in multiple figures
You can create a function that takes an axes handle as an input argument, creates the legend as desired, and then returns the ha...

14 years ago | 0

Answered
Error while reading/writing variables from embedded matlab function..
The |initfcn| callback in Block Properties is loading the coefficients into the variable |h| in the global MATLAB Workspace. Un...

14 years ago | 1

| accepted

Answered
how to get a difference equation from transfer function ?
Inverse Z-Transform

14 years ago | 0

Answered
step response
MATLAB or Simulink?

14 years ago | 0

| accepted

Answered
simulik
Please proofread your question for spelling, grammar, and clarity. I don't have a clue what it is you are asking...

14 years ago | 0

Answered
Plotting Fourier Transform - HELP PLEASE
You're welcome.

14 years ago | 0

Answered
array manipulation - a few basic questions
Please try: x = rand(1023,1); y = repmat(x,2,1); z = y(1024:2046); HTH. Rick

14 years ago | 1

| accepted

Answered
opening many files and changing code to match file name
It may be easier to delete all of the files except for the original source file, and then use MATLAB to create all of the copies...

14 years ago | 1

Answered
Discrepancies between Power Spectra and Data
With a sampling rate of 100 samples per second, the Nyquist frequency is 50 hertz. That means the maximum frequency that you ca...

14 years ago | 1

Answered
How would I go about plotting an equation?
Please post your code.

14 years ago | 0

Answered
Best way(s) to master MATLAB?
* <http://www.mathworks.com/academia/student_center/tutorials/register.html MATLAB Interactive Tutorial>

14 years ago | 1

Load more