Community Profile # KSSV

Last seen: Today Active since 2011

Programming Languages:
Python, MATLAB, Fortran
Spoken Languages:
English, Hindi, Telugu

#### Statistics

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

View by

Get separate values from a mat file
load Solution.mat ; c = struct2cell(conf_solution); iwant = cell2mat(squeeze(c(2,:,:)));

1 hour ago | 0

1/0.8x^2+0.5x+2
x = linspace(-1,1); p = 1./(0.8*x.^2+0.5*x+2) ; % element by element operation plot(x,p)

2 hours ago | 0

Index in position 2 exceeds array bounds (must not exceed 1).
This is a simple error. You are trying to extract more number of elements then present in the array. % Example A = rand(1,5)...

2 hours ago | 0

smoothing a graph using matlab

22 hours ago | 0

how to export of a sub aera of an array to xyz?
xx = A(:) ; yy = B(:) ; zz = C(:) ; P = [xx yy zz] ; fid = fopen('test.txt','w') fprintf(fid,'%f %f %f\n', P.') ; fclos...

23 hours ago | 1

| accepted

plot data on a meshgrid

1 day ago | 1

| accepted

How do I convert a non-normal distribution to an equivalent normal distribution?

2 days ago | 0

Identify Zerocrossing Indices near to the peak of the other signal matlab
Multiple options: Use knnsearch Use interp1 Use InterX: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-inter...

2 days ago | 0

select the first row in the matrix
A(1,:) Go through the basics here: https://www.mathworks.com/learn/tutorials/matlab-onramp.html

2 days ago | 1

How to write code for diagonal matrix with specified input ?
n = 3 ; s = 2 ; iwant = zeros(n) ; for i = 1:s iwant(i,i)=1 ; end iwant

2 days ago | 1

| accepted

for loop increment problem
clc clear % first we should note that this is a log-log plot % Let's introduce k first k = logspace(0, 4, 100)'; %connectivi...

3 days ago | 0

Colour code to find how big a function is
x = linspace(-1,1) ; y = linspace(-1,1) ; [X,Y] = meshgrid(x,y) ; F = (Y-X)./(1+X.^2) ; surf(X,Y,F)

3 days ago | 0

I wanted to import csv files in a specific folder and wanted to plot graphs of them from the data of secound column and third column in the file can you please help me
thepath = 'D:\APDL\Cylinder\CSV Files\'; files = dir([thepath,'\*.csv']) N = length(files) ; for i = 1:N fi...

3 days ago | 0

Have latex (bold) and variable in legend of a figure
plot(rand(1,10)) ; hold on plot(rand(1,10)) ; legend( 'Error','$[\frac{tv_p}{r_{well}}](\Pi_1=)$','Interpreter','latex', ...

3 days ago | 0

how to merge centroids?
You have the coordinates of centroid, you can use knnsearch to get the nearest neighbors.

3 days ago | 0

How to make Motor Power Loss Map from efficiency map ?
load('Motor_Map.mat') ; figure h1 = pcolor(Motor_RPM,Motor_Trq,Eff') ; % Plot Motor Efficiency Map h1.EdgeColor = 'none' ; ...

3 days ago | 0

In a 6x6 square matrix A, how to select elements in i-th row with A(i,j) ruled out
A = [0 0 -1 1 1 1 0 0 0 0 1 0 1 -1 0 1] ; B = zeros(size(A)...

5 days ago | 0

| accepted

How to replace duplicate element to 0 in matrix for every rows
A = [1 1 1 2 2 2 3 3 4 4 5 5 5 1 2 2 3 3 3 4 4 4 5 5 6 6 1 1 1 1 2 2 3 4 5 5 5 6 6] ; B = zeros(size(A)) ; for i = 1:size...

5 days ago | 0

| accepted

save index of find- loop in a table
C = cell(143,1) ; for i=1:143 [row,col]=find(HQ10000_WH(i,[1:10498])>0,1,'first') C{i} = col ; end

5 days ago | 0

| accepted

Order Points for plotting
load('A.mat') ; x = A(:,1) ; y = A(:,2) ; n = length(x) ; iwant = zeros(n,2) ; i = 1 ; iwant(i,:) = [x(i) y(i)] ; x(...

5 days ago | 0

How to plot a stem 3d plot with base map

5 days ago | 0

Why wont my loop populate pre-allocated matrix?
clc clear all close all syms V Z T=[277.15 287.15 297.15 307.15 317.15 327.15 337.15 347.15 357.15 367.15 381.15 401.15 421....

5 days ago | 0

| accepted

3 vector to surface 3d plot?

6 days ago | 0

Divide a column of a datafile through a constant value
txtFiles = dir('*.txt') ; % you are in the folder of text files N = length(txtFiles) ; % total files % loop for each file ...

6 days ago | 1

how to use quiver3 plot vectors at zero points(i want to set the start point of the vectors all at zero points)
Simple, make x,y,z matrices as zeros matrix. [x,y,z]=meshgrid(-3:1:3,-3:1:3,-3:1:3); dx=x; dy=y; dz=z; r=(dx.^2+dy.^2+dz.^...

6 days ago | 1

| accepted

How to perform the following operation ( M(:,c)=M(:,c)+thr*M(:,c).*(N*2-1); )in each column in matrix M?
thr=.05 ; M = rand(14,128) ; N = rand(14,1) ; for c=1:128 M(:,c) = M(:,c)+thr*M(:,c).*(N*2-1); end

9 days ago | 0

| accepted

find data with same name

9 days ago | 0

| accepted

9 days ago | 0

| accepted