Community Profile

photo

Raj


177 2019 年以降の合計貢献数

連絡する

Raj's バッジ

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

詳細を表示...

貢献した分野
表示方法

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

約12時間 前 | 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...

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

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

6日 前

解決済み


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

6日 前

解決済み


Find max
Find the maximum value of a given vector or matrix.

6日 前

解決済み


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

6日 前

解決済み


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

6日 前

解決済み


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

6日 前

解決済み


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

6日 前

回答済み
how to convert the fraction part into intger?
Use ceil(K) or floor(K) depending on how you want to round off the fractions. or int8(K) or int16(K) or int32(K) ...

7日 前 | 1

回答済み
Element-wise Complex Magnitude Calculation
Why don't you just put it in a loop like this: A = rand(5,1) + i*rand(5,1); % Assume this is your array B=zeros(length(A),1); ...

8日 前 | 0

回答済み
Compare two strings present in excel?
Is this what you are looking for? %% Import the data [~, ~, raw] = xlsread('C:\Users\User\Documents\MATLAB\TEST.xls','Sheet1')...

8日 前 | 0

| 採用済み

回答済み
Value of variable after passing one simulation cycle
Ok this is not going to serve your purpose. There is a reason its called simulation Cycle/Cycle time. The whole model (including...

8日 前 | 0

| 採用済み

回答済み
Define a matrix in simulink whose elements are evaluated at some other functions in the same model
"to workspace" block updates that workspace after end of simulation. Instead you can use the data store memory block. Use a data...

8日 前 | 0

回答済み
Need Instantaneous PID Value
"The output I am getting is in 3x1 tf format" - This is correct because as per definition 'pid' command creates a continuous-ti...

12日 前 | 0

| 採用済み

回答済み
I'm using the input command, with multiple inputs. I don't want the user to have to re-enter all the inputs if an error occurs.
I would recommend not to use 'error' as program will stop and exit execution everytime an error occurs. Next time it will always...

12日 前 | 1

| 採用済み

回答済み
LQR for tracking error minimization
1) Standard discrete cost function is J = Sum {x'Qx + u'Ru + 2*x'Nu}. In your case N=0. 2) "I suppose I have to use u =referen...

13日 前 | 0

回答済み
TO WORKSPACE FROM MATLAB
Create the data as a timeseries. See details here: https://in.mathworks.com/help/matlab/ref/timeseries.html For your case: t=...

13日 前 | 0

| 採用済み

回答済み
how to read lots of file and plot them
You can use this: for ii=1:54 % Number of S set of files for jj=1:3 % Number of sub files for each S index if ...

14日 前 | 0

| 採用済み

回答済み
Could anyone help me to solve the issue in the following code
May not be the best way but it works: rows_matrix=reshape(unused_rows,[],2) rows_matrix=[rows_matrix(:,1) [sort(rows_matrix(1:...

15日 前 | 0

| 採用済み

回答済み
how can i separate a matrix into a multiplication of two matrices One of Real Values and the Other for Integer values.
There are infinite combinations possible (atleast by theory) in which you can split a real number to multiplication of a real nu...

15日 前 | 0

回答済み
Outputting more than one value into Simulink system using Matlab function block
There are two things here. 1) Your function code is wrong at many places. You will have to rewrite it: function D = BAT(P) % S...

15日 前 | 0

回答済み
c2d convert to discrete time function with derivatives
Ok so your question is lacking a few crucial details and possible something is not right here. From the matrix you have given ...

15日 前 | 0

| 採用済み

回答済み
Licence Manager Error 15
Error-15 means that the workstation is not able to contact the server. See here: https://in.mathworks.com/help/polyspace_ada/po...

18日 前 | 0

回答済み
How to clip a sine wave on both side in SIMULINK?
Use saturation block. Set the saturator limits as the value where you want to chip the sine wave and you are done!!

18日 前 | 0

| 採用済み

回答済み
hi every one, can i get help to make this, thank you
You are almost there. What is the problem? Just use: K=[a1 b1 c1; a1 b1 c2; a1 b2 c1; a1 b2 c2; a2 b1 c1; a2 b1 c2;...

18日 前 | 0

| 採用済み

解決済み


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

18日 前

解決済み


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

18日 前

回答済み
Remove DC offset from input signal
So basically you have an aperiodic set of data with unknown DC bias value. As I had asked, if the offset is a constant value the...

18日 前 | 0

Load more