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

oltre 12 anni fa | 0

| accettato

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

| accettato

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

oltre 12 anni fa | 2

| accettato

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 1

| accettato

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

oltre 12 anni fa | 0

| accettato

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

oltre 12 anni fa | 0

Risposto
publish to html gui results
Please be more specific.

oltre 12 anni fa | 0

Risposto
Plot Matix
Please post your code.

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

| accettato

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 1

| accettato

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

oltre 12 anni fa | 0

Risposto
step response
MATLAB or Simulink?

oltre 12 anni fa | 0

| accettato

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 1

| accettato

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

oltre 12 anni fa | 1

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

oltre 12 anni fa | 1

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 1

Carica altro