Community Profile

photo

KSSV


Last seen: Today

8.707 total contributions since 2011

https://sites.google.com/site/kolukulasivasrinivas/
Professional Interests: Mathematical Computing

Contact

KSSV's Badges

  • MATLAB Central Treasure Hunt Finisher
  • Personal Best Downloads Level 4
  • First Review
  • 5-Star Galaxy Level 5
  • First Submission
  • 36 Month Streak
  • Master
  • Revival Level 3
  • Thankful Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
how to solve this error horzcat Dimensions of matrices being concatenated are not consistent?
Learn about debugginf a code here: https://in.mathworks.com/help/matlab/matlab_prog/debugging-process-and-features.html You ca...

alrededor de 17 horas ago | 0

| accepted

Answered
grouping data in column vector based on another vector
A = [0; 1; 2; 3; 4] ; B = [15;16 ;17; 18; 20;19;7;8;22;25] ; N = length(A) ; C = cell(N,1) ; for i = 1:N if A(i) == 0...

1 día ago | 0

| accepted

Answered
How to convert "64x128 single" into "64x128 double"?
You can convert a array A which single into double using: A = double(A) ; Read about single and double.

1 día ago | 2

Answered
How do I change this code for RGB images?
In this line Ii=Ii(:,:,rgb); You are overwrititng the m*n*3 image variable into a 1D matrix. Thus you lost your rgb original i...

1 día ago | 0

| accepted

Answered
please suggest me how to solve this problem
The error is clear and simple. You are trying to save more number of elements then initialized into the matrix. A = zeros(2,3)...

4 días ago | 0

| accepted

Answered
How do I read the strings from the xlsx file? I have read the data, but can't get the string?
Don't use importdata to read the xlsx file. You should use readtable.

4 días ago | 0

Answered
Finding value that gives the max when entered in equations
Along with max value you can get the index also...use this index to get the value of respective theta. clear ; clc; x0 = 0; %...

5 días ago | 1

| accepted

Answered
convert complex number to Integers
cordicexp calculates cos(theta)+i*sin(theta) To make cordicexp and exp same you need to use: exp(i*theta) Remember Euler's...

5 días ago | 0

Answered
x,y coordinates of text
You can use functions like strfind to get the position of the required string from the main string. str = 'Lorem ipsum dolor s...

5 días ago | 0

Answered
Why the for-loop doesn't work here?
You save all the values into an array and plot after the for-loop. %% ------------------------------Program-------------------...

5 días ago | 0

Answered
Storage elements from matrix in other one, with indexing.
A = [8 3 0 2 9 6 1 4 10 6 2 1 1 6 2 8 ]; a=2; b=4; [X,Y] = meshgrid([a b],[a b]) ; id = sub2ind(size(A)...

6 días ago | 1

| accepted

Answered
How to merge x and y values to a (x,y) format?
As the dimensions of xi_total and yi_total remain same i.e. 201*1 in the entire loop of length 1:sample; you can save the data i...

6 días ago | 1

Answered
How to plot a Bar Graph without a uniform spacing on the horizontal axis
You can plot the values by index and show the respective values uisng text. Example: x = [5 10 100 1000] ; y = rand(size(x)...

6 días ago | 0

| accepted

Answered
Input data size does not match network inputs size
Replace the line: net=newff([-1 1], [130,150,1], {'tansig','tansig','purelin'},'traingd'); with: PR = [min(P,[],2) max(P,[],...

6 días ago | 1

| accepted

Answered
How to change output in FOR Loop
X = zeros(12,1) ; for k = 1:1:12 X(k) = find(DateVector(:,2) == k)'; end The above is fine enough. You should go by in...

6 días ago | 0

Answered
How to compute weighted average
A = [54 50 ; 40 60 ; 30 70] ; A(:,3) = 0.4*A(:,1)+0.6*A(:,2)

6 días ago | 0

| accepted

Answered
Preallocating array error problem
You need to initialize the variable before the loop. Initialize using: error_history = zeros([],1) ; Note: Don't show your co...

6 días ago | 0

| accepted

Answered
How to generate random vector with boundary limit and with fixed sum? Also ensure to same value when called the function with same parameters.
rand creates random number every time. If you fix the seed, then you will get the same random number. Read about rng.

6 días ago | 1

Answered
How do I draw the same graph as the picture?
x1 = [4.158236141 6.153599506 -4.535940798 7.598349019 1.546377884 -1.345068203 9.996482015 -0.173832303 -4.963945249 7.60191503...

6 días ago | 0

| accepted

Answered
How do you get the value for any point on the response plane?
x1 = [4.158236141 6.153599506 -4.535940798 7.598349019 1.546377884 -1.345068203 9.996482015 -0.173832303 -4.963945249 7.60191503...

6 días ago | 0

| accepted

Answered
how to merge two tables with same column names into one table?
T1 = array2table(rand(4,3), 'VariableNames', {'A', 'B', 'C'}) ; T2 = array2table(rand(4,3), 'VariableNames', {'A', 'B', 'C'}) ;...

6 días ago | 0

Answered
Changing Data in a Table
Name = {'Al Pacino', 'Angelina Jolie','Robert De Niro','Russel Crowe','Kate Winslet','Julia Roberts'} ; Sex = {'M','F','M','M',...

6 días ago | 0

Answered
calculate the sum of a discert series and then limit the the result
syms k n f = symsum(1/(k+n),k,1,n) s = limit(f,n,inf)

6 días ago | 0

| accepted

Answered
How to create an animation between 2 points
A = [0 0] ; B = [5 4] ; x = [A(1) B(1)] ; y = [A(2) B(2)] ; p = polyfit(x,y,1) ; xi = linspace(x(1),x(2)) ; y...

6 días ago | 0

| accepted

Answered
Help with plotting an image on 3D
Try image instead of surf. If you use surf, try reversing the y-axis direction.

8 días ago | 0

Answered
is there a matlab visualiser
Read about debugging a code here: https://in.mathworks.com/help/matlab/matlab_prog/debugging-process-and-features.html

9 días ago | 0

Answered
What does xlim() do in my code and why are its brackets empty?
xlim() The above takes the x-values based on the plot/ the input x you give. It will draw a line along x-axes in the range as t...

9 días ago | 0

| accepted

Answered
Which function should I use to fill an ouput matrix based on information in two other matrices
Index = [1 2 1; 5 4 4]; Data = [12 16 10; 13 16 18; 12 11 14; 18 19 22; 23 60 17] ; Output = [12 13 12; 60 19 19] ; iwant = ...

9 días ago | 0

| accepted

Answered
Interpolating to latitude, longitude and time
Read about interp1 and interp2.

9 días ago | 0

| accepted

Load more