Community Profile

photo

Kartikay Sapra


Last seen: 3 years ago Active since 2021

Statistics

  • Knowledgeable Level 1
  • First Answer

View badges

Content Feed

View by

Answered
could you please tell me how to minimize the comman window as much i can
writetable(table,"output.xlsx") % OR writetable(table,"output.csv") % OR writetable(table,"output.txt") You can store the o...

3 years ago | 0

Answered
How to plot an array effectively?
plot(t, X1) Assuming X1(i) is the value at t(i), we first specify the value for x-axis and then the value for y-axis

3 years ago | 0

| accepted

Answered
how to arrange x-coordinate w.r.t y-coordinates?
A = [1 2; 3 4; 5 6] map = containers.Map [row col] = size(A) for i = 1:row A(i,1) map(int2str(A(i,1))) = int2...

3 years ago | 0

Answered
Creating a matrix with rows and collumns
subplots = [1 2; 3 4; 5 6] [rows cols] = size(subplots); test = zeros([rows*(rows+1)/2 cols]); k = 1; for i = 1:rows ...

3 years ago | 0

Answered
How can I separate the data into two groups.?
data = [-1 -2 -1; 0 -1 0; 0 0 0] data(data==0) = NaN [maxVal ids] = max(data) data(isnan(data))=0 part_a = data(1:end,ids=...

3 years ago | 0

Answered
How do I create a matrix C that is comprised of values from matrices A and B, using a nested for loop?
C = zeros(4) A = reshape(1:16, 4, 4) B = reshape(17:32, 4, 4) C(1:2, 1:2) = A(1:2,1:2) + B(1:2,1:2); C(3:4, 3:4) = A(3:4,3...

3 years ago | 0

Answered
Sum of even numbers
function s = even_sum(n) if n <= 0 s = 0 else if n~=floor(n) s = NaN else s = sum(2:2:...

3 years ago | 0

Answered
how to use/load the separate voice i labeled ?(new learner)
You can go through the audioread documentation, see here https://in.mathworks.com/help/matlab/ref/audioread.html. [y, Fs] = aud...

3 years ago | 0

Answered
How to create a Matrix
You can use: A = reshape(22:-1:11, 4, 3)

3 years ago | 0

Answered
I need code to sketch circle with interfaces (interior arcs)
function plotcircle(r,x,y) plot(r*exp(j*(0:pi/100:2*pi))+x+j*y); end Use this method to plot the main circle with radius ...

3 years ago | 0