Answered
Simulink shows only the last 2 second of simulation time
Please verify the scope setting: Parameters - Data History - Limit Data Point to last. The default is it is checked and limit...

14 years ago | 4

| accepted

Answered
Move Matlab to new Windows 7 computer
As the details are bit depending on you license type and MATLAB release, I recommend calling into installation support. Assum...

14 years ago | 0

Answered
Creating a file containing 2 mat files
LOAD can also be used for loading ASCII formats, but yes the default is MAT. When you have 2 different MAT files, then the wa...

14 years ago | 0

Answered
C compiler for MATLAB in 64-bit windows
The 64 Bit LCC is not supported for MATLAB on Win 64. For your other issue, please provide the MATLAB Release information.

14 years ago | 0

Answered
Sfunction compiler in matlab 64bit version.
That is because the LCC Compiler is not a supported compiler for Win 64. http://www.mathworks.de/support/compilers/R2011b/win...

14 years ago | 0

Answered
reordering the data
What about generating two random numbers as indices and swapping the data of the indices? And then do this in a loop. clc ...

14 years ago | 1

| accepted

Answered
how can we call a scope to workspace witout opening the model file?
In my view, you can run the simulation with the SIM command, but not open the scope. However, you can use the simulation data to...

14 years ago | 0

Answered
Trouble with surf
Your code executes fine on my machine. z is not complex in my case. One idea I have is, that you have multiple ABS functions ...

14 years ago | 0

| accepted

Answered
simulink model
That should be done by modifying the denominator of a "Transfer Fcn" block. In this cases, the denominator is [1 0 0].

14 years ago | 1

Answered
Poisson random number generator
If this is an acadamic exercise - you can look at the literature refererence % References: % [1] Devroye, L. (19...

14 years ago | 3

| accepted

Answered
matlab says undefined variable even for defined variables
My best guesswork with out code is that you use functions and not scripts and that the respective varaibles are just present in ...

14 years ago | 0

Answered
error in port widths and dimensions
Specific help can be given knowing the exact signal specifications. As this might be difficult to describe, providing the model ...

14 years ago | 0

Answered
edited-making value 0
So you want to have random number, but always the same set of random numbers? Check out RandStream.

14 years ago | 0

Answered
Two Figures with multiples in one loop
Just make sure you use the figure handles before plotting into the one or the other figure. Example code h1=figure; h2=f...

14 years ago | 0

Answered
Real-time Windows Target and Windows 7
I'd say this is mainly about 32/64 bit: http://www.mathworks.de/products/rtwt/requirements.html Typically new machines are...

14 years ago | 0

Answered
getting this error
This may be a confusion with rows and columns. E.g. this code here fails: a=[1 2 3 ] a(1:2, :) Beacuse a is an 1x3 ma...

14 years ago | 0

| accepted

Answered
Out of memory ?
You may want to decrease the consumed memory... But for increasing the memory see <http://www.mathworks.de/support/tech-notes...

14 years ago | 0

| accepted

Answered
integrator block
Based on your question, I'd say Simulink is not the best tool for this. But you could. You can e.g. uses a sine wave source b...

14 years ago | 0

Answered
Sum every nth row or array
If this is your matrix A=rand(150,8192); Then this is "every 4th row" A(1:4:end,:); I am not 100% sure what you ...

14 years ago | 1

Answered
disable close button of Simulink model window
I believe this is not possible, but lets see what others think. I am however curious, what you like to achieve or avoid? Maybe t...

14 years ago | 0

| accepted

Answered
Data fitting
As the name basic fitting suggests, it is basic. Please consider using the Curve Fitting Toolbox of your university license or m...

14 years ago | 0

Answered
Why is the function not outputting all the variable?
You need to call your function in a way that it stores the to be returned values in variables like [notnecessarilyC, xyzout1...

14 years ago | 2

Answered
Obtaining variables from a list of values depending on user input
This looks like a good use for Interpolation with the INTERP1 command. There are however multiple way to interpolate, fit, etc. ...

14 years ago | 1

| accepted

Answered
linking simulink from m-file
This is a matter of the return variables of the SIM command. This examples code is from the documentation: Specify parameter ...

14 years ago | 1

| accepted

Answered
importdata - HELP MEMORY
Like mentioned in an other answer. A 64 Bit MATLAB on a 64 Bit machine should be tested. There are however many smart methods...

14 years ago | 1

| accepted

Answered
Can anyone help me with the water level tank (sltank) example available on Matlab?
There is user data "hidden" in the figure 'tankdemo'. The user data gets extracted into the variable 'yData' by the line yD...

14 years ago | 1

| accepted

Answered
Difference between .m and .mat files
* MATLAB *code* is in files with extension |.M|. * MATLAB *data* is in files with extension |.MAT|. Thus, you can't always "...

14 years ago | 4

| accepted

Answered
System time Matlab
now

14 years ago | 1

Answered
ask for matlab script to give only the entries not in other file
x=[1222 1232 3310 2223]; y=[5555 1222 3310 1212]; setdiff(x,y)

14 years ago | 0

Answered
To save whole workspace in a file(possibly excel)
I have nothing elaborated yet, but I am thinking of using whos and then looping through all variables and use XLSWRITE. You cert...

14 years ago | 0

| accepted

Load more