Réponse apportée
How to track a command control in aircraft model using state-space representation
I have a few observations here: So basically you can just change the states error matrix as per your desired value (velocit...

presque 7 ans il y a | 1

Réponse apportée
A code that freezes Matlab on 'busy' at some values.
The code is not actually freezing and there is no issue with MATLAB. Its just the way your code is written. Try putting breakpoi...

presque 7 ans il y a | 0

Réponse apportée
How to assign values to 100 by 2 matrix?
A=[2 3] A1=[A(1)*ones(100,1) A(2)*ones(100,1)]

presque 7 ans il y a | 1

Réponse apportée
I need to make 150 plots which I want to do in for loop. To best view these plots, I want to export them to a single PDF.
I think this would help: https://in.mathworks.com/matlabcentral/answers/232417-saving-plot-as-pdf-in-loop https://in.mathworks...

presque 7 ans il y a | 0

Réponse apportée
Finding average of a sensor signal
This should help: https://in.mathworks.com/matlabcentral/answers/367412-how-to-calculate-moving-average https://in.mathworks.c...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Apply Frequency Response Function to time series
You can do this easily in Simulink. Create a model of H(f) using the transfer function block. Load your input in workspace and p...

presque 7 ans il y a | 0

Réponse apportée
Formulation to Matlab code
Since your equation asks for 'log' not 'ln' , I think the code should be: for i=1:N S(i) = -PT(i) * log10(PT(i)); end

presque 7 ans il y a | 0

Réponse apportée
Search all elements from from array A in array B and write it workspace
Your thinking is basically correct. for i = 1: length(Array A) % Start with first element of A if Array A(i) = [Array B] % com...

presque 7 ans il y a | 0

Réponse apportée
dimension consistency of matrix
A=[1;2;3;4;6;1;3;4;5;6] B=[2;4;3;1] B= [B;zeros(numel(A)-numel(B),1)]

presque 7 ans il y a | 0

Réponse apportée
Explanation of question on (past) test, but do not understand please help
Its quite straightforward. See the array 'v' elementwise like this: v=[-9 3 2 10 4 -12 14 -1]; 1) First element is -9. The for...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
How PI control tuned using the error information ?
I'll assume you have a set of time domain (rise time, settling time, overshoot etc) or frequency domain (gain margin, phase marg...

presque 7 ans il y a | 0

Réponse apportée
How do I finish coding this problem?
Are you sure your question is answerable? I mean does such a number even exists? Anyways, I wrote this code and ran it for abou...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
How to generate dummy variables based on multiple if criteria
Lets say you have 10 participants, so a total of 100 dataset. I'll assume you already have your id, taskno, treatno and choice a...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
On Off switch simulink
There are many ways you can approach this problem. One way is to convert your entity server model as an Triggered sub system. Th...

presque 7 ans il y a | 0

Réponse apportée
For a control system model having an inner loop and an outer loop. How to simulate this model when inner loop has higher sampling rate than outer loop?
Use "Rate transition" blocks for transfer of data between your inner loop and outer loop. For the data going into outerloop from...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Why am i getting "Unable to perform assignment because the indices on the left side are not compatible with the size of the right side"
You must be getting error at line number 34 in your code. That's because your 'ra' is a 1x11 double type matrix which (after di...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
what is the difference between data types single and double in simulink ?
Your floating point data (Decimal Data) can be represented either via Single data type of Double data type. The basic difference...

presque 7 ans il y a | 3

| A accepté

Réponse apportée
Simulink won´t open
Unfortunately your options are limited here: 1) Open a blank Simulink project in your 2017 version. Navigate to File-Simulink P...

presque 7 ans il y a | 0

Réponse apportée
how do i plot a sawtooth graph without using the sawtooth function?
See the accepted answer here: https://in.mathworks.com/matlabcentral/answers/165393-need-help-to-plot-sawtooth-wave-matlab You...

presque 7 ans il y a | 0

Réponse apportée
Matlab remains open in background after being closed.
One of the Mathworks Staff has adressed this issue here. Maybe this will help solving your issue even though that post was for ...

presque 7 ans il y a | 0

Réponse apportée
How do I plot the bode plot of the transfer function with exp(sT)?
You can rearrange the equation as (e^-sT)(s+10)/s(1-(e^-sT)) Then your code should look something like this: s = tf('s'); T=1...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
Plotting elements corresponding to a matrix
If I understand your problem statement correctly, your code should look something like this: A=[NaN 5.0000 5.0000 6.00...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Loop output not saving to a cell array. Only last solution saving to cell
1) Your comment says: "%Making Particle Tracking Automatic by keeping x&y constant but changing z" However you are changing x_...

presque 7 ans il y a | 0

Réponse apportée
how do i write an algorithm
ub=input('Enter upper bound:') lb=input('Enter lower bound:') f1=zeros(ub-lb+1,1); f2=f1; fsum=f2; for i=lb:ub f1(i+10...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
Control tool box and precision issue?
So I corrected that sampling rate to 20KHz as mentioned in your question. You are right, "the only change is the "speed" of the ...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
add more than one toolbox to an existing matlab installation
Maybe this will help: https://in.mathworks.com/matlabcentral/answers/101885-how-do-i-install-additional-toolboxes-into-an-exist...

presque 7 ans il y a | 0

Réponse apportée
how to solve this IEEE Standard coding
Maybe this will help: https://in.mathworks.com/matlabcentral/answers/396642-unable-to-access-lrwpan-from-custom-installation-of...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
How to apply a step input to only ONE of the multi-inputs in a MIMO state space model?
The 'lsim' functon will work here. The code is correct and the input is getting applied only to the elevator (U3). If you are th...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
Synchronising plant and controller
If your system and controller are working in same sample time then this question will not arise as output of controller will get...

presque 7 ans il y a | 0

Réponse apportée
How are math operations of constants in simulink models performed?
The computation is done at each simulation step time. So if you are adding two constant blocks, from t=start of simulation to t=...

presque 7 ans il y a | 0

Charger plus