답변 있음

matlab hanging for the below code

Doesn't seem to be hanging for me! Where are you having problem? Have you tried running in Debug mode?

matlab hanging for the below code

Doesn't seem to be hanging for me! Where are you having problem? Have you tried running in Debug mode?

3년 이하 전 | 0

답변 있음

bode magnitude response of fractional order system

Use the command bodeplot instead of bode and set plot options using bodeoptions. Here you have an option of setting your Maguni...

bode magnitude response of fractional order system

Use the command bodeplot instead of bode and set plot options using bodeoptions. Here you have an option of setting your Maguni...

3년 이하 전 | 0

답변 있음

Could anyone help me how to group into 4 sets.

Use this: NN = mat2cell(A,[1],[2,3,1])

Could anyone help me how to group into 4 sets.

Use this: NN = mat2cell(A,[1],[2,3,1])

약 3년 전 | 0

답변 있음

Assign null to rows of a matrix

You cannot assign 'null' like this to a 3D matrix while wanting to maintain the dimensions of the matrix. You can assign zero or...

Assign null to rows of a matrix

You cannot assign 'null' like this to a 3D matrix while wanting to maintain the dimensions of the matrix. You can assign zero or...

약 3년 전 | 1

| 수락됨

답변 있음

round off problem in matlab

