Answered
how to extract count from blob analysis block in Simulink ?
To view the data of an outport of a Simulink block, you have to log the signal coming out of that outport. Using "To Workspace" ...

14 years ago | 0

| accepted

Answered
Confirm a in signal for a specific time i.e. 5 seconds
You can use an "Integrator" block for it. If the signal is false (low), re-set the integrator. If the signal is true (high), int...

14 years ago | 1

| accepted

Answered
How to add an index to graph title, legend, and output image without having to write everywhere the same number
what you need is num2str(INDEX) or sprintf() f=figure(INDEX); legend(h,sprintf('sin(x-%d)',INDEX),1); title(['TEST ',num2...

14 years ago | 0

| accepted

Answered
Function call takes a long time
Pay attention to the warning message in M-editor. It gives you many hints on improvement. Some of them are minor. Others may hav...

14 years ago | 0

Answered
Running Matlab code on an industrial PC
The <http://www.mathworks.com/products/xpctarget/ xPC Target> seems to be a good fit for this application. It boots up your PC w...

14 years ago | 1

Answered
Recording Virtual movement with only use .mat data
TMW has <http://www.mathworks.com/products/3d-animation/?s_cid=global_nav Simulink 3D Animation>. Even without, you probably ca...

14 years ago | 1

| accepted

Answered
Simulink Testing
What is TPT tool? For Simulink model testing, see <http://www.mathworks.com/verification-validation/?s_cid=global_nav Simulate, ...

14 years ago | 0

Answered
Automating Simulink Code Generation from DOS Command Window
There are many things involved. But at the high level, you just need to set up two things. Of course, all the related files, con...

14 years ago | 0

Answered
Error while extracting data..... trying to parse data in order to make a big data set..
Check for a problematic .csv file. If using the .csv file you shown, it works fine.

14 years ago | 0

| accepted

Answered
Num2Str and concatenating help
%% a={'abc','ef',34;'AB','CDEFG',45}; b=a.'; c=sprintf('%s%s%d\n',b{:})

14 years ago | 0

Answered
How can I change the variable name of "to workspace" dynamically ?
I would recommend you go back to your previous question and follow the advice regarding data logging. My comment regarding "mask...

14 years ago | 0

| accepted

Answered
I can't get the product help to work!
In MATLAB version as later as R2007b+, if the MATLAB software is installed in a path that contains special character, such as wh...

14 years ago | 0

Answered
plotting a polynomial function
Of course ezplot(), but you need to fix your formula. ezplot('89.9659+0.1110371*T-0.001472155*T^2+ 1.1E-5*T^3-4.381E-8*T^4+...

14 years ago | 1

Question


Font size in doc window
Is there a way to change the font size we see in the doc window when typing in "doc" or "doc abs" for example? What I really lik...

14 years ago | 1 answer | 0

1

answer

Answered
Deleted questions
Quite often for a frequent contributor. MATLAB Central team has had a plan to deal with this. Basically, it will no longer be po...

14 years ago | 1

Answered
Reducing the error tolerance
If it happens at time 0, you definitely have an algebraic loop. See <http://www.mathworks.com/help/toolbox/simulink/ug/f7-8243.h...

14 years ago | 0

| accepted

Answered
Simulink: Obtaining propagated signal names programmatically
get(porthandles.Outport(1),'PropagatedSignals')

14 years ago | 2

| accepted

Answered
Callback function
I believe you should use either of this: htimes1 = uicontrol( ..., 'Callback', @bpmaall_Callback) htimes1 = uicontrol( .....

14 years ago | 0

Answered
how to load file have header
use a=importdata('Data.txt') or b=uiimport('Data.csv') and then generate code. You need to fix the head and tail of your ques...

14 years ago | 0

Answered
Subtract each column of matrix until -3 is finished
I am curious too. Let me guess. %% a=0:4; b=-3; % b is an integer, positive or negative c=zeros(size(a)); ind=fi...

14 years ago | 0

| accepted

Answered
Intersection of several sets of results corresponding to different events in matlab
It's hard to understand what you want. I'll take a shot. %% A=[20 4 4 74 20 20 3 1 1 4 3 3 3 7 4 1 20 3 3 74...

14 years ago | 0

Answered
Analysing mutiple structures of data
A for-loop sounds good for your use case. If you provide a small example data, some might be able to help you figure out a way w...

14 years ago | 0

| accepted

Answered
Switch block driven by time in Simulink
The switching time seems periodic and regular. You can use a Pulse Generator block to generate a square wave (period is 0.1, 50%...

14 years ago | 1

| accepted

Answered
Switching systems simulations
Good question! My advice is to try increasing the maximum time step limit and enable zero crossing detection at all applied bloc...

14 years ago | 0

| accepted

Answered
Simulink - Scatter graph
I would save the data using "To Workspace" block or other data logging method and then plot() in MATLAB. Or if you have MATLAB ...

14 years ago | 0

Answered
Finding closest points to a given range in matrix
The closet point to 0 in x might have one point. The closet point to 0.29 might also have one point. What if they are not in the...

14 years ago | 0

Answered
File manipulation
Yes. Use try-catch and keyboard() to control the program flow. try ProcessFileForTheFirstTime(); catch keyboard; ...

14 years ago | 0

| accepted

Answered
Datatip
I assume you have your data tip function, you can set it when you enable the data cursor mode. %% Original data f=figure...

14 years ago | 0

| accepted

Answered
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 ...

14 years ago | 0

Answered
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...

14 years ago | 0

| accepted

Load more