Answered

How to change the reference ?

I don't think this is right: ref = 8 in [0.200] ref = 5 in [200,400] ref = 12 in [400,600] You cannot have 2 references at...

How to change the reference ?

I don't think this is right: ref = 8 in [0.200] ref = 5 in [200,400] ref = 12 in [400,600] You cannot have 2 references at...

29 jours ago | 0

| accepted

Answered

Write a program that calculates the length of hypotenuse c for all (!) combinations of legs a and b and do so using a for loop!

You already know 'a' and 'b' from your problem statement. Just declare them as vectors directly. No need to enter the values one...

Write a program that calculates the length of hypotenuse c for all (!) combinations of legs a and b and do so using a for loop!

You already know 'a' and 'b' from your problem statement. Just declare them as vectors directly. No need to enter the values one...

environ 2 mois ago | 0

Answered

matlab account got temporary disabled

Maybe this will help: https://www.mathworks.com/matlabcentral/answers/429927-what-do-i-do-if-i-exceeded-the-limit-for-failed-lo...

matlab account got temporary disabled

Maybe this will help: https://www.mathworks.com/matlabcentral/answers/429927-what-do-i-do-if-i-exceeded-the-limit-for-failed-lo...

environ 2 mois ago | 0

Answered

Pre allocation do not work ...

Question is not clear. What exactly are you trying to do here?The pre allocation works fine. You can check it by putting breakpo...

Pre allocation do not work ...

Question is not clear. What exactly are you trying to do here?The pre allocation works fine. You can check it by putting breakpo...

2 mois ago | 0

| accepted

Answered

repeat elements ('a','b') where 'a' has to repeat 157 times and 'b' has to repeat 173 times, sequentially?

What is the exact issue here? Your 'tags' themselves are answers to your question. Use repelem and repmat to get what you want d...

repeat elements ('a','b') where 'a' has to repeat 157 times and 'b' has to repeat 173 times, sequentially?

What is the exact issue here? Your 'tags' themselves are answers to your question. Use repelem and repmat to get what you want d...

2 mois ago | 0

| accepted

Answered

Vector with numerator 1 unit less than denominator

format rat A=input('Enter number of elements:') % Enter 10 for this example for ii=1:A Out_Vector(ii)= (ii-1)/ii; end O...

Vector with numerator 1 unit less than denominator

format rat A=input('Enter number of elements:') % Enter 10 for this example for ii=1:A Out_Vector(ii)= (ii-1)/ii; end O...

2 mois ago | 0

Answered

Delayed step/ impulse response

You have your system model and input signals equation. You can just generate your input signals and get the system response for ...

Delayed step/ impulse response

You have your system model and input signals equation. You can just generate your input signals and get the system response for ...

3 mois ago | 0

Answered

frequeny domain signal into time domain signal

Your question is basically to convert the frequency domain data to time domain. Use 'ifft' command. See details here: https://...

frequeny domain signal into time domain signal

Your question is basically to convert the frequency domain data to time domain. Use 'ifft' command. See details here: https://...

3 mois ago | 0

Answered

Workspace data is not reflected in the model

Ok to summarize, you have a time series data in your workspace which you want to import to Simulink at appropriate time stamps. ...

Workspace data is not reflected in the model

Ok to summarize, you have a time series data in your workspace which you want to import to Simulink at appropriate time stamps. ...

3 mois ago | 0

Answered

How Simulink and Simscape model a particular system differently.

Of course you can make a Simulink model (mathematical model) of DC motor. Your question itself clears the air about 'how' Simuli...

How Simulink and Simscape model a particular system differently.

Of course you can make a Simulink model (mathematical model) of DC motor. Your question itself clears the air about 'how' Simuli...

3 mois ago | 0

Answered

Which state is being plotted in multi-degree of freedom system when using bodeplot

