M Tech graduate in Power Systems

Answered

How to plot a NxM matrix all in one figure using a for loop where xscale should be log

Its XScale not xscale

How to plot a NxM matrix all in one figure using a for loop where xscale should be log

Its XScale not xscale

2 Monate ago | 0

Answered

create a 2-column matrix, random set of weight

To multiply each element of the matrix kg, you have to use .* instead of * I hope this code works. If not please rectify kg=[1 ...

create a 2-column matrix, random set of weight

To multiply each element of the matrix kg, you have to use .* instead of * I hope this code works. If not please rectify kg=[1 ...

2 Monate ago | 1

Answered

linearly independent eigen vectors

i is the eigen vector and j is the eigen values [i j]=eig(A)

linearly independent eigen vectors

i is the eigen vector and j is the eigen values [i j]=eig(A)

3 Monate ago | 0

Answered

How to find a Y value of a given X?

Hope this helps. x is the input and sol is the value of v at x (in this case x=0.000625) syms v(t) x=0.000625; v(t)= 50*exp(-...

How to find a Y value of a given X?

Hope this helps. x is the input and sol is the value of v at x (in this case x=0.000625) syms v(t) x=0.000625; v(t)= 50*exp(-...

3 Monate ago | 0

Answered

How to find a corresponding matrix value

Hope this helps. yis the required vector W=%your vector Q=%vector obtained after operations on W [v,u]=max(W') for i=1:lengt...

How to find a corresponding matrix value

Hope this helps. yis the required vector W=%your vector Q=%vector obtained after operations on W [v,u]=max(W') for i=1:lengt...

3 Monate ago | 0

Answered

mixture of Benzene and Toluene

Hope this helps. The function chemist_problem(p) inputs p and gives output vector y which have values of v and l. function y =c...

mixture of Benzene and Toluene

Hope this helps. The function chemist_problem(p) inputs p and gives output vector y which have values of v and l. function y =c...

3 Monate ago | 0

Answered

vector size and dimension

Have you tried clear at the start. The clear command clears the variables in workspace.

vector size and dimension

Have you tried clear at the start. The clear command clears the variables in workspace.

3 Monate ago | 0

Answered

Queries on the use of "double"

I think the first one uses syms command anywhere in the script while the second one does not. While you use syms command the ent...

Queries on the use of "double"

I think the first one uses syms command anywhere in the script while the second one does not. While you use syms command the ent...

3 Monate ago | 0

Answered

Need some help solving non-linear equations

syms k alpha t1=%enter t1; t2=%enter t2; t3=%enter t3; sigma1=%enter sigma1; sigma2=%enter sigma2; sigma3=%enter sigma3; equa...

Need some help solving non-linear equations

syms k alpha t1=%enter t1; t2=%enter t2; t3=%enter t3; sigma1=%enter sigma1; sigma2=%enter sigma2; sigma3=%enter sigma3; equa...

3 Monate ago | 0

Answered

How to solve ode functions?

From question, I guess the inputs should be velocity and depth of the container. The outputs should be time taken to reach the r...

How to solve ode functions?

From question, I guess the inputs should be velocity and depth of the container. The outputs should be time taken to reach the r...

3 Monate ago | 0

| accepted

Answered

Finding minima using if and for loops

Hope this helps. Vector y returns the minimum values of vector A A=[12; 4; 5; 23; 63; 57; 23; 6; 34]; a=A'; d=[diff(a) 0]; c...

Finding minima using if and for loops

Hope this helps. Vector y returns the minimum values of vector A A=[12; 4; 5; 23; 63; 57; 23; 6; 34]; a=A'; d=[diff(a) 0]; c...

3 Monate ago | 0

| accepted

Answered

To reproduce a wave packet

Hope this helps W= linspace(0, 10.0, 500); plot(W, sin(W*2*pi) - sin(W*1.1*2*pi))

To reproduce a wave packet

Hope this helps W= linspace(0, 10.0, 500); plot(W, sin(W*2*pi) - sin(W*1.1*2*pi))

3 Monate ago | 0

| accepted

Answered

I am not getting a graph when I plot

Replace Kp=((Cd*Ao*b)/(vp)); as Kp=((Cd*Ao*b)./(vp));

I am not getting a graph when I plot

Replace Kp=((Cd*Ao*b)/(vp)); as Kp=((Cd*Ao*b)./(vp));

3 Monate ago | 1

Answered

Plotting (x,y,z) and Pressure

Hi, Hope this helps.This code visualises the data as scatter plot. %dat is your data file x = dat(:,1); ...

Plotting (x,y,z) and Pressure

Hi, Hope this helps.This code visualises the data as scatter plot. %dat is your data file x = dat(:,1); ...

3 Monate ago | 0

| accepted

Answered

Soustraction between all line of a matrix

I hope this helps. If not, please rectify. S is your vector. A is a 6964*6964 matrix which returns the difference between other ...

Soustraction between all line of a matrix

I hope this helps. If not, please rectify. S is your vector. A is a 6964*6964 matrix which returns the difference between other ...

3 Monate ago | 0

| accepted

Answered

comparing table values using isequal

Instead of TF = isequal ("M(i,2)",'f') try, TF = strcmp (M.2nd_variable,'f')

comparing table values using isequal

Instead of TF = isequal ("M(i,2)",'f') try, TF = strcmp (M.2nd_variable,'f')

3 Monate ago | 0

Answered

How to plot 4d data?

Hi, this code visualises the data as scatter plot. Hope this helps. %dat is your data file x = dat(:,1); ...

How to plot 4d data?

Hi, this code visualises the data as scatter plot. Hope this helps. %dat is your data file x = dat(:,1); ...

3 Monate ago | 0

Answered

How can I plot 2 vectors with different lenght and with a spacing of 3hours on the time axis?

Hope this helps. It has spacing of 3hrs from 0 to 24 hrs limit %H0=[your matrix]; H0 = mean(H004(1:120)) + mean(H004(1321:1440...

How can I plot 2 vectors with different lenght and with a spacing of 3hours on the time axis?

Hope this helps. It has spacing of 3hrs from 0 to 24 hrs limit %H0=[your matrix]; H0 = mean(H004(1:120)) + mean(H004(1321:1440...

3 Monate ago | 0

| accepted

Solved

Is the input divisible by 3?

Return true if the input is divisible by 3 and false if not.

3 Monate ago

Solved

Add two numbers

Calculate the sum of two numbers. Example input = [2 3] output = 5

3 Monate ago

Solved

Tiling a matrix

Given a matrix and a number of columns, replicate matrix in a single row

3 Monate ago

Solved

Square wave average calculation

Given its peak and duty cycle, calculate avg value of square wave

3 Monate ago

Solved

Create incrementing array

Given a and b generate an output matrix as shown in following examples: a=2 b=5 output=[2 20 200 2000 20000] a=4 b...

3 Monate ago

Solved

Average of square wave

given positive and negative peak , calculate dc level, 50% duty cycle

3 Monate ago

Solved

Calculate the peak value of square wave

Given the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.

3 Monate ago

Solved

Find the Nth Root of a Given Number

Find the Nth root of a given number x. Examples x = 4096 n = 4 y = 8 x = 625 n = 5 y = 3.6239

3 Monate ago