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

presque 10 ans il y a | 1

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

presque 10 ans il y a | 0

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

presque 10 ans il y a | 0

| A accepté

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

presque 10 ans il y a | 0

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

presque 10 ans il y a | 0

| A accepté

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

presque 10 ans il y a | 0

| A accepté

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

presque 10 ans il y a | 0

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

environ 10 ans il y a | 1

| A accepté

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

environ 10 ans il y a | 2

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

environ 10 ans il y a | 0

| A accepté

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

environ 10 ans il y a | 4

| A accepté

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

environ 10 ans il y a | 0

| A accepté

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

environ 10 ans il y a | 1

| A accepté

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

plus de 10 ans il y a | 0

| A accepté

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

plus de 10 ans il y a | 0

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

plus de 10 ans il y a | 1

| A accepté

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

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
Undefined function 'tr' for input arguments of type 'double
The error is pretty self-explanatory, you are missing the function 'tr'. The function needs to be on your path (if it exists), o...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Convert variable-width text file numbers to UINT8 table?
It's not very elegant, and it's not very efficient - so enjoy: nRaw = {'130 216 165 154 233 210 209 129' ' 63 ...

plus de 10 ans il y a | 0

Réponse apportée
The data is not correctly written with CSVWRITE, after 100000 rows
You could use fprintf instead. fid = fopen('test.csv','w'); fprintf(fid,'%0.2f\n', [0:0.01:1100]);

plus de 10 ans il y a | 0

Réponse apportée
Out of memory issue
For large CSV files you are less likely to run into memory issues if you read it line by line, for example: nFile = 'file.c...

plus de 10 ans il y a | 0

Réponse apportée
S-function dimension matching problem with lots of "Terminator" blocks
_"we all know that in S-function block, the input dimension must be SAME as output dimension"_ I'm really not sure where you ...

plus de 11 ans il y a | 0

Réponse apportée
when i run the below code i get an error picture1 does not exist..where should i save the image to get the results
From the MATLAB help relating to imread: _If the file is not in the current directory or in a directory in the MATLAB path, s...

plus de 11 ans il y a | 0

Réponse apportée
Function 'ss' implicitly resolved in the MATLAB workspace. Implicit evaluation in MATLAB is not supported. Please declare this function extrinsic using eml.extrinsic('ss'), or call it using feval.
What this error message is saying is that in order to use the state space function (ss) Simulink has to call the MATLAB workspac...

plus de 11 ans il y a | 1

Réponse apportée
Axis dimensions in points
Here is an example of what I think you want to do: plot(1:10,1:10); h = gca; set(h, 'Units', 'Points'); nPos = get...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Error when using the same program on an other computer
The 'parfor' functionality is part of the Parallel Processing Toolbox. I would assume that second computer doesn't have this too...

plus de 11 ans il y a | 0

Réponse apportée
"plus/minus" sign operator
Not exactly elegant, but it works: A = [1 2 3]; B = (dec2bin(0:2^length(A)-1) - '0'); C = sum(B .* repmat(A, 2^length...

plus de 11 ans il y a | 0

Réponse apportée
Dos command gives error
If you want to send commands to an executable you need to modify the call slightly. Try this: dos('"C:\Program Files\Or...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
what does this instruction means?
It means sfdr will take on the maximum value contained in the array ptot between element number nper+4 and element number N/2. ...

plus de 11 ans il y a | 0

| A accepté

Charger plus