Beantwortet
Assigning values from an earlier function
Not sure if it is this: N=4; Q=5; function1(N,Q)

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 2

| akzeptiert

Beantwortet
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" ...

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

Beantwortet
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+...

fast 15 Jahre vor | 1

Frage


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

fast 15 Jahre vor | 1 Antwort | 0

1

Antwort

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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 2

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

Beantwortet
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%...

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

Mehr laden