Réponse apportée
I don't understand the concept of sample time in simulink
In this case, since you are looking at the logged data yout, the sample time is determined by the sample time specification of t...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
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" ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 1

Réponse apportée
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...

plus de 14 ans il y a | 1

| A accepté

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

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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.

plus de 14 ans il y a | 0

| A accepté

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

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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+...

plus de 14 ans il y a | 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...

plus de 14 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

plus de 14 ans il y a | 1

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Simulink: Obtaining propagated signal names programmatically
get(porthandles.Outport(1),'PropagatedSignals')

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
Callback function
I believe you should use either of this: htimes1 = uicontrol( ..., 'Callback', @bpmaall_Callback) htimes1 = uicontrol( .....

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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%...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
File manipulation
Yes. Use try-catch and keyboard() to control the program flow. try ProcessFileForTheFirstTime(); catch keyboard; ...

plus de 14 ans il y a | 0

| A accepté

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

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 14 ans il y a | 0

Charger plus