Community Profile # KSSV

Last seen: Today 2011 이후 활성

Professional Interests: Mathematical Computing

#### Statistics

All
• • • • • • • • • • • • 배지보기

#### Content Feed

보기 기준

답변 있음
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...

약 11시간 전 | 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 ;...

약 17시간 전 | 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...

약 19시간 전 | 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)

1일 전 | 1

답변 있음
How to store data when a string condition of another column is met?

1일 전 | 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...

2일 전 | 0

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

2일 전 | 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.

2일 전 | 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:...

2일 전 | 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...

3일 전 | 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...

3일 전 | 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...

3일 전 | 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 ...

3일 전 | 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...

3일 전 | 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...

4일 전 | 0

답변 있음
Move to next and previous iteration in for loop on button press
%Right for i = 1:10 fprintf('%d\n',i) end % Left for i = 10:-1:1 fprintf('%d\n',i) end

4일 전 | 0

답변 있음
How to plot a function with 3 independent variables
f = @(x,y,z) 0.95*x+0.73*y+0.62*z-130.05 ; x = linspace(0,100) ; y = linspace(0,100) ; z = linspace(0,100) ; [X,Y,Z] = me...

4일 전 | 0

| 수락됨

답변 있음
NaT in Datetime Import Data

4일 전 | 0

답변 있음
How do I copy column datas from multiple .txt file to new file?
You can read your text file using the below code snippet. filename = 'ab20140102.txt' ; fid = fopen(filename,'r'); data = tex...

4일 전 | 0

답변 있음
Why is my plot not working in my for loop?
This line: theta2=linspace(0,2*pi,2*pi/360); gives you theta2 as an empty matrix, as you have used this for loop indexing, you...

4일 전 | 0

답변 있음
how to get Zm
syms Km Zm Ym [2 2] syms Z R S L Z=R+S*L ; Km=[1 Z; 0 1] ; Zm = sym('Zm',[2 2]) ; % Relation between Km and Zm Zm(1,1)=(K...

5일 전 | 0

답변 있음
How to access a variable stored in group
file1 = 'tropomi1.nc' ; file2 = 'tropomi2.nc' ; x1 = ncread(file1,'/PRODUCT/longitude'); y1 = ncread(file1,'/PRODUCT/latitude...

5일 전 | 0

답변 있음
bracket for p value

5일 전 | 0

답변 있음
i need code for small project
t=0 :pi/2:pi:3*pi/2:2*pi:5*pi/2:3*pi/7*pi/2:4*pi ; x1 = sin(t) ; x2 = sin(2*t) ; plot(t,x1,'r',t,x2,'b') legend('sin(t)'...

5일 전 | 0

답변 있음
How do I draw a horizontal line at a fixed height on the y axis and print the coordinates of the points I intercept?
th = linspace(0,2*pi) ; x = sin(th) ; plot(th,x) hold on line([th(1) th(end)],[0.4 0.4]) For finding intersections use...

5일 전 | 0

답변 있음
How do I change color diffusion in jet colormap?
%% Example data x = (2:-0.1:0); data = sin(x); %% Shift the values towards the center, so you get a circle instead of an annu...

5일 전 | 2

답변 있음
How do i define a variable as a function?
syms theta(t) f=cos(theta(t)); diff(f,t)

6일 전 | 0

답변 있음
Search a given row array in a matrix and get position
A=[0 0 0 0 0 0 0 0 0 178 0 0 0 0 0; 1 2 5 3 2 4 178 5 6 2 2 2 2 2 2; 0 2 178 178 178 178 178 178 178 178 178 0 2 3 2]; ch = o...

6일 전 | 0

| 수락됨

답변 있음
Converting a matrix to string
X = rand(3,3); Y = rand(3,3); Z = rand(3,3); figure plot(X,Y,'.') text(X(:),Y(:),num2str(Z(:)))

6일 전 | 0

| 수락됨

답변 있음
How to rearrange a column by a specific order?
How about using sort? s = [{'Done' } {'verify' } {'Done' } {'backlog' } {'verify' } {'verify' }] ; s = sort(s) ...

6일 전 | 0