Answered
Write a function file with these parameters
I think may be this: h=[2 4 6 1 7 5 9 8 9 2 5 7 2 4 6 7]; for p=1:16 index=input('please enter a number between 1 to ...

15 years ago | 0

Answered
Binary format reading into matlab
Use one input() to get a string of '01010100100', then do the following: A='0101010101010110'; B=str2num(A(:))

15 years ago | 0

Answered
Printing function results to the Workspace
change your function definition function out=range(x,y) out=y-x;

15 years ago | 0

Answered
Mask parameter does not evaluate
I don't have R2009a, but I tried in both R2007b and R2010b. As long as you check the box for "Evaluate", the index value is retu...

15 years ago | 0

Answered
Adding a newline character
How about the carriage return, char(13)?

15 years ago | 0

| accepted

Answered
Find the indices between two vectors of dates
The following code works. A(1,1) = datenum('03-Jan-1983 0:00:00'); A(2,1) = datenum('03-Jan-1983 1:00:00'); A(3,1) =...

15 years ago | 0

| accepted

Answered
Responding to DOS prompt from MATLAB command line
Another approach with my example using File=input() works. Assume the file name you entered through prompt is called MyText.txt...

15 years ago | 1

| accepted

Answered
Responding to DOS prompt from MATLAB command line
Do you know how the prompt (for user to enter a file name) is done? I tried an example using uigetfile. It seems to work both in...

15 years ago | 0

Answered
How to call an exe with command line arguments
You can do just like that, right? system('dir') system('dir *.m') If your argument is a variable, for example, arg2='*.txt'...

15 years ago | 0

Answered
Simulink and COM (Component Object Model)
Simulink has to be run in Matlab. Everything you do in Simulink can be done with a command in Matlab. So, I think there is no di...

15 years ago | 1

| accepted

Answered
How can I get the Simulink model's path by dragging the mouse?
I saw a similar question being asked, maybe also by you. You probably know that if you select a Simulink block, you can get t...

15 years ago | 0

| accepted

Answered
floating point quantization
a=[1 0 0 0 0 0 1 1 0 1 1 0 0 1 0 1 0 0 0 ...

15 years ago | 0

| accepted

Answered
date format
help datenum, datestr, for example datenum('2000.05.19','yyyy.mm.dd')

15 years ago | 0

Answered
hilite_system inside a library block
So you have a model with nested library links. I have a model with three layers of nested library links. The find_system() seems...

15 years ago | 0

Answered
hilite_system inside a library block
It is true. When you open the model, Simulink doesn't automatically load all the customized library blocks. To make your scr...

15 years ago | 2

| accepted

Answered
Figure title/labels in LaTex cutoff
what if you adjust the font size? title('$$\frac{1}{2}$$','interpreter','latex','fontsize',10) looks acceptable to me when the...

15 years ago | 0

Answered
class of returns from get() with 1 vs. mutliple handles
I don't have an answer but I want to second your opinion. I found this inconvenient many times. What I usually do is to add a li...

15 years ago | 1

Answered
Can't load .mat file: [Matlab ver: 7.0.0.19920 (R14)], [.mat hdr: MATLAB 7.0 MAT-file, Platform: MACI ]
I have multiple versions of Matlab so I tried your file. In Matlab R14SP3, I can't load the humbles.mat. The error messages s...

15 years ago | 0

| accepted

Answered
What's the name of save as from workspace function?
uigetfile uiputfile

15 years ago | 1

| accepted

Answered
Adding matrices
a=rand(2,3,4); b=sum(a,3) b = 2.8451 2.1572 1.6369 1.9019 0.9626 2.0225 Is this what you want? ...

15 years ago | 2

Answered
How do I open the Header/Footer in a Word programatically from MATLAB?
I assume you want to access the header/footer in a Word document through Matlab m-script. You can find these info in the Word...

15 years ago | 1

| accepted

Answered
How to find number of arrays in a structure filed ?
>> sum(~cellfun(@isempty,{Av.f1})) ans = 4 >> sum(~cellfun(@isempty,{Av.f2})) ans = 2

15 years ago | 3

Answered
Removing white space in .emf plots
You could adjust the position of the axes in the figure to make it looks better for you. figure100 = figure('Position',[1 1 1...

15 years ago | 1