Community Profile

photo

Kodavati Mahendra


Last seen: 5 månader ago Active since 2017

Followers: 0   Following: 0

Message

Audio Engineer @Sony

Statistics

All
  • First Review
  • Community Group Solver
  • ASEE Challenge Master
  • Knowledgeable Level 2
  • Thankful Level 1
  • Creator
  • CUP Challenge Master
  • Speed Demon
  • First Answer
  • Commenter
  • Promoter
  • Solver

View badges

Feeds

View by

Answered
I'm trying to create Random Music Player and could use help!
% clear all; close all; clc MusicList = dir('*.m4a'); while(1) r = randi(length(MusicList),1,1) [a, Fs] = audioread(...

ungefär 5 år ago | 0

| accepted

Answered
how can i avoid return to zero from my plot
Bitsnum = 11; dataIn = randi([0 1],1,Bitsnum); i = 1; count = 0; t = 0:.01:length(dataIn); for j =1:length(t) if t(j) ...

ungefär 5 år ago | 1

| accepted

Answered
Matlab Text file I/o
charnum = char_counter('simple.txt','a') function charnum = char_counter(a,b); f = fopen(a); c = textscan(f,'%s'); charnum...

ungefär 5 år ago | 0

Answered
Generate an array with random numbers from M to N using the command randi
function [R1, R2, c] = random_test(r, s, t) if length(r)==1 r(2) = r; r(1) = 1; end rng('default'); R1=randi([r(1)...

ungefär 5 år ago | 1

Answered
Display the input options for functions with multiple input arguments
<https://www.mathworks.com/matlabcentral/answers/338247-how-to-implement-function-hints-in-your-code> I think they did not ...

nästan 6 år ago | 1

| accepted

Answered
how can i plot different curves when both are variables ?
v= 5:2.5:40; m= 191:10:271; for i=1:length(m) KE(i,:) = 0.5*m(i).*v; end plot(m,KE); legend(string(v...

nästan 6 år ago | 0

Answered
Why there is no space after the equal sign? (fprintf)
fprintf('%s \n',strcat("s"," = ","1000",";")); output s = 1000;

nästan 6 år ago | 1

Answered
Generating a random matrix with range
May be something crude like this? x = rand(12,2); x(:,1) = 5*x(:,1); x(:,2) = 5+15*x(:,2) rand generates uniformly...

nästan 6 år ago | 0

| accepted

Answered
Why does patch crash matlab?
Is that so, it doesn't crash my system. Attached the code for reference %clear all; close all; clc load('xP.mat')...

nästan 6 år ago | 0

| accepted

Answered
How to make filename that message + date&time using [imwrite function].
filename = strcat(datestr(now,'yyyy-mm-dd HH-MM-SS-FFF'),'.png'); imwrite(red, filename); Solved? Problem was with the ...

nästan 6 år ago | 1

| accepted

Answered
Where can I find the posixtime() function for MacOSX R2018a?
syntax p = posixtime(t) t should be <https://www.mathworks.com/help/matlab/ref/datetime.html datetime> array, not an in...

nästan 6 år ago | 0

Answered
What part of my code do i change to print my triangle flipped?
n=input('Enter rows for left triangle\n'); for i=1:n for j=1:i x(i,j) = '*'; end end disp(fl...

nästan 6 år ago | 0

| accepted

Answered
V_n=R*T/P
Yo something is wrong with this line. T=285;2;325; or T=285:2:325; The following works for me, Code 1: R=0.086...

nästan 6 år ago | 0

| accepted

Answered
I want to find DFT of a input sequence. I have run the following code but not getting desired output. Is there any mistake? please help.
line 26, Y = abs(xk).^2; you can use the "fft" function in MATLAB, Lines 18-25 can be replaced with xk = fft(x...

nästan 6 år ago | 0

| accepted

Question


Fir2 alternatives matlab
Right now I am using Fir2 function to generate fir filter that has the same gain and phase response as the given frequency respo...

ungefär 6 år ago | 1 answer | 0

1

answer

Answered
selecting certain elements of an array
s = -100:100; A = find(s>0); s(max(A(1)-20,1):A(1)+20) |Lets say S is the array of 200 elements. Use fin...

mer än 6 år ago | 0