Community Profile

# KSSV

### INCOIS

6.958 total contributions since 2011

Professional Interests: Mathematical Computing

View details...

Contributions in
View by

FZERO requires at least two input arguments
You have to provide inputs to the function. Save those functions in a file, in a folder. al = give your value ; bt = give y...

27 minuti ago | 0

How to split the data inside the matrix correctly?
Try this loop....I quicky typed it..check thorughly. data = [0 0 2.53164556962025 0 5.06329113924051 0 ...

32 minuti ago | 0

I want to plot the below equation in matlab but i dont know how to plot
Let the range of (x,y) be from 0 to 1 . m = 100 ; n = 100 ; x = linspace(0,1,m) ; y = linspace(0,1,n) ; [X,Y] = meshgrid(...

circa un'ora ago | 0

Create a vector with binary values {0,1} with certain percentage of 0's and 1's
N = 10 ; % total numner of elements O = 6 ; % Number of 1 needed F = N-O ; % Number of 0 O = ones(1,O) ; F = zero...

circa 3 ore ago | 0

| accepted

saving images in loop
for i = 1: length(fwdposx) figure('color','w') drawfield(frateMaps{i},'jet',max(max(frateMaps{i}))); ...

circa 8 ore ago | 0

How I can show one plane of a 3D matrix double
To use imshow the input should be a matrix .....you may try imshow(squeeze(B))

circa 9 ore ago | 0

Conversion of a vector file into raster
Let x,y,z be your column data. xi = min(x):0.5:max(x) ; yi = min(y):0.5:max(y) ; [X,Y] = meshgrid(xi,yi) ; Z = griddata...

circa 20 ore ago | 0

| accepted

Help with Delaunay Triangulations plot
I suggest to use this package for Delaunay Triangulation. https://in.mathworks.com/matlabcentral/fileexchange/25555-mesh2d-del...

circa 20 ore ago | 0

In a randomly generated matrix how to find the position(row and column) of an element by using its value?
Your matrix has floating point numbers..you cannot get the value you want using like that. You should use: tol = 10^-5 ; % tole...

circa 20 ore ago | 0

Eliminate certain entries of cell array
If C is your cell array and FR has the indices of cells which are to be removed, use: C(FR) = []

circa 21 ore ago | 0

| accepted

change color scheme of a scatter plot
You should follow like this demo: n = 100 ; x = 1:n ; y = rand(size(x)) ; % divide based on values idx1 = y >=0 & y<0.25 ;...

circa 22 ore ago | 0

How can I convert this cell array into a matrix?
Use reshape after that. iwant = reshape(cell2mat(C),60,[])' ;

circa 22 ore ago | 0

| accepted

regarding plotTING DATA in matlab
% Random data for demo n = 100 ; x = 1:n ; y = rand(size(x)) ; % plot plot(x,y) lgd = ['ymax = ',num2str(max(y))] ; leg...

circa 22 ore ago | 0

How to run this code for 1000 times?
N = 1000 ; MSE = zeros(N,2) ; for i = 1:N %For C1 lambda1 = [60.21, 41.58, 9.11, 8.71, 3.83, 3.74, 18.06] ; r1 = po...

circa 22 ore ago | 0

| accepted

converting a string to a matrix

1 giorno ago | 0

| accepted

You should change the value of y as your are changing the indices. x=[1,2,3,4,5,6,7,8,9,10,11,12]; % x values y=[15,120,2...

1 giorno ago | 1

problem in solve command
% If you have two loops m = 10 ; % rows n = 5 ; % columns iwant = zeros(m,n) ; % initialization % loop start for i = 1...

1 giorno ago | 0

It looks like you have a data matrix of size 24X12 . Use mean to get the average. Read about the function mean. If A is your dat...

1 giorno ago | 0

| accepted

How to convert time domain to frequency domain using FFT
data = importdata("before test.txt") ; t = data(:,1) ; amp = data(:,2) ; dt = unique(diff(t)) ; % time step Fs = 1/dt ...

1 giorno ago | 0

| accepted

hello how do I write this function without getting an error saying "variable K has an incorrect value".
a=-3 ; b= 3; h = (b-a)/N; x=a:h:b; k =abs(x).*exp(-x.^2) ; K = sum(k*h);

1 giorno ago | 0

How can I distribute random points in some lines?
%% Striaght line L = rand(2,2) ; P1 = L(1,:) ; P2 = L(2,:) ; % Get slope and y intercept P = polyfit(L(:,1),L(:,2),1) ...

2 giorni ago | 0

| accepted

find points of intersection circle with line
clc; clear all ; C = [1.5 1.5] ; % center of cricle r = 1.5 ; % radius of circle % x = 0:1:3 ; y = 0:1:3 ; ...

2 giorni ago | 0

| accepted

Linear regression to a matrix
P = polyfit(X,Y,1)

2 giorni ago | 0

| accepted

How do I extract file names.

2 giorni ago | 0

| accepted

How can I plot the values of a vector in colors: 2d position plot plus color.

2 giorni ago | 0

| accepted

Eigenvalues of a large Matrix
clc; clear all ; clc;clear a=1.0; b=1.0; n=20; I1=eye(n); I2=eye(2); matdimension= (n-1); tempvector = 0:1:matdime...

2 giorni ago | 0

| accepted

How to write an elliptic function using for loop

2 giorni ago | 0

Converting a 3D matrix in 2D matrix by making a average
You can specify the dimension in mean. Read about it. iwant = mean(A,3)

2 giorni ago | 0

How to draw 3D plot in matlab with labels?
You can porceed something like this: A = rand(70,6) ; x = 1:70 ; y = ones(size(x)) ; figure hold on for i = 1:6 plot...

3 giorni ago | 0

| accepted