Answered
MIMO feedback loop syntax
Did you try with the <https://fr.mathworks.com/help/control/ref/feedback.html feedback> function ?

6 years ago | 0

Answered
multiply mimo transfer function in Simulink
In figure 1, EGR is not the sum of the outputs of R11 and R12, but is a vector made of [outputR11 output R12]. So in your si...

6 years ago | 0

Answered
matlab code to solve ELIPTIC PDE
I recommend you to read <https://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-...

6 years ago | 0

Answered
How to make a GUI (guide) figure
Have a look here: <https://mathworks.com/help/matlab/guide-or-matlab-functions.html> <https://mathworks.com/videos/creatin...

6 years ago | 0

Answered
Subscript indices must either be real positive integers or logicals.
Did you define _i_ before calling this line ? Term3=(sumnr(X,G,tau,i)-X(i)*G(i,i)*tau(i,i))/(sumdr(X,G,i)-X(i)*G(i,i)); ...

6 years ago | 0

Answered
How can i find the index of a value in a matrix?
In the _find_ command, you can use: [row,col,v] = find() or you can use sub2ind and ind2sub functions to convert between...

6 years ago | 0

Answered
Move all NaN to end of matrix columns.
if you want to move all NaN to end of matrix you can use: sort(A) ans(:,:,1) = 1 1 2 2 3 3...

6 years ago | 0

Answered
Subplot for for loop
The help of <https://mathworks.com/help/matlab/ref/subplot.html> says: _subplot(m,n,p) divides the current figure into an m-b...

6 years ago | 1

Answered
How to add a "if not a number" expression to GUI error dialog
Are you searching for somethink like <https://mathworks.com/help/matlab/ref/isnan.html isnan> ? if isnan(P) errordlg(...

6 years ago | 0

Answered
How to solve error 9
Did you read <https://mathworks.com/matlabcentral/answers/99067-why-do-i-receive-license-manager-error-9> ?

7 years ago | 0

Answered
A = A(50:99,50:99) in matlab
Did you read <https://mathworks.com/help/matlab/math/matrix-indexing.html this> ? How is the matrix _A_ defined before this l...

7 years ago | 0

| accepted

Answered
How to run embedded Matlab function in Simulink periodically
You can access the simulation time in your m function using : get_param('YourModel','SimulationTime') or you can use the...

7 years ago | 0

| accepted

Answered
Could not find or load the Qt platform plugin "xcb".
Thanks for your answer. I got the same PATH from the terminal and from Matlab but on the linux terminal I don't have any "LD_...

7 years ago | 0

Answered
How to define transparency of errorbar?
Maybe you will find this interesting : <https://mathworks.com/matlabcentral/fileexchange/26311-raacampbell-shadederrorbar> ...

7 years ago | 0

Solved


Find the 9's Complement
Find the 9's complement of the given number. An example of how this works is <http://electrical4u.com/9s-complement-and-10s-c...

7 years ago

Solved


letter yes yes & letter no no
Split a string into two strings, wherein the first string has all alphabetic letters and the second string has all the remaining...

7 years ago

Solved


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

7 years ago

Solved


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

7 years ago

Answered
How to generate linear frequency modulation signal in matlab
Did you read <https://mathworks.com/help/phased/ug/linear-frequency-modulated-pulse-waveforms.html this> ?

7 years ago | 0

Answered
Scale the axis in a contourf plot/ change axis location
Maybe something like this : contour(...); ax=gca; ax.XAxisLocation='top';

7 years ago | 0

Answered
how to find the transpose
for any vector or matrix _A_, _A'_ gives the transpose of _A_.

7 years ago | 0

Answered
Matrix filling with for loop
For loop documentation : <https://fr.mathworks.com/help/matlab/ref/for.html?searchHighlight=for&s_tid=doc_srchtitle> f = ze...

7 years ago | 4

| accepted

Answered
Multiplying m*m*N matrix internally
prod performs element-wise multiplication. If you want matrix multiplication, you can use something like : A = ra...

7 years ago | 0

| accepted

Answered
What does x=randint(1,1,[1,n]); ?
I may be wrong, but I think _randint_ was part of the Communication System Toolbox and its functionality has been replaced by th...

7 years ago | 2

| accepted

Answered
Is it possible to print multiplication sign on a plot title?
Try with the _\times_ command like in this example : title('abc \times def')

7 years ago | 1

Answered
How would I use fzeros in this?
If you read the documentation, you should have notice that second input argument must be a scalar or a 2-elements vector. Thi...

7 years ago | 0

Answered
how can i extract the symbolic variable from a symbolic vector or matrix
syms f0 L r=f0*L*[1/6;2/3;1/6]; r = (L*f0)/6 (2*L*f0)/3 (L*f0)/6 and var=symvar(r) var = [ L, f0]

7 years ago | 1

| accepted

Answered
Plotting Problems with values bigger than...?
Try with A(A>10)

7 years ago | 0

| accepted

Answered
How to Mapping Values
Suppose you have : x=[3.35 3.4 3.8 3.9 4 4.08]; and you want to scale it to the interval [a b] a=1.4; b=4; you ...

7 years ago | 0

| accepted

Answered
how to plot a gaussian 1D in matlab
You can use Matlab function to construct Gaussian function : x = 0:0.1:10; y = gaussmf(x,[2 5]); plot(x,y) https://fr....

7 years ago | 3

Load more