Beantwortet
How to collect a specified sample size of data from the input signal in the 'triggered and enabled subsystem'?
The subsystem is executed only when it's enabled and it's triggered. Assume your 'enable' signal is all true, if your subsystem ...

fast 15 Jahre vor | 0

Beantwortet
Override Unit Delay block outptut
No, you can't. set_param() is used to change the "Parameters" of the model or block. It can not be used to change the dynamic ou...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
calculate checksum for the input vector
In R2007b, when used in Embedded MATLAB Function, bitand() doesn't support floating-point input. The arguments must belong to an...

fast 15 Jahre vor | 0

Beantwortet
ind2sub output dimension
Follow the same clue in the answer to your other question, you can do the following: %% B=rand(4,5,6); Ind=(20:25).';...

fast 15 Jahre vor | 2

| akzeptiert

Beantwortet
Matrix position stored in a variable!
%% A=magic(10); d=[2 3; 4 5; 6 7]; B=A(sub2ind(size(A),d(:,1),d(:,2))) *Update for any size of d* %% A=rand(2,3,4)...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
A little help?
Matrix=[-0.1,0.2;-0.5,0.9] <http://www.mathworks.com/help/techdoc/learn_matlab/f2-12841.html> *Based on your latest update in ...

fast 15 Jahre vor | 1

Beantwortet
xlsread to retrieve information based on input
If the data sheet is not extremely large, you can use xlsread() to read in all the data and then process it. [Num,Txt,Raw]=...

fast 15 Jahre vor | 0

Beantwortet
Waitbar does not increment
Inside the for-loop, can you try adding either "drawnow" or "pause(0.2)" after the waitbar() statement? I never had problem reg...

fast 15 Jahre vor | 0

Beantwortet
Cell and double data
%% Type={'Type A','Type A','Type B','Type C','Type C'}.'; Value=[100,500,1000,100,200].'; [UniType,Ind_i,Ind_j]=uniqu...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
mex -setup doesn't seem to find my compilers?
What is the version of your MATLAB and what is your operating system. If you search your document (doc mex), you'll be able to f...

fast 15 Jahre vor | 1

Beantwortet
Weekday determination
datestr(datenum(2011,12,8),'ddd')

fast 15 Jahre vor | 0

Beantwortet
Generate PWM signal through Parallel port
I have doubt about the feasibility that you can use Simulink and parallel port to generate a 20kHz PWM signal in real time. But ...

fast 15 Jahre vor | 0

Beantwortet
Defining column vectors for plotting from a single data source
I don't know how to choose the column using workspace GUI for plotting, but it should be easy using MATLAB command. A=magic(1...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
charge simulation method
f=[1 2 3]; g=bsxfun(@minus,f,f.') The other question depends on how you plot it and how do you want to choose the point.

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
How to understand sample time in Simulink
It's a good question. Sample time is not particularly just for Simulink models. It's used everywhere. It's how often do you obse...

fast 15 Jahre vor | 1

Beantwortet
Transforming Result to Meaningful Information
You probably mean indexing. For example Names={'John', 'Peter','Terry','Alice','Mary'}; ind=[3 1 4 2]; SelectedNames=Name...

fast 15 Jahre vor | 0

Beantwortet
function to pick out number
Use this example, your second column data will be the variable "A" below. %% A=[0 0 1 2 3 4 5 0 0 0 4 5 6 7 8 0 0]; T...

fast 15 Jahre vor | 1

Beantwortet
How to close all windows except top level window of a model?
You can do this: b=find_system(ModelName,'blocktype','SubSystem'); close_system(b); This will only close those opened...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
Question about getting text from a file
I copied your text file data and removed all the "**" and "<br>" and then run the following command. It got all the data in plac...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
concatenate matrixs
Because you have mixed numerical and string data, you have to make your variable w a cell array if you just want to run xlswrite...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
How to change the timescale of a signal?
resample() can be used sometimes. But since your signal value is either +1 or -1, I guess you might want to resample it using th...

fast 15 Jahre vor | 0

Beantwortet
How to resolve the error "cell contents reference from a non-cell array object"? Thank you!!
You have 18 lines in the text file. The variable "paramlist" got the correct value after reading the file. The variable "chanlis...

fast 15 Jahre vor | 0

Beantwortet
replace elements of a vector
What's wrong with using a simple, old, straightforward for-loop? Jan will help me prove that it's faster than other approaches. ...

fast 15 Jahre vor | 3

Beantwortet
actxserver cannot read all of the data
I think the problem might be that you don't have proper pre-allocation. I can understand your code. You need to plan ahead your ...

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
Matlab plot: create a line b/w the points except the last one?
x=1:10; y=1:10; plot(x(1:end-1),y(1:end-1)); hold on; plot(x(end),y(end),'+');

fast 15 Jahre vor | 1

Beantwortet
Add Item to my listbox in GUI ?!
When filename is a cell array inputFileNames = [inputFileNames; filename];

fast 15 Jahre vor | 0

Beantwortet
String help!?
use letter=input('Enter One letter: \n','s') to get the letter directly.

fast 15 Jahre vor | 0

Beantwortet
How to overlap the polar plot in the same figure
hold on? %% t = 0:.01:2*pi; polar(t,sin(2*t).*cos(2*t),'--r') hold on; polar(t,sin(t).*cos(t),'.b')

fast 15 Jahre vor | 0

Beantwortet
How can I get all simulink model block's data type without compile the modle?
In your model, click menu Format->Port/Signal Displays->Port Data Types %% f14; Blocks=find_system('f14'); f14([],[],[]...

fast 15 Jahre vor | 2

| akzeptiert

Beantwortet
GUI for a Simulink realtime workshop model setting values for gain constans etc
Go to your document, Real-Time Workshop->External Mode->Using the External Mode User Interface->Parameter Downloading, There ...

fast 15 Jahre vor | 0

| akzeptiert

Mehr laden