A répondu
how to use two for loop in one matlab program
You should read this: https://mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html You cannot write v(z)(...

environ 5 ans il y a | 0

A répondu
How to solve: Error using "csvread". Too many output arguments
As the error says, you are requesting two many outputs arguments. The function 'csvread' only returns one output.

environ 5 ans il y a | 0

Question


Simulink Serial Receive, Selection of communication port
Hi, From the help of this component: https://mathworks.com/help/instrument/serialreceive.html?searchHighlight=serial%20recei...

environ 5 ans il y a | 1 réponse | 0

1

réponse

A répondu
How to solve a 2D PDE with backward Euler?
At line 58, you are trying to access the 11th element of the Number matrix, but its dimensions are 10 x 10, so you get an error....

plus de 5 ans il y a | 0

| A accepté

A répondu
Appending data with different sizes
The easiest way would be the following something like this: a = [1 2 3]; b = [4 5 6 7]; n=size(b,2) a_bis=[a zeros(1,n)]; c...

plus de 5 ans il y a | 0

A répondu
help regarding controllability of input matrix
Is the matrix V completely free ? If you can actually add any input to your system, why don't you simply define C = eye(3) ...

plus de 5 ans il y a | 0

A répondu
I need to view frequency spectrum with 50 kHz, 100 kHz and 150 kHz only of a time a signal (x) with 2000 kHz sampling frequency.How to do ?
Can you give more details about your problem ? Do these answers help you ? https://mathworks.com/matlabcentral/answers/36430-p...

plus de 5 ans il y a | 0

A répondu
where is the error ?
In the command line, where you defined v, call the function this way: >> v= [1 2 3 ;4 5 6]; >> mini(v)

plus de 5 ans il y a | 0

A répondu
Modbus TCP/IP localhost
This was a firewall issue. Ubuntu has a built-in firewall that one can deactivate using this solution: <https://askubuntu.com/q...

plus de 5 ans il y a | 0

| A accepté

A répondu
Matlab to Python ( dot product and dot divide equivalents )
Please refer to: http://mathesaurus.sourceforge.net/matlab-numpy.html or https://docs.scipy.org/doc/numpy/user/numpy-for-matl...

plus de 5 ans il y a | 0

A répondu
Forced step response of a signal
You can set the initial values of the step using stepDataOptions: <https://mathworks.com/help/control/ref/stepdataoptions.html>...

plus de 5 ans il y a | 0

A répondu
Help with animating a line correctly
Is this what you're looking for: %This for loop is what does the drawing for idx = 1:length(t) figure(1); clf; ...

plus de 5 ans il y a | 1

| A accepté

A répondu
Calling Maple from Matlab
_Maple_ is not a built-in function that you can call in matlab. If you have installed Maple on your computer, you can launch ...

plus de 5 ans il y a | 0

Question


Modbus TCP/IP localhost
Hi, I would like to set up a modbus communication using TCP/IP. In order to test it, I wanted to set the communication bet...

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

1

réponse

A répondu
Addition of two unequal matrices
You cannot compute A+B. You can only compute the sum for each column: A+B ans = 2 1 1 1 1 ...

plus de 5 ans il y a | 0

A répondu
find eigenvalues of a very large sparse matrix
Dod you have a look at _eigs_ ? <https://mathworks.com/help/matlab/ref/eigs.html>

plus de 5 ans il y a | 1

A répondu
Verification problem-absolute/relative error
Are you working with floating point numbers? Have a look here: <https://mathworks.com/help/matlab/ref/eq.html#bt2klek-3>

plus de 5 ans il y a | 0

| A accepté

A répondu
Using an existing vector in a .M file
Does this discussion <https://mathworks.com/matlabcentral/answers/1748-storing-user-input-as-a-vector> answer your question ?

plus de 5 ans il y a | 0

A répondu
How to extract a specific value from a loop.
_t_ is your time variable, so you have to use it to test if it's equal to 2seconds. if t==2 % assumes your time units i...

plus de 5 ans il y a | 0

| A accepté

A répondu
Plotting a signal between 8 and 15 sec
What is the problem exactly? You have your signal u 3001x1, with a sampling time of 10ms. It means that u(1) is the value of...

plus de 5 ans il y a | 0

A répondu
Binary to decimal - 8 bits at a time
You can try something like this using _bin2dec_ : for i=1:8:numel(binary) decimal=bin2dec(num2str(binary(i:i+7))) ...

plus de 5 ans il y a | 2

| A accepté

A répondu
Compare two folders and write the matching files to the third folder
Have a look at the functions _dir_ and _exist_.

plus de 5 ans il y a | 0

A répondu
I have this error, and I don't know how to solve it.Can someone help me please?
The problem is that _Tx_signal_ is not a vector but a matrix of size 1000 x 1000. From the help of _conv_ function: _C = c...

plus de 5 ans il y a | 0

| A accepté

A répondu
How to design LQR problem for tracking a reference output
You can use the <https://mathworks.com/help/control/ref/lqi.html lqi> function.

plus de 5 ans il y a | 1

A répondu
Retrieve data from uitable when user enters data
You should handle the deletion of the table properly as explained here: <https://mathworks.com/matlabcentral/answers/95210-ho...

plus de 5 ans il y a | 1

| A accepté

A répondu
How to create sine wave from given square wave
You just have to find the frequency of your square wave, and then create a sin wave like in those examples: <https://fr.mathw...

plus de 5 ans il y a | 0

| A accepté

A répondu
rounding a column vector
Try this: temp=[273.9 274.1 274.5]; round(temp*2)/2 ans = 274.0000 274.0000 274.5000

plus de 5 ans il y a | 0

A répondu
Decoding/reading this file
You can use textscan to load the text file.

plus de 5 ans il y a | 0

A répondu
How could I translate this Python code to Matlab?
If you want to use your Python code into matlab, you can use: <https://mathworks.com/help/matlab/call-python-libraries.html> ...

plus de 5 ans il y a | 0

| A accepté

A répondu
vector equals to value in matrix
The three following expressions: any(eq(A,gg)) any(A==gg) any(eq(0.9997,gg)) are the same and equal to 1. What is your...

presque 6 ans il y a | 0

Charger plus