photo

SHIVAM KUMAR


Last seen: alrededor de 3 años hace Con actividad desde 2020

Followers: 0   Following: 0

Estadística

All
  • 3 Month Streak
  • Knowledgeable Level 2
  • First Answer
  • Solver

Ver insignias

Feeds

Ver por

Resuelto


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

casi 4 años hace

Respondida
How to change time intervals to time elapsed
You can do this simply using a loop a=[1 2 1 1 3] sum=0; result=zeros(1,length(a)); for i=1:length(a) sum=sum+a(i); ...

casi 4 años hace | 0

| aceptada

Respondida
Plotting multiple points on a graph using for loop
Final version clc clear all close all fn= @(xi,omega,t) (1-((exp(-xi*omega*t))/sqrt(1-xi^2)).*sin(omega*sqrt(1-xi^2)*t+acos(...

casi 4 años hace | 0

| aceptada

Respondida
How to create a function as sum of some sine functions?
This can be done like y=0; %necessary to add the other things for i=1:length(a) y=y+a(i).*sind(2*pi*f(i).*t+theta(i)); e...

casi 4 años hace | 1

Respondida
How can I use a loop to input different arrays into the same equation so I do not have to repeat code?
You can make A as a vector A=[[1 2 3 4];[5 6 7 8];[9 10 11 12]]; A=A*3; To use A or B or C we can use A(1,:) %To use as A A...

casi 4 años hace | 0

Respondida
How can I use a loop to input different arrays into the same equation so I do not have to repeat code?
Don't know why you want to use a loop for that . for i=1:3 Arr[i,:]=Arr[i,:]*3; %That's only useful if you have a vector. ...

casi 4 años hace | 0

Respondida
Delete rows from an array
Your code will work like this if used on 1 D array . CEC((2+6):end) = [0]; If you are using that your array shall be 52560X525...

casi 4 años hace | 0

Respondida
2 Variable increment in one "for Loop'
Or use j= 2*i for i=1:9 %the end term will also come so use 9 here. j=2*i; %function end

casi 4 años hace | 0

Respondida
Remove duplicates only for specific values
After using that array of elements to value_to_remove . A = [1,2,2,3,3,4,5,5,5,6]; value_to_remove = [2,3]; is_repeting=zeros...

casi 4 años hace | 0

Respondida
Function Matlab graph help
This shall be done in a script or even in command window. x=-2:0.1:2 ; %makes an array for x with values -2 to 2 with increment...

casi 4 años hace | 0

| aceptada

Respondida
Is there any command by which we can plot the constellation points with arrows in between??
Maybe try the grid on command it will generate a graph sheet so easier to compare distances. scatterplot(qam_modulated_data) g...

casi 4 años hace | 0

| aceptada

Respondida
Index exceeds the number of array elements (1).
I run it with adding 1 more dot before division . this runs and plots the graph though I am not sure if everything is working fi...

casi 4 años hace | 0

| aceptada

Respondida
Index exceeds the number of array elements (1).
What I guessed it you didn't use the loop properly clear all; Rj=(1:1:30); Pj= 1; %Power in Watts Gj= 1; %Gain of antenna of...

casi 4 años hace | 0

Respondida
Plot a rectangular Pulse from -1 to 1
% the syntax for taking input t eg:[-2 -1 1 2] =>t1=[-2,-1 ], t2=[-1 1], t3=[1 2]. %I was sleepy earlier so didn't run the co...

casi 4 años hace | 0

Respondida
Change the data from table format to double format
%Just import the table in matlab and it shall come as double . %Later you can select the required columns using trainingdata(:...

casi 4 años hace | 0

Resuelto


Create a code for XNOR
Given two inputs, output XNOR of those two

casi 4 años hace