Community Profile

photo

Raj


213 2019 年以降の合計貢献数

連絡する

Raj's バッジ

  • First Review
  • 6 Month Streak
  • Knowledgeable Level 3
  • Thankful Level 1
  • Revival Level 2
  • Solver
  • First Answer

詳細を表示...

貢献した分野
表示方法

回答済み
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? ...

1日 前 | 0

回答済み
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 ...

2日 前 | 1

| 採用済み

回答済み
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...

3日 前 | 0

回答済み
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', ...

3日 前 | 0

| 採用済み

回答済み
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))...

3日 前 | 0

| 採用済み

回答済み
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...

3日 前 | 0

回答済み
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=...

3日 前 | 0

| 採用済み

回答済み
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}]

3日 前 | 0

回答済み
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日 前 | 0

| 採用済み

回答済み
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日 前 | 0

回答済み
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?

4日 前 | 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...

約1ヶ月 前 | 0

回答済み
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...

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

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

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

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

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

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

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

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

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

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

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

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

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

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

4ヶ月 前 | 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.

4ヶ月 前 | 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 ...

4ヶ月 前 | 0

| 採用済み

Load more