Respondida
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...

más de 6 años hace | 1

Respondida
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...

más de 6 años hace | 0

Respondida
How to assign values to 100 by 2 matrix?
A=[2 3] A1=[A(1)*ones(100,1) A(2)*ones(100,1)]

más de 6 años hace | 1

Respondida
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...

más de 6 años hace | 0

Respondida
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...

más de 6 años hace | 0

| aceptada

Respondida
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...

más de 6 años hace | 0

Respondida
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

más de 6 años hace | 0

Respondida
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...

más de 6 años hace | 0

Respondida
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)]

más de 6 años hace | 0

Respondida
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...

más de 6 años hace | 0

| aceptada

Respondida
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...

más de 6 años hace | 0

Respondida
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...

más de 6 años hace | 0

| aceptada

Respondida
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...

más de 6 años hace | 1

| aceptada

Respondida
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...

más de 6 años hace | 0

Respondida
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...

más de 6 años hace | 0

| aceptada

Respondida
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...

más de 6 años hace | 0

| aceptada

Respondida
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...

más de 6 años hace | 3

| aceptada

Respondida
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...

más de 6 años hace | 0

Respondida
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...

más de 6 años hace | 0

Respondida
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 ...

más de 6 años hace | 0

Respondida
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...

más de 6 años hace | 1

| aceptada

Respondida
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...

más de 6 años hace | 0

| aceptada

Respondida
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_...

más de 6 años hace | 0

Respondida
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...

más de 6 años hace | 1

| aceptada

Respondida
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 ...

más de 6 años hace | 0

| aceptada

Respondida
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...

más de 6 años hace | 0

Respondida
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...

más de 6 años hace | 1

| aceptada

Respondida
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...

más de 6 años hace | 1

| aceptada

Respondida
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...

más de 6 años hace | 0

Respondida
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=...

más de 6 años hace | 0

Cargar más