Answered
Can you please help em with this error
You need to save your function definition in a separate file called transp.m and then call it in a script. You can not put the s...

15 years ago | 0

Answered
avoiding use of cd to resolve filenames
I would think that will be faster too. For checking the existence of the file, use exist(...,'file') must be faster than using f...

15 years ago | 1

| accepted

Answered
How to pin an object from command
use annotation() and specify the position. Follow this link. You need to create a function which is provided. <http://www.mathw...

15 years ago | 0

Answered
Multiple Figures to PDF's
You could use print() to print each figure into a .pdf file and then use a third party tool <http://www.pdf995.com/> to combine ...

15 years ago | 0

Answered
how to rotate?
Use view() to rotate.

15 years ago | 0

| accepted

Answered
fow to generate FCI combination
Not sure what exactly combination you want, but in general, you can use for-loops: N=100; C=cell(N,N); for k=1:N ...

15 years ago | 0

Answered
StepInfo Outputting NaN for my Transfer Function
a=step(sys); b=stepinfo(a)

15 years ago | 2

Answered
Stateflow chart without states
You need to have a destination for the transition. Use the Junction if you don't have any State.

15 years ago | 0

Answered
Locating matrix position of maximum value
Use the full return argument of min and max [Y,I] = MAX(X) %% a=magic(10); [Value,Ind]=max(a(:)) [M,N]=ind2sub(size(a)...

15 years ago | 0

| accepted

Answered
How to store output data from a simulink model to a text file
There is no way available to write to a text file directly in Simulink. You can use the "To Workspace" block or "To File" (a .ma...

15 years ago | 1

Answered
Command to 'Goto' a position in simulink window.
I am not aware any method for that. Maybe you can try something else. Instead of getting and remembering all the positions, ...

15 years ago | 0

| accepted

Answered
Conversion of MATLAB (.m) coding into Verilog HDL
What you heard is probably right. If you are looking for a Yes answer, you are probably going to be disappointed. Look at all th...

15 years ago | 0

Answered
How can I have all the menus and options of a figure window when I plot a function since a GUI?
Use plottools(),figurepalette(), plotbrowser(), and propertyeditor()

15 years ago | 0

| accepted

Answered
Funny situations while helping others on MATLAB Answers
I had a chuckle when Jan Simon nitpicked me for my improper use of singular and plural. The OP has deleted the question but I fo...

15 years ago | 0

Answered
Extract variables from multiple .mat files
My code in this answer could be used for your task too. Take a look to see if you have further questions. Basically, you need to...

15 years ago | 0

Answered
confusion about many, many workspace variables
If you were given this data, you could do the following to improve the data structure so they are easy to handle. %% save; ...

15 years ago | 0

Answered
can't save figures -- Reference to non-existent field 'UseOriginalHGPrinting'
What version of MATLAB are you using? When I edit print.m in 2007b, I don't see that 'UseOriginalHGPrinting' field.

15 years ago | 0

Answered
ambiguity in location of path
Double-check. I got it right, assume f1=''; >> fg_centroid fg_centroid = COScell1\Output-32\Segmentation_Check\Green\G...

15 years ago | 0

Answered
Licensing Question
No! That C++ code is the product you developed. This is the exact purpose of having the MATLAB Coder toolbox.

15 years ago | 1

| accepted

Answered
reading a special sheet of an EXCEL file with knowing the row numbers of that
use [Num,Txt,Raw]=xlsread(ExcelFile,SheetName) then size(Raw) will tell you how many rows and columns of data are in that she...

15 years ago | 1

| accepted

Answered
GUI Password
A similar question here. <http://www.mathworks.com/matlabcentral/answers/15789-asking-for-a-password-or-code>

15 years ago | 2

| accepted

Answered
Plot a vector that contain dates in concatenated number format and plot it using dates
%% a=[20000101.1 20000101.2 20000101.3 20000912.15]; b=num2str(a'); c=datenum(b,'yyyymmdd.HH'); h=axes; plot(c,...

15 years ago | 1

Answered
Delimiting a text file like "Text to columns" and viewing the output
The data is a cell array. You can: 1. type indata{1,1} to see the first element 2. use celldisp(indata) to see all 3....

15 years ago | 0

| accepted

Answered
How to synchronize matrices (timeseries)?
Did you try intersect()? A=[(1:10)', rand(10,1)]; B=[(5:15)', rand(11,1)]; [C,IndA,IndB]=intersect(A(:,1),B(:,1))...

15 years ago | 1

Answered
take the real data type of parameters from the Simulink model
When you create your .mat file, use the following to set up the value and then save to the .mat file. para1=uint16(25); ...

15 years ago | 1

Answered
Supressing code generation of a Simulink model
So the Model Referencing works out pretty well. There is a way to avoid re-compiling if that is the only thing you care about an...

15 years ago | 0

Answered
Plot Multiple Time Series Based on Individual Condition
Yes, all is pretty straightforward in MATLAB. You can type help plot or doc plot in MATLAB for more information. Try this exampl...

15 years ago | 2

Answered
addpath question
Maybe it's because there is a white space in the folder name, such as 'My Documents'? By the way, why do you use eval()? You ca...

15 years ago | 1

Answered
Hi all, I am having a difficulty in switching a signal, I need a switch in simulink that must be ON for 0 to 0.00001s and from 0.00001s to 0.1s it must be given a PWM signal. This cycle must run for a simulation time of 1s.
If your PWM signal is fixed, I mean, if they are exactly the same from 0.0001 to 0.1, from 0.1001 to 0.2, from 0.2001 to 0.3,......

15 years ago | 0

| accepted

Answered
Select/ Short rows from ASCII files
Import your ASCII file first. If you could make the data like the format below, it's straightforward to use ismember() and sort(...

15 years ago | 0

| accepted

Load more