Réponse apportée
How do I input two different vectors, r and h, into an equation?
I am not sure where is the issue.I have just tweaked the second half of your code a little bit. The second loop uses values of (...

presque 7 ans il y a | 0

Réponse apportée
Making plot with two x-axis and two y-axis
I think this will help.

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Can Matlab be used to design a chatbot?
Yes of course. Infact something like this has already been done. See here. Hope this helps!!

presque 7 ans il y a | 0

Réponse apportée
How do i write algorithms
Many ways of doing this problem. Below is one way: ni=input('Enter initial value:'); nf=input('Enter final value:'); A=zeros(...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
Script using loop and if statement
There are many ways to do this. Since your problem specifically asks for use of 'loops', you can use something like this: A = i...

presque 7 ans il y a | 0

Réponse apportée
Why is my MATLAB code not executing properly?
Hi, 1) In your first if-else part of code, I feel it is better to add a default condition also to take care of any value out of...

presque 7 ans il y a | 0

Réponse apportée
why nothing changes on my excel file when it is open
MATLAB cannot access and write data into a file when it is already open in another application i.e. Microsoft Excel. You have to...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
How to plot simulink data saved to the workplace?
I assume you want to plot velocity w.r.t time on one side and gear/improved gear w.r.t time on other side of graph. Your code sh...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
How can I get the simulation time on which my signal gets over a certain value?
Put your exponential function as a triggered sub system with the output of constant function as the trigger. Use trigger type as...

presque 7 ans il y a | 0

Réponse apportée
I need help in understanding and deducing the filter used.
Ok. So what I understood is that you need a bandpass filter with passband range from 0.001Hz to 1Hz. Your input is the data arra...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
want to get only all positive real roots
Use this: p=[1 2 -7 0 3] % Your Polynomial equation coefficients matrix A=roots(p) % All roots of equation B=A(A>=0) % Only p...

presque 7 ans il y a | 1

Réponse apportée
could anyone help me how to solve the issue.
Use display(randperm(total_number_of_partitions,1),'idx')

presque 7 ans il y a | 0

Réponse apportée
Obtaining value of cost function from LQR?
Are you making a model in simulink or script in MATLAB? In my case I have made a SImulink closed loop model with LQR controller ...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Control System Toolbox (no access to tune PID)
Since your controller model is in SIMULINK, you need "Simulink Control Design" toolbox in addition to "Control system" toolbox. ...

presque 7 ans il y a | 0

Réponse apportée
How can I set a reference value in PID in Matlab code/script?
Since you have put "step(Mc)" the closed loop system Mc is showing step response plot and tracking the value '1'. Your requirem...

presque 7 ans il y a | 1

Réponse apportée
I appreciate if anyone could help me with this problem
Name = {'Alex';'Morgan';'Erik';'Montana';'Molko';'Kelsie'}; Marks = [19;12;15;13;10;16]; % Create a table InputTable = table(...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
How can I keep just the arrays with 2 is before 3 after random swap 2 numbers.
Try this: s=[1,2,3,4,5] %First random swap x=randi([1,4],1,1); if s(x)~=2 s([x x+1])= s([x+1 x]); else s([x x-1])=...

presque 7 ans il y a | 0

Réponse apportée
Error converting discrete to continous transfer function
Your error message is self explanatory. If you dont specify any method for 'd2c' it takes zero order hold method by default and ...

presque 7 ans il y a | 3

| A accepté

Réponse apportée
Simulink generating sine waves
You can use the "Matlab Function" block to write your equation and get the output. That's one way.

presque 7 ans il y a | 0

Réponse apportée
Multiplication of matrices with Multiple variables
Not sure how you are getting the 'same value'. Your code as it is will not run in the first place. Try this: %case I th1 = 0;...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
How to campare index number of a matrix with other
for i=1:numel(A) A(i)=B(A(i)); end Also please see this.

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Simulation of Discrete time transfer function
Correct me if I am wrong but i think "lsim" works for both continuous (S Domain) and discrete (Z Domain) transfer functions. "T...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Change a parameter during the simulation Simulink
In cases like this where you have to give a customized input, I prefer to go to excel to create that input as a time series. In ...

presque 7 ans il y a | 0

Réponse apportée
How to sort rows of a matrix without using sortrows function?
How about doing a small search and putting a little effort before dumping your homework question here! See this.

presque 7 ans il y a | 0

Réponse apportée
how to make 3 differents inputs with if else statement
Try this: Toefl=input('Toefl=') Math=input('Mathematic=') Bio=input('Biologi=') if((Toefl >= 601) && (Toefl <= 670)) && ((M...

presque 7 ans il y a | 0

Réponse apportée
How to copy a simulink model to a new blank model transfering the same configurations?
In addition to copy pasting your model, try doing this. Hope this helps!

presque 7 ans il y a | 0

| A accepté

Réponse apportée
how to fix MATLAB Function block issue?
Your question itself is self explanatory and the error message is the solution to your problem. Many inbuilt MATLAB functions li...

presque 7 ans il y a | 1

Réponse apportée
Create a difference loop from a cumulative matrix
Suppose 'A' is your 831x1 matrix. Use this: B=diff(A); Apure=[A(1);B]; If you are specific with "for loop" then you can use t...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
how we write condition in for loop?
k=0; while k<j k=k+1 end

presque 7 ans il y a | 0

| A accepté

Réponse apportée
can not use PID tuner in simulink
This will help clear your doubts: https://in.mathworks.com/matlabcentral/answers/57916-what-is-the-difference-between-simulink-...

presque 7 ans il y a | 2

| A accepté

Charger plus