Community Profile # KSSV

Last seen: Today 2011 以来アクティブ

Professional Interests: Mathematical Computing

#### Statistics

All
• • • • • • • • • • • • バッジを表示

#### Content Feed

How to strrep only certain strings
x = {'e-.00085';'8.5e-4'}; y = strrep(x,'e','')

Sorting cell array based on distance
Read about knnsearch. This will give you the nearest points from a set points for a given point. This will work for you.

| 採用済み

How to get a square matrix out of a augmented matrix?
n = 5 ; A = rand(n) ; % square matrix B = eye(size(A)) ; % Identity matrix Ag = [A B] ; % augemented matrix

How to find yield point and plot strain hardening part?

| 採用済み

How can I get the sea ice concentration data corresponding to the latitude and longitude from the geotiff file?
filename = 'N_20180101_concentration_v3.0.tif' ; [A,R] = readgeoraster(filename) ; % If not try geotiffread [m,n] = size(...

| 採用済み

Movie function with subplots: error "Unrecognized method, property..."
Try replacing the line: [h, w, p] = size(f(1).cdata); % use 1st frame to get dimensions with [h, w, p] = size(M(1).cdata);

| 採用済み

Plot of a Time Variable
As you have data every second, you need to do hourly mean to get 24 values. You have two options. Reshape the data into 24*m; ...

How can I specify maximum and minimum of a parameter inside a loop
minC = 0; maxC = 0; for i=1:50 A(i)=f(i); B(i)=f(A); C(i)=F(B); if C > maxC maxC = C ; ...

1日 前 | 0

plot a table of two columns
If T is your table. To plot use: plot(T.(1),T.(2))

1日 前 | 1

| 採用済み

Write function that returns true if (inputmatrix > 0)
A = rand(5) ; P = A > 0.5

1日 前 | 0

Why isn't the plot showing up? (new on programing)
x = linspace(-10,10,100); y = @(x) (x.^2 + x.^2 + 3.*x)./(x.^2 + 4.*x + 5); % element by elememnt division plot(x,y(x),'r','L...

1日 前 | 0

| 採用済み

How to get the centerline of a binary region
You can get the indices of white pixels using find and to the data you can try fitting a line or quadratic equation using polyfi...

1日 前 | 3

Transforming 4 sets of 1x4 matrix into a 4x4 matrix
zetaliq=zeros(4); for j=1:4 zetaliq(j,:)=(pi/6).*rholiq.*(X1.*m1.*d1^(j-1)+X2.*m2.*d2^(j-1)) ; end zetaliq

1日 前 | 0

| 採用済み

Grouping data into bins and then plotting them
You can calculate the every three hours mean using the fuction retime. Read about it. To see the variation of every hours, stria...

1日 前 | 0

| 採用済み

How to delete some of anonymous variables randomly?
Multiply each variable with a constant array, and assign this contant array with 0 and 1. See to it that, randomly only three 1'...

1日 前 | 0

Array indices must be positive integers or logical values.
%Euler Method %parameters g=9.81; rho=1.2; s=0.00011; m=0.023; Cd=0.9; %Initial Condition V0=0; V=zeros([],1); %I...

2日 前 | 1

| 採用済み

how can I find the maximum value of a parameter running within a loop
maxC = 0 ; for i=1:100 A=f(i) ; B=f(A,i) ; C=f(B,i) ; if C > maxC maxC = C ; Amax = A ;...

2日 前 | 0

| 採用済み

make a matrix out of list
Read about importdata. You can import the data into MATLAB, the data will be a cell array. S = importdata('myfile.txt') ; cel...

3日 前 | 0

How could I write in a vector something in a position different to a given one?
v = [1,2,3,4,5]; idx = 3; iwant = NaN(size(v)) ; iwant(idx) = v(idx)

3日 前 | 1

How to store data when a string condition of another column is met?

3日 前 | 0

Finding coefficients from 4 degree polynomial
Read about polyfit. This will help you to fit the required degree polynomial and also gives you the coefficients. Also have a lo...

4日 前 | 0

black line frame around scatter3
You can draw lines using line. Read about it. Also try box on.

4日 前 | 0

What is the difference between [v' 1] and [v', 1]?
v = rand(3,1) ; [v' 1] [v',1] That is nothing but vector v is increased by one element at the end and the value is 1.

4日 前 | 0

| 採用済み

Split the graph based on a specific value
Let (x,y) be your data. idx = knnsearch(y,mean(y)) ; % this will give index in y which is close to mean(y) % plot plot(x(1:...

4日 前 | 0

Plot Modes of a cylinder in 3D
Have a look on this: https://in.mathworks.com/matlabcentral/fileexchange/34143-meshing-thin-shells-using-four-noded-elements?s_t...

5日 前 | 1

| 採用済み

Error using plot Data must be numeric, datetime, duration or an array convertible to double.
Variable phi used in the plot is a symbolic variable. 1/3 - (310775629405771*exp(t*4i))/576460752303423488 You cannot plot tha...

5日 前 | 0

| 採用済み

vpa is not outputing enough digits
It seems a is a rational number so there are no digits to display else from zeros. Where as pi is a irrational number, so you ha...

5日 前 | 0

Draw the ezplot for the function 𝑥^ 2 + 6𝑥 + 55
It is very striaght forward and very easy to plot. Just read the documentation. It got example problem with which you can learn ...

5日 前 | 0

How plot 4D data?
x = 0.1:0.01:0.19; y = 0.1:0.01:0.19; z = 0.1:0.01:0.19; [x,y,z] = meshgrid(x,y,z) ; f = x.*exp(x.^2 + y.^2 + z.^2); fig...

5日 前 | 3

| 採用済み

how to rectify the below error..
You need to have the function cheb.m, which you can download from: https://people.maths.ox.ac.uk/trefethen/cheb.m and then yo...

6日 前 | 0