Community Profile

# KSSV

Last seen: Today Active since 2011

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

All

#### Content Feed

View by

Show only two y values in a plot
tol = 10^-3 ; % fix your tolerance idx = abs(wavelength-0.02)<=tol | abs(wavelength-0.04)<=tol ; plot(time(idx),wavelength(...

2 days ago | 0

How to identify negative slope from plot data?
t = linspace(0,2*pi) ; y = sin(t) ; m = [0 diff(y)./diff(t)] ; plot(t,y) ; hold on plot(t(m<0),y(m<0),'+r') plot(t(m...

2 days ago | 0

How to replace 0 value with 3 in Matlab
c5 = Dataset(:,5) ; % Find the number of 0, 1, 2 idx = c5 == 0 | c5 == 1 | c5 == 2 ; % gives logical indices nnz(idx) ...

2 days ago | 0

How to multiply each term in a n*n matrix with elements in a column matrix
A=[ 0.34005, 1.15985, -1.42862; 0.45204, -0.12963, -0.07851; 0.18586, -0.49792, 0.56187; 0.20188, 0.19786, -0.54699] ; B=[0; 0;...

3 days ago | 0

I want help solving differential equations
syms x y(x); eqn = diff(y,x)==exp(x)/(2*y) sol = dsolve(eqn)

3 days ago | 0

| accepted

Which approach is useful here to get a plot?
Check and then use. I have quickly typed it without much thought. n1 = linspace(0,1) ; n2 = linspace(0,1) ; n = cat(3,n1,n2...

3 days ago | 0

| accepted

image storage with index type 0000
for i = 1:10 name = ['ortophoto_',sprintf('%.4d',i),'.bmp'] end

4 days ago | 0

How do I make my circle display in pink and background in white color?
[m,n] = deal(500) ; % side of image I = ones(m,n,3) ; % initialize image with white background % GEt cirlce on the image...

6 days ago | 0

| accepted

Can anyone explain this step:? Contour function
[X,Y,Z] = peaks(50) ; c = contour(X,Y,Z) ; hold on plot(c(1,:),c(2,:),'*r') axis([-3 3 -3 3]) It gives you the (x,y) coord...

8 days ago | 0

How to extract multiple location data from a netCDF file
To know the variables in ncfile use ncdisp, ncinfo. To load variables from nc to matlab use ncread. To load data from excel ...

9 days ago | 0

how to solve error using horzcat dimensions of array being concatenated are not consistent
% running function_simulasi clear clc x0 = 0.02; %g/L tspan = (0:2:80); [t, x]=ode23('function_simulasi',tspan,x0); plot(t...

9 days ago | 0

Generate inner values of y for each x based on n
clc; clear all ; clear all clc n = 4; % number of divisions on the boundary x1 = linspace(0,2,n); y1_x1 = sqrt(1-( (x1.^2)/...

9 days ago | 0

| accepted

Help for engineering equations
The logic sounds simple. LHS (theta) can be any physical property like critical temperature, critical pressure, boiling point te...

10 days ago | 1

| accepted

How will change the scale value in the figure?

12 days ago | 0

| accepted

Make 3 dimensional matrix
[r,c] = size(val); nlay = 10 ; iwant = permute(reshape(val',[c,r/nlay,nlay]),[2,1,3]);

12 days ago | 0

I wanna make a .mat file
A = rand(10) ; str = 'The above is matrix' ; save test.mat ; % save A, str into mat file load test.mat ; % load the mat file...

13 days ago | 0

Basic 'for loop' problem: it stops after several iterations
I don't know why you are doing this, but the elow should work. c = zeros(11); for a = 0:0.1:1 b = 10*a + 1; c (1, f...

13 days ago | 0

Convert table into 2D matrix

13 days ago | 0

How can I read my jpeg file in matlab as .mat file

13 days ago | 0

| accepted

How to create a chloropleth map using the mean of the shapefiles sub-fields from a raster file?

13 days ago | 0

how to Solve the ordinary differential equation (ODE) in matlab? dx/dt=5x−3
syms x(t) eqn = diff(x,t)==5*x-3; s = dsolve(eqn)

14 days ago | 1

Matlab Array indixing error
In MATLAB the indices should be posittive integers or logicals. If not it will throw the error which you have shown. % EXample ...

16 days ago | 1

| accepted

How to assign data to dynamic variable
c = 1:10 ; a = cell(length(c),1) ; for i = 1:length(c) a{i} = 2*[1:i] ; end celldisp(a) You can access cell a by...

16 days ago | 1

| accepted

Check dates if palindrome
t = datetime(2023,3,20) ; t.Format = 'Mddyy' ; if isPalindrome(char(t)) fprintf('%s is a Palindrome\n',char(t)) end ...

16 days ago | 0

matlab generated.stl file
https://in.mathworks.com/matlabcentral/fileexchange/4512-surf2stl

16 days ago | 0

Partial derivative with respect to x^2
syms x y z f= (x^5*y^3+ z^2*x^2+y*x) / (x^3*y+x*y) dfdx = diff(f,x) dfdx2 = diff(dfdx,x)

16 days ago | 0

How to to interpolate missing data (two peaks) on 3D graph on MATLAB?

16 days ago | 0

| accepted