Respondida
how to retrieve the Simulink execution order from the workspace
As far as I know there isn't really an easy way to do this (i.e. using get_param or similar). Instead you have to debug your mod...

casi 9 años hace | 0

| aceptada

Respondida
HELP PLEASE!! How do I print matlab "1:5 multiply increases each line"
Do you mean like this? clc fprintf(' SGD USD GBP EURO \n') for x= 1 : 5 USD = 0.69 * 2 * x; GBP = 0...

casi 9 años hace | 1

Respondida
In Matlab r2010b, how to find that string contains japanese character?
Depends on what you define as Japanese. The Hiragana characters have an Unicode range from 12352-12447, while the Katagana chara...

casi 9 años hace | 3

Respondida
Letter refer to number
Nr2 = double(Letter)-'A'+1

casi 9 años hace | 0

| aceptada

Respondida
how to create a data buffer in simulink
I believe the _Tapped Delay_ block should do what you are requesting. You can find this block in the Simulink Library Browser un...

casi 9 años hace | 1

| aceptada

Respondida
Summing different set of arrays.
nYear = 2002; nValue = 14; x = [7 10 2001 24 10 5 1 7 10 2001 14 15 2 1 7 10 2001 14 13 2 9 ...

alrededor de 9 años hace | 0

| aceptada

Respondida
how to convert model from continuous state space with disturbance to discrete
% Create state space model sys = ss(A,B,C,D); % Convert to discrete, where dt is your discrete time-step (in seconds...

alrededor de 9 años hace | 2

Respondida
Cutting a certain pattern from an array
A = [1 2 3 4 5 6 0 0 0 0 1 2 3 4 5 6 7 8 9 10 0 0 0 0]; B = [0 0 0 0]; C = A(setxor(cell2mat(arrayfun(@(x)(x:x+lengt...

alrededor de 9 años hace | 1

| aceptada

Respondida
How to implement the counter (really simple)?
Infeasibles = any((A<=0) | (B>100),2);

alrededor de 9 años hace | 0

Respondida
Why does char give me an empty output?
This is because ASCII characters 1 to 7 are not visible characters. See the 'Dec' column: <http://www.asciitable.com/>

alrededor de 9 años hace | 1

Respondida
How to select a value in filter dropdown in excel
You might find it a lot easier to just write this specific functionality as an Excel macro, and then invoking the macro from MA...

casi 10 años hace | 1

Respondida
i want to change the value in some specific rows how can i do it
A = [1 2 3; 1 2 3; 1 2 3; 1 2 3; 1 2 3; 1 2 3] % Change Row 2 A(2,:) = [9 8 7]; % Change Row 5 A(5,:) = [5 5 ...

casi 10 años hace | 0

Respondida
Why can I not get the modaldlg function to work? eg. user_response = modaldlg('Title','Confirm Close');
Try one of the following, depending on the type of dialog you want: user_response = errordlg('Error','Confirm Close', 'moda...

casi 10 años hace | 0

| aceptada

Respondida
remove first s and last t rows of a matrix containing NaN, leave lows in the middle containing NaN.
Nobody should ever need more than one line: A = [[NaN;NaN;NaN;4;1;NaN;5;6;8;NaN;NaN],[NaN;NaN;2;7;6;5;NaN;6;18;2;NaN]]; ...

casi 10 años hace | 0

Respondida
using add_block in a for loop
I see you have defined a source block ('NPC_MMC_Library/Submodule'), however your destination doesn't appear to include the mode...

casi 10 años hace | 0

| aceptada

Respondida
Vehicle dynamics model simulink
1. Make sure all your inport are connected to a source (signal generator, constant, etc). 2. Make sure all your outports are ...

casi 10 años hace | 0

| aceptada

Respondida
Select elements of Matrix?
Like so: P = magic(20); Q = P(end-17:end,end-17:end); Or this, as I assume you mean rows/columns 3 to 20 - otherwise...

casi 10 años hace | 0

Respondida
How can I find the max of two vectors?
Do you actually want to sort by sum of columns? For example: a = [4.84 3.55 2.09 4.20 1.14 5.15 2.45 3.41 1.66 2.75 3.8...

casi 10 años hace | 1

| aceptada

Respondida
Delete rows that have the first same value and keep one row in matrix with 2 colums?
Do you mean something like this? x = [0,0 ; 250,1050 ; 250,1051 ; 1173,3050 ; 1173 3150]; [~,idx] = unique(x(:,1)); ...

alrededor de 10 años hace | 2

Respondida
how do i fix "inner matrix dimensions must agree" in this formula?
Some of your defined vectors are of a fixes size, for example: rad=(0:0.01:0.15); theta=(0:24:360); Therefore your ...

alrededor de 10 años hace | 0

| aceptada

Respondida
Recreating the debouncer example in Simulink
You can use integrators as counters. Check for your desired state (TRUE or FALSE), then convert this TRUE signal into a double/s...

alrededor de 10 años hace | 4

| aceptada

Resuelto


All capital?
Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0

alrededor de 10 años hace

Resuelto


Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

alrededor de 10 años hace

Respondida
Error with mvnrnd function?
The function *mvnrnd* is part of the statistics toolbox. Firstly, in order to use this function you have to have the Statistics ...

alrededor de 10 años hace | 0

| aceptada

Respondida
Timer to send a new message?
I would probably use a resettable integrator for this task. Feed the integrator a constant value of '1', that way it will act as...

alrededor de 10 años hace | 1

| aceptada

Respondida
Insert Values of a Matrix from row 2 using XLSWRITE
A = ones(5,20); xlswrite('Workbook.xls',A,'Sheet1','A2')

más de 10 años hace | 0

| aceptada

Respondida
How can I avoid infinite while loop?
You have an infinity loop because your seed (N) is starting at one. Note that your equation ((N*2)+(N+1))/N is in fact equal to ...

más de 10 años hace | 0

Respondida
Simulink const block referencing changing variable doesn't update during simulation
Unfortunately unless you call 'set_param' the value of the variable will not be re-evaluated. Therefore calling 'set_param' is t...

más de 10 años hace | 1

| aceptada

Respondida
How can i run two different clock at different (desired) times in simulink?
You can create a 'clock' using a discrete integrator. For example if you can set the time-step of the integrator equal to model ...

más de 10 años hace | 1

| aceptada

Cargar más