Answered
Can I run .m files written using a recent version of MATLAB in an older version of MATLAB?
If the code is .m source code, I would think you should be able to run in earlier version of MATLAB. But of course, if the code ...

15 years ago | 1

| accepted

Answered
Gui pop up menu selection
In your radio button (actually the button group since you must have 4 exclusive radio buttons) SelectionChangeFcn callback funct...

15 years ago | 1

| accepted

Answered
How to descrease the size of a textbox
h=text(.5,.5,'this is my text','BackgroundColor',[.5 .5 .5]); get(h) to see a list of the properties, use set(h) to chan...

15 years ago | 0

Answered
Generation of Linear Time Vector from ODE45
That is not strange. By default, ode45 solver uses variable step size. If you want to fix the step size, you might be able to do...

15 years ago | 0

| accepted

Answered
Saving matlab file with identifier
I don't see a straightforward method, but you can still do it with some manipulation. For example: FileName='MyData#Agents'; ...

15 years ago | 0

| accepted

Answered
The Data Tip Text Update Function
I think it should be: output_txt{end+1} = ['X: ',num2str(x,4)];

15 years ago | 0

| accepted

Answered
segregating a text
strread('JPM/GS/UBS-INV-BANK','%s','delimiter','/')

15 years ago | 0

Answered
How do I automatically run a MatLab Script when I start my simulation in simulink
Use the InitFcn callback. If you want the M-script to run every time you run the simulation, InitFcn is the right one.

15 years ago | 6

| accepted

Answered
Show output variables in a table
Or do you mean saving you data to an Excel spread sheet? Please note that uitable() recommended by Walter is available in later ...

15 years ago | 0

Answered
How to change the size of a matrix by filling with nan's?
Preempt z with NaNs and then fill with data z=nan(10,10) z(2:6,3:7)=magic(5)

15 years ago | 0

| accepted

Answered
Exporting array
save FileName VariableName

15 years ago | 0

Answered
How to run a batch of pairs of files?
So, what is the pairing rule? Why don't you show us the complete file names in one set and the pairing file names in another se...

15 years ago | 0

Answered
Listing the input arguments and values of a function in a Matrix
Yes, you can. Use this example: InputArgument={'this is the string for the pattern','pattern'} strfind(InputArgument{:})...

15 years ago | 1

| accepted

Answered
How to use a lookup table to feed parameters to a dynamic load ? Or some other way to easily adjust load PQ values? (simulink - simpower)
Do this in MATLAB command window: t=1:24; P_Value=10+sin(t/4); Q_Value=10+cos(t/4); Drag one "Lookup Table" block, doubl...

15 years ago | 0

| accepted

Answered
large special matrix
Use this example: reshape(1:10,5,2)

15 years ago | 1

| accepted

Answered
Binning time-dependent data in a histogram
I don't understand. The code below shows a histogram. It shows at time t=2 and t=5, there are 3 data points. At time t=9, there ...

15 years ago | 0

Answered
Dynamic Transfer Function in simulink
Okay, then you need to do the controller realization of the transfer function. <http://en.wikipedia.org/wiki/Realization_(system...

15 years ago | 0

Answered
Dynamic Transfer Function in simulink
No. When you use the transfer function block in Simulink, you can specify the coefficients as b1, b2, a1, a2, etc. Then you'll h...

15 years ago | 0

Answered
Hide Trivial Subsystem Library Blocks from Model Browser
There are two options for the model browser, "Show library links" and "Browse masked subsystems". Use them to see if it can meet...

15 years ago | 0

| accepted

Answered
Getting "Counter" Simulink block to switch direction?
Based on Walter's suggestion, you could use a Switch block (or Manual Switch block) to pass either 1 or -1 and integrate it. It ...

15 years ago | 1

Answered
xlswrite to write in different columns
Yes. See help xlswrite XLSWRITE(FILE,ARRAY,SHEET,RANGE) SUCCESS = XLSWRITE('c:\matlab\work\myworkbook.xls',A,'A2:C4') Or, ...

15 years ago | 0

Answered
Simulink as Block Diagram Editor only
Double click an empty space in your model, type in multiple underscore symbols (_) as an annotation. It looks like a solid line ...

15 years ago | 0

Answered
probability in Markov chain
I can write the code in a couple of minutes. But let's see if you can help me to help you. 1. Generate a vector of 100x1 or 1x...

15 years ago | 0

| accepted

Answered
Simulation of SimuLink Block From Matlab Function (Errors)
The error message says it all. One of your blocks has a 'InitFcn' callback. The error happens when it tries to run that callb...

15 years ago | 1

Answered
To create a loop in SIMULINK
There is a "For Iterator Subsystem" block to do for-loop in Simulink. But your task doesn't sound like it. You might want to co...

15 years ago | 0

| accepted

Answered
How should I scratch this ticket?
Very often, I got scratch pad from banks or local retail stores. Here is my entry. Hope your auto dealer has the same best spiri...

15 years ago | 2

Answered
find indices of elements in terms of another vector
help ismember()

15 years ago | 1

Answered
How to enable a button after x seconds in MATLAB GUI?
You can use the MATLAB timer object. <http://www.mathworks.com/help/techdoc/matlab_prog/f9-38093.html Follow this>

15 years ago | 0

Answered
addpath not work after compile
I wonder if it has anything to do with the fact that input() is a built-in function. Is it possible that you change your functio...

15 years ago | 0

Answered
Why do I get zero?
Maybe you can type in the following command and then do your calculation again to see the difference format long

15 years ago | 1

Load more