Community Profile KSSV

Last seen: Today Active since 2011

Professional Interests: Mathematical Computing

Statistics

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

View by

Trying to plot different graphs for different values on the same figure
% Part B clc; clear all; close all; A = 2 ; t1 = 0.1 ; delta_h = 0 ; h = 0.1 ; z = 2 ; Kc = 1:1:5 ; N = length(Kc) ; ...

23 hours ago | 1

| accepted

How to iterate matrix multiple times?
La = [ -5.2622 3.2610 1.0999 0 2.0590 0 0 0 0 1.0999 -2.4128 0 -0.1...

24 hours ago | 1

| accepted

Plot function not working
It is working fine. Copy and run like shown below: %to generate all different waveforms clc; a=5;b=6;c=7;d=8; t=0:0.01:1;...

1 day ago | 0

The figure in my code does not appear
Also you can save them into an array and plot after the loop: A = 2 ; Kc = 1 ; t1 = 0.1 ; delta_h = 0 ; h = 0.1 ; z = 2 ; ...

1 day ago | 1

The figure in my code does not appear
USe marker. As you are plottint point by point. clc; close ;clear all A = 2 ; Kc = 1 ; t1 = 0.1 ; delta_h = 0 ; h = 0.1...

1 day ago | 0

| accepted

how to discretize the 3-D surface into individual points in MATLAB

1 day ago | 0

| accepted

how to do pcolor plots from 3d data?

1 day ago | 0

ASSIGN FINE MESH VALUES TO A NEW COARSER MESH
It depends on how your mesh is. Is unstructured or structured. If structured mesh you can use interp2 or griddata. If it is unst...

1 day ago | 0

Missing value for predictor in Classification Learner App
Either you can remove those missing values or fill the missing values using is the function fillmissing. Read about fillmissing....

2 days ago | 0

numerical array is being saved as string

3 days ago | 0

Performing opposite of repelem()

3 days ago | 1

| accepted

A very strange problem
f='@(D0,D1,dt)[(-D0)*dt^0.5+(-D0*D1)*dt^1.5/2;1/2*(-1+(1)+(2*D1+2*D0^2)*dt/2)]'; f=vectorize(f); f=str2func(f); D0=1;D1=1;dt=...

3 days ago | 1

MatLab single precision epsilon versus double precision epsilon
For single precision epsilon is: 2^-23 For double precision epslon is: 2^-52

3 days ago | 0

What does ix=ismember(vars,["state","source"])| contains(vars,["lat", "lon", "timestamp", "damage", "event"]); do?
idx1=ismember(vars,["state","source"]) ; % gives logical indexing where state, source are presnt in vars idx2 = contains(var...

4 days ago | 0

| accepted

How can I create a set of points that follows the behavior of a given set of points?
That is pretty simple right....To whatever z = 14 points are there i.e. (x,y) simple replace z values with z = 15. And out of th...

4 days ago | 0

Creation of circles of x radius in a matrix
% Make grid [X,Y] = meshgrid(1:10) ; % Make random radii for circle R = randi(5,size(X))/10 ; % Make circle coordinates ...

4 days ago | 0

| accepted

If I have a 2000 x 130 matrix, how do I convert it to a 500 x 130 matrix by adding all four rows together by using Matlab loop
A = rand(2000,130) ; [r,c] = size(A); nlay = r/4; B = permute(reshape(A',[c,r/nlay,nlay]),[2,1,3]); iwant = reshape(sum...

5 days ago | 1

Include legends based on column names in for loop
id = (1:10)' ; x = rand(10,1) ; y = rand(10,1) ; z = rand(10,1) ; T = table(id,x,y,z) figure hold on for i = 2:4 ...

5 days ago | 0

| accepted

how to plot specific column from a matrix
A = rand(100,4) ; plot(A(:,1),A(:,4)) % plot 1 column w.r.t. 4 column If this is not working. Show us the full error or tel...

5 days ago | 0

Search for a string within a string
Read about the function strfind. str = 'Need to search for a specific string inside a longer string and return the string and ...

5 days ago | 0

how to plot graph using multiple variable
theta = linspace(10,80)*pi/180; da=1e-9:3e-7; na = [1.30 1.31 1.32 ] ; P = zeros(length(na),length(theta)) ; for i = 1:l...

5 days ago | 0

| accepted

How can I save all slices from 3D image?
for i=1:45 slice=Myimage(:,:,i); pcolor(slice) ; shading interp fname = ['slice_',num2str(i),'.png'] ; save...

5 days ago | 1

How to create a binary mask

5 days ago | 0

how to simplify symbolic expressions
pretty(vpa(b1(3,3),8)) It looks that equation has lot of numbers and fractional powers of EI. FEw numbers are very small and fe...

5 days ago | 0

generate a matrix with numbers between [0,1]
value = 'Insert a value for n: '; x = input(value); matrix = rand(x,x); matrix2 = matrix ; % you need to create matrix2 m...

6 days ago | 0

Find all IDs in pointLocation for point located on boundary of polygon.

6 days ago | 0

how to add a row to a matrix?
Note that you want to append zero before to the first element of A. What you did is replace the first element of A with 0. A=[...

6 days ago | 0

| accepted

How can we order nodes within a cluster based on the distance between nodes and cluster head with smaller index values to the nearer nodes.
You can get the nearest points to a given point using knnsearch. Read about the function.

6 days ago | 0

Find the area of the region bounded by the curves y = x^2 , x = y - 2 in the first quadrant. Please help me guys, please
syms x y1 = x*x; y2 = x + 2; % GEt the intersection point of two curves xi = solve(y1-y2); yi(1) = double(subs(y1,xi(1)));...

6 days ago | 0

| accepted