Can you share your system. 'bode' or 'bodeplot' for a MIMO statespace system will give you Bode plot (Magnitude and Frequency re...

Which state is being plotted in multi-degree of freedom system when using bodeplot

Can you share your system. 'bode' or 'bodeplot' for a MIMO statespace system will give you Bode plot (Magnitude and Frequency re...

3 mois ago | 0

| accepted

Answered

summation with for loop for all rows in another column

You are almost there. Put the whole thing in another loop that runs accross all the rows and store F_HL for each row like this: ...

summation with for loop for all rows in another column

You are almost there. Put the whole thing in another loop that runs accross all the rows and store F_HL for each row like this: ...

3 mois ago | 0

Answered

Time series data to frequency domain

Seems straightforward. Use this for reference: https://www.mathworks.com/help/signal/ref/spectrogram.html

Time series data to frequency domain

Seems straightforward. Use this for reference: https://www.mathworks.com/help/signal/ref/spectrogram.html

3 mois ago | 0

Answered

Finding X value for a corresponding Y value from contents of a table

You can use 'interp1' command. For example, in case of third column you can use: interp1(A(:,4), A(:,1),1.5) which gives ans...

Finding X value for a corresponding Y value from contents of a table

You can use 'interp1' command. For example, in case of third column you can use: interp1(A(:,4), A(:,1),1.5) which gives ans...

3 mois ago | 0

| accepted

Answered

How do I choose the desired final states when i simulate my state space model?

"How would I tell my system to, for example, change the pitch angle 10 degrees and then plot the results of this?" It's a quite...

How do I choose the desired final states when i simulate my state space model?

"How would I tell my system to, for example, change the pitch angle 10 degrees and then plot the results of this?" It's a quite...

3 mois ago | 0

Answered

Use of initial value and calculated value.

Use the Simulink Delay Block Tap the output coming from the last block 'update angular velocity' and give it as input to the fi...

Use of initial value and calculated value.

Use the Simulink Delay Block Tap the output coming from the last block 'update angular velocity' and give it as input to the fi...

3 mois ago | 1

| accepted

Answered

Upcoming Exam Dates for MATLAB Associate certification in India?

See here: https://www.mathworks.com/training-schedule/search?class_format=ILC&country_facet=IN

Upcoming Exam Dates for MATLAB Associate certification in India?

See here: https://www.mathworks.com/training-schedule/search?class_format=ILC&country_facet=IN

4 mois ago | 0

Answered

how can we find eigen values and eigen vector of a matrix having variable like x or y ?

You need to have 'Symbolic Math toolbox' to do this. Then you can calculate the Eigen values & Eigen vectors in terms of the var...

how can we find eigen values and eigen vector of a matrix having variable like x or y ?

You need to have 'Symbolic Math toolbox' to do this. Then you can calculate the Eigen values & Eigen vectors in terms of the var...

4 mois ago | 1

Answered

How can I Input an already factored polynomial into the bode function?

Z=[-1]; P=[0,-0.5,-2,-3]; system=zpk(Z,P,1); bode(system)

How can I Input an already factored polynomial into the bode function?

Z=[-1]; P=[0,-0.5,-2,-3]; system=zpk(Z,P,1); bode(system)

4 mois ago | 0

Answered

Hi. I want to automate a process which consists of 3 steps. 1. Read the data from excel file and extract the necessary data alone. 2. Run the data and output plots. 3. Store the results (workspace) in a specified folder in my computer.

"I want to call the master excel file into matlab, read/run the data in each sheet and save the workspace of each sheet in a spe...

Hi. I want to automate a process which consists of 3 steps. 1. Read the data from excel file and extract the necessary data alone. 2. Run the data and output plots. 3. Store the results (workspace) in a specified folder in my computer.

"I want to call the master excel file into matlab, read/run the data in each sheet and save the workspace of each sheet in a spe...

4 mois ago | 0

| accepted

Answered

Find position of max value in a graph

Just add this at the end of your code: [Y, I]=max(xphi); X_Max=phi(I) Y_Max=Y Or do you want max point markup on your plot? ...

Find position of max value in a graph

Just add this at the end of your code: [Y, I]=max(xphi); X_Max=phi(I) Y_Max=Y Or do you want max point markup on your plot? ...

4 mois ago | 0

Answered

Vector output from a for loop

TMP =[12, 3, 36]; PGRED=zeros(size(TMP)); for ii=1:length(TMP) if TMP(ii) < 9 PGRED(ii)=0; elseif ...

Vector output from a for loop

TMP =[12, 3, 36]; PGRED=zeros(size(TMP)); for ii=1:length(TMP) if TMP(ii) < 9 PGRED(ii)=0; elseif ...

4 mois ago | 1

| accepted

Answered

Plots - Two Y-Axis with Different Units

Since you have not shared the data, it is not possible to give exact solution to your problem but if you are looking for plottin...

Plots - Two Y-Axis with Different Units

Since you have not shared the data, it is not possible to give exact solution to your problem but if you are looking for plottin...

4 mois ago | 0

Answered

divide array to multiple varible of array

For the purpose of storing you can use a structure something like this: MyStructure = struct('Name', {{'a' 'b' 'c'}}, 'Value', ...

divide array to multiple varible of array

For the purpose of storing you can use a structure something like this: MyStructure = struct('Name', {{'a' 'b' 'c'}}, 'Value', ...

4 mois ago | 0

| accepted

Answered

How to store multiple y-data of arbitrary length for a given x and plot?

X=[1 2 3 4 5]'; Y= {[1 2 3] [1] [] [1 2 10 4] [1 5 2 0 3]}'; for ii=1:numel(X) scatter((repelem(X(ii),numel(cell2mat(Y(ii))...

How to store multiple y-data of arbitrary length for a given x and plot?

X=[1 2 3 4 5]'; Y= {[1 2 3] [1] [] [1 2 10 4] [1 5 2 0 3]}'; for ii=1:numel(X) scatter((repelem(X(ii),numel(cell2mat(Y(ii))...

4 mois ago | 0

| accepted

Answered

plotting a graph of multivariable function

"The code is taking only last values, i.e., y1 and y2=1" - No it is not taking only the last values. The for loop for both y1 an...

plotting a graph of multivariable function

"The code is taking only last values, i.e., y1 and y2=1" - No it is not taking only the last values. The for loop for both y1 an...

4 mois ago | 0

Answered

Using nested loops to calculate Bernoulli numbers

B=zeros(1,11); % Create an empty array to store the Bernoulli numbers for m=0:10 % Number of Bernoulli numbers required temp2=...

Using nested loops to calculate Bernoulli numbers

B=zeros(1,11); % Create an empty array to store the Bernoulli numbers for m=0:10 % Number of Bernoulli numbers required temp2=...

4 mois ago | 0

| accepted

Answered

How to create a 2x2 matrix?

h1=rand(2,500)+i*rand(2,500) % Your first matrix h2=rand(2,500)+i*rand(2,500) % Second matrix M=[{h1} {h2};{h2} {h1}]

How to create a 2x2 matrix?

h1=rand(2,500)+i*rand(2,500) % Your first matrix h2=rand(2,500)+i*rand(2,500) % Second matrix M=[{h1} {h2};{h2} {h1}]

4 mois ago | 0

Answered

Please help: How to do a time step?

The easiest way here would be: 1) Compute u_1 and u2 as you have done already. 2) Just take the last value of u_1 and append i...

Please help: How to do a time step?

The easiest way here would be: 1) Compute u_1 and u2 as you have done already. 2) Just take the last value of u_1 and append i...

4 mois ago | 0

| accepted

Answered

Matrix compare row to column

Okay lets try to break it down here: 1) I have to create a 100 x 100 matrix Create an all zero matrix like this: A=zeros(100,...

Matrix compare row to column

Okay lets try to break it down here: 1) I have to create a 100 x 100 matrix Create an all zero matrix like this: A=zeros(100,...

4 mois ago | 0