Community Profile # Pratik Bajaria

### VJTI

Active since 2013

Professional Interests: Control Systems

#### Statistics

All
• • • • • #### Content Feed

View by

dimension error with * operator
Hello, Try .* operator. It is the normal matrix multiplication, the one you are trying is doing a Hadamard multiplication. ...

4 years ago | 0

Curve Fitting for an equation
Hello, Did you try <https://in.mathworks.com/help/curvefit/curvefitting-app.html cftool>? It does have provision of adding <h...

4 years ago | 0

Question

PMU data for blackout analysis
Hello, I have been currently working on Blackout analysis and am wondering if there are any data repositories that have archi...

4 years ago | 0 answers | 1

### 0

Question

Can anyone help me code the fsolve equivalent in C/C++?
Hello, Off-lately, i have been working on some code which requires conversion of MATLAB's "fsolve" function into C/C++. Altho...

7 years ago | 1 answer | 0

### 1

Plot the solution of EDO system
Hello, I guess you mean ODE solver. Please go through the following link on MATLAB to find out s solution to the same. <htt...

7 years ago | 1

incrementation in for loop
Hello, Its difficult to understand your question, but if you would elaborate it would be great. Although, i would provide sol...

7 years ago | 0

| accepted

calculation of slopes of 2 lines
Hello, your solutions is pretty clear. I presume, that you have X,Y cords. Once, you have them, its a cakewalk. Slope of a l...

7 years ago | 0

Solving a non-linear second order ODE with Matlab
Hello, ode45 must work for you. All you have to do is make a function handle, which carries your ode function that you have s...

7 years ago | 0

Function, input number, return a value
Hello, You just have to change a few things and it must work. Atleast it does for me. ;-) you need not write g(x) literally....

7 years ago | 1

Solved

Is my wife right?
Regardless of input, output the string 'yes'.

7 years ago

Solved

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

7 years ago

Solved

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

7 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

7 years ago

Question

I have more or less created the entire structure for UPQC (see attached). But i dont know, something is going wrong, not getting...

7 years ago | 0 answers | 0

### 0

How to break and integer into an array output.
Hello, One of the easiest way to do this is fooling the way around. First convert the number into string. Then run a simpl...

7 years ago | 1

How to extract the dat from the txt file?
Hello, Please go through the following link and its associated functions. <http://www.mathworks.in/help/matlab/ref/fscanf....

8 years ago | 0

| accepted

How do i sent a document to printer.
Hello, I suggest you to check "print" function in matlab. Go through following link <http://www.mathworks.in/help/matlab/cr...

8 years ago | 0

How can i determine the dominant frequency and maximum amplitude of a signal from its line spectral plot
Go through the MATLAB help given on the following link. I hope it will clear all your doubts. http://www.mathworks.in/help/m...

8 years ago | 0

| accepted

HOW TO ENCODE AN 8BIT VALUE FROM A MATRIX
Hello, Check this. I think it would work for you. It worked for me fine. for i=1:size(b,1) for j=1:size(b,2) dum=0; ...

8 years ago | 0

| accepted

Eliminate symbols from char to number
Here's a workaround for this. hypind=find(p=='-'); cnt=0; cntp=1; for i=1:size(p,2) if i==hypind(cntp) if cn...

8 years ago | 0

how to do subtraction inside Structure
Well Technically its not possible. You are trying to subtract 1x5 from 1x7 array, which is violation of dimensionality. As a wor...

8 years ago | 0

who can help me write matlab codes for curve fitting?
Hello, Please go though the 'fit' and 'polyfit' function help in matlab. These might address your query. http://www.mathworks....

8 years ago | 0

How to use curve fitting toolbox automatically deal with curves?
That's True! Even I can't find attachment. Irrespective of that, if you would like to do curve fitting via command line, you ca...

8 years ago | 0

System Phase Portrait
Use *ode45* function to plot the phase portraits. Check this out: http://www.mathworks.in/help/matlab/ref/ode45.html

8 years ago | 0

how to convert decimal values into 8bit binary values in a 256*256 matrix.
Its Pretty Simple. You have not made 'b' into an array. do it and its all done. i.e. Change it to the following a=imread(...

8 years ago | 0

| accepted

Question

Simultaneous Recording Voice Signals and Playing
Hello, I have been trying the following code for voice recognition and playing but it throws me 'System Error' as... -----...

9 years ago | 0 answers | 0