Just add 'format longg' before your code like this: format longg MAV = [0.0924317411754942 0.0313003411430704 0.00365072354007...

round off problem in matlab

Just add 'format longg' before your code like this: format longg MAV = [0.0924317411754942 0.0313003411430704 0.00365072354007...

약 3년 전 | 0

답변 있음

problem in applying loop

What is the 'y' you have used in your main script loop? Its not defined anywhere. Use this line in main script: waveLen(i) = fi...

problem in applying loop

What is the 'y' you have used in your main script loop? Its not defined anywhere. Use this line in main script: waveLen(i) = fi...

약 3년 전 | 0

| 수락됨

답변 있음

Is it possible to convert code written in the Matlab language into a Simulink block diagram?(Edited)

It is always recommended to be specific with your questions and also mention the MATLAB version that you are using. With the inf...

Is it possible to convert code written in the Matlab language into a Simulink block diagram?(Edited)

It is always recommended to be specific with your questions and also mention the MATLAB version that you are using. With the inf...

약 3년 전 | 1

답변 있음

How to iterate through a Matrix using for loops?

Shift these lines of code outside the 'for' loop: theta = [0, 0, 90, 45, 135, 30, 90, 0, 136.4, 15, 90, 165, 46.4, 0, 90, 45, 0...

How to iterate through a Matrix using for loops?

Shift these lines of code outside the 'for' loop: theta = [0, 0, 90, 45, 135, 30, 90, 0, 136.4, 15, 90, 165, 46.4, 0, 90, 45, 0...

약 3년 전 | 0

답변 있음

Could anyone help me to solve the issue.

A=[1.6512 1.6149 1.5829 1.5546 1.5298 1.1498 1.1334 1.1191 1.1066 1.0957 1.0862 1.0779 1.070...

Could anyone help me to solve the issue.

A=[1.6512 1.6149 1.5829 1.5546 1.5298 1.1498 1.1334 1.1191 1.1066 1.0957 1.0862 1.0779 1.070...

약 3년 전 | 0

답변 있음

Comparing a value against a set of values

A=rand(1,1,n) % Define your matrix here B=nonzeros(A); if isempty(B) %%Do nothing else %%Run command here end

Comparing a value against a set of values

A=rand(1,1,n) % Define your matrix here B=nonzeros(A); if isempty(B) %%Do nothing else %%Run command here end

약 3년 전 | 0

답변 있음

could anyone help me to solve the issue in the following code

"Could anyone please help me on it" - You have not exactly mentioned what help are you looking for. Your error message is self e...

could anyone help me to solve the issue in the following code

"Could anyone please help me on it" - You have not exactly mentioned what help are you looking for. Your error message is self e...

약 3년 전 | 0

| 수락됨

답변 있음

Diffrent results using tf(ss(A,B,C,D)) or C*inv(s*I-A)*B+D

The results are not different. They are same. Minor differences can be due to numerical/computational tolerances and accuracy. A...

Diffrent results using tf(ss(A,B,C,D)) or C*inv(s*I-A)*B+D

The results are not different. They are same. Minor differences can be due to numerical/computational tolerances and accuracy. A...

약 3년 전 | 0

| 수락됨

답변 있음

Transfer function of the highly distorted system; impact hammer testing and frequency response of the system

Not sure why you took the trouble of posting so much details. From what I understand, the one line question is that you have got...

Transfer function of the highly distorted system; impact hammer testing and frequency response of the system

Not sure why you took the trouble of posting so much details. From what I understand, the one line question is that you have got...

약 3년 전 | 0

답변 있음

Bode plot from transfer function looks wrong

"What is wrong with my MATLAB code?" - Absolutely nothing! Your Bode plot 'x' axis in in rad/sec and the online graph is in Hz...

Bode plot from transfer function looks wrong

"What is wrong with my MATLAB code?" - Absolutely nothing! Your Bode plot 'x' axis in in rad/sec and the online graph is in Hz...

약 3년 전 | 0

| 수락됨

답변 있음

How to I ensure that a triggered subsystem is run after the supersystem in Simulink?

You can do that by assigning higher relative priority to the supersystem. See below links for details: https://www.mathworks.co...

How to I ensure that a triggered subsystem is run after the supersystem in Simulink?

You can do that by assigning higher relative priority to the supersystem. See below links for details: https://www.mathworks.co...

약 3년 전 | 0

| 수락됨

답변 있음

transfer function plot problem

I don't think you need to use 'zp2tf' and then 'tf' to get your transfer function. You can directly use: sys=zpk(z,p,k) bode(s...

transfer function plot problem

I don't think you need to use 'zp2tf' and then 'tf' to get your transfer function. You can directly use: sys=zpk(z,p,k) bode(s...

약 3년 전 | 0

답변 있음

nonlinear bode plot to linear approximation bode plot

Have a look here: https://www.mathworks.com/help/ident/examples/frequency-domain-identification-estimating-models-using-frequen...

nonlinear bode plot to linear approximation bode plot

Have a look here: https://www.mathworks.com/help/ident/examples/frequency-domain-identification-estimating-models-using-frequen...

약 3년 전 | 0

| 수락됨

답변 있음

Why isn't possible to create a documention directly from the control system toolbox

Actually you can print you figures as PDF files if that's what you are asking for. See the answer posted here: https://in.mathw...

Why isn't possible to create a documention directly from the control system toolbox

Actually you can print you figures as PDF files if that's what you are asking for. See the answer posted here: https://in.mathw...

약 3년 전 | 0

답변 있음

Replace one NAN with zero in a row vector without a loop

A(isnan(A)) = 0; % replaces NAN elements of A matrix by Zero.

Replace one NAN with zero in a row vector without a loop

A(isnan(A)) = 0; % replaces NAN elements of A matrix by Zero.

약 3년 전 | 0

| 수락됨

답변 있음

See the figure.

So I understand you want your Y axis to be in reverse direction (decreasing from bottom to top) so that your graph comes out in ...

See the figure.

So I understand you want your Y axis to be in reverse direction (decreasing from bottom to top) so that your graph comes out in ...

약 3년 전 | 0

| 수락됨

답변 있음

Root locus shows less overshoot than step

The overshoot value indicated on a particular Pole in rlocus or pzmap plot is effectively the overshoot 'contributed' by that pa...

Root locus shows less overshoot than step

The overshoot value indicated on a particular Pole in rlocus or pzmap plot is effectively the overshoot 'contributed' by that pa...

약 3년 전 | 0

답변 있음

Initializing a value at the beginning of a Feedback loop in SIMULINK

Instead of initializing the value of 'x' inside MATLAB function, try the following: 1) Instead of directly feeding x1 at x (whi...

Initializing a value at the beginning of a Feedback loop in SIMULINK

Instead of initializing the value of 'x' inside MATLAB function, try the following: 1) Instead of directly feeding x1 at x (whi...

약 3년 전 | 0

| 수락됨

답변 있음

Help With For Loops in Plotting Problem

temp=1; t= linspace(0,15,100); Nat_fr=2.5; %Natural Frequency for Zeta=0.2:0.2:0.8 Beta (temp,1)= sqrt...

Help With For Loops in Plotting Problem

temp=1; t= linspace(0,15,100); Nat_fr=2.5; %Natural Frequency for Zeta=0.2:0.2:0.8 Beta (temp,1)= sqrt...

약 3년 전 | 1

| 수락됨

답변 있음

Hi there, I am trying to write a code on composite bars for n cross-sections, could someone help me with a simple code.

Use this: o = 'Enter the number of cross-sections: '; n = input(o); prompt = 'Enter the load in N: '; F = input(prompt); A=...

Hi there, I am trying to write a code on composite bars for n cross-sections, could someone help me with a simple code.

Use this: o = 'Enter the number of cross-sections: '; n = input(o); prompt = 'Enter the load in N: '; F = input(prompt); A=...

약 3년 전 | 1

| 수락됨

답변 있음

Problem in writing MATLAB code of Simulink model (state space)

"I want to write my simulink model into state space model" - Your simulink model is pretty straightforward and already in standa...

Problem in writing MATLAB code of Simulink model (state space)

"I want to write my simulink model into state space model" - Your simulink model is pretty straightforward and already in standa...

약 3년 전 | 0

답변 있음

how can we obtain the desired characteristic equation of a system?

"How the desired pole locations can be obtained for my particular system" - Desired pole locations are obtained from desired sys...

how can we obtain the desired characteristic equation of a system?

"How the desired pole locations can be obtained for my particular system" - Desired pole locations are obtained from desired sys...

약 3년 전 | 0

답변 있음

I cant get fprintf to work

Since you have not shared your mat file, I am assuming a,b,c,d are numbers. In that case, why are you using %s (which is for str...

I cant get fprintf to work

Since you have not shared your mat file, I am assuming a,b,c,d are numbers. In that case, why are you using %s (which is for str...

약 3년 전 | 0

답변 있음

How to plot only second pole of state space matrix with 20 eigenvalues?

Any specific reason you want to plot it on a 'pzmap'? I mean, If you just want to see the trend/evolution of the second Eigen va...

How to plot only second pole of state space matrix with 20 eigenvalues?

Any specific reason you want to plot it on a 'pzmap'? I mean, If you just want to see the trend/evolution of the second Eigen va...

약 3년 전 | 0

| 수락됨

답변 있음

How to import data for multiple files using for loop?

Here is a portion of code I use to read multiple files in cases like this: for r=1:6 % Number of files myfilename= sprintf('%i...

How to import data for multiple files using for loop?

Here is a portion of code I use to read multiple files in cases like this: for r=1:6 % Number of files myfilename= sprintf('%i...

약 3년 전 | 0

| 수락됨

해결됨

Flip the vector from right to left

Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

약 3년 전