Projects Q A, Guidance for your projects : code for generating triangular waveform in matlab
http://projectsqa.com
This is an XML content feed of; Projects Q A, Guidance for your projects : MATLAB Projects : code for generating triangular waveform in matlabCopyright (c) projectsqa.com - All Rights Reserved.Wed, 21 Feb 2018 09:33:12 +0000Tue, 06 Feb 2018 18:25:19 +0000http://blogs.law.harvard.edu/tech/rssprojectsqa.com360projectsqa.com/RSS_post_feed.asp?TID=2488Projects Q A, Guidance for your projectshttp://projectsqa.com/forum_images/projectsqalogo.gif
http://projectsqa.com
code for generating triangular waveform in matlab : i got it..........
it is
y=A*sawtooth(t,o.5)
this...
http://projectsqa.com/forum_posts.asp?TID=2488&PID=4213#4213
Author: Krishna_Sridhar Subject: 2488 Posted: 06-Feb-2018 at 6:25pm

i got it..........
it is
y=A*sawtooth(t,o.5)
this is to plot triangular wave ]]>
Tue, 06 Feb 2018 18:25:19 +0000http://projectsqa.com/forum_posts.asp?TID=2488&PID=4213#4213code for generating triangular waveform in matlab : I think you're talking about...
http://projectsqa.com/forum_posts.asp?TID=2488&PID=4212#4212
Author: siva Subject: 2488 Posted: 06-Feb-2018 at 6:24pm

I think you're talking about the function fs_tri(N) it is a function that accept number of harmonics, n as input and produce the Fourier series waveform up to and included n harmonics, it can be implemented as follow:

function fs_tri(N)
x = linspace(0, 10);
f = ones(1,100)*pi;
for i = 1:N
b = -2/i;
f = f + b*sin(i*x);
end
plot(x,f)]]>
Tue, 06 Feb 2018 18:24:52 +0000http://projectsqa.com/forum_posts.asp?TID=2488&PID=4212#4212code for generating triangular waveform in matlab : no no..............
i think u...
http://projectsqa.com/forum_posts.asp?TID=2488&PID=4211#4211
Author: Krishna_Sridhar Subject: 2488 Posted: 06-Feb-2018 at 6:23pm

no no..............
i think u don't get my question.....
i just want to ask that.....
as we write for sawtooth wave
y=A*sawtooth(t)
so i just asking about the notation of triangular wave]]>
Tue, 06 Feb 2018 18:23:31 +0000http://projectsqa.com/forum_posts.asp?TID=2488&PID=4211#4211code for generating triangular waveform in matlab : Do you want an array of increasing...
http://projectsqa.com/forum_posts.asp?TID=2488&PID=4210#4210
Author: PrashanthS Subject: 2488 Posted: 06-Feb-2018 at 6:22pm

Do you want an array of increasing and decreasing numbers or do you want an electrical signal coming from loudspeaker or the line out jack?

What is the amplitude, period and sampling frequency?

To generate an array with the numbers from 0 to 9, simply write:

x = [0:9]

To generate an array with the numbers from 10 to 1:

y = [10:-1:1]

To concatenate the two arrays:

z = [ x y]

You can write this all in one line:

z = [ [0:9] [10:-1:1] ]

As you can see, this is a lot easier than C.
]]>
Tue, 06 Feb 2018 18:22:10 +0000http://projectsqa.com/forum_posts.asp?TID=2488&PID=4210#4210code for generating triangular waveform in matlab : A triangular wave is simply alternating...
http://projectsqa.com/forum_posts.asp?TID=2488&PID=4209#4209
Author: LokeshNash Subject: 2488 Posted: 06-Feb-2018 at 6:20pm

A triangular wave is simply alternating lines with positive and negative slopes between upper and lower limits.

I haven't programmed matlab in awhile, but I envision nested while loops, one overall loop for the number of periods of the wave, one for the "up" line, and one for the "down" line...something like this:

I'm not saying that this will compile, but it's probably one way to do it.
]]>
Tue, 06 Feb 2018 18:20:44 +0000http://projectsqa.com/forum_posts.asp?TID=2488&PID=4209#4209code for generating triangular waveform in matlab : Hello!
Kindly tell me that what...
http://projectsqa.com/forum_posts.asp?TID=2488&PID=4208#4208
Author: siva Subject: 2488 Posted: 06-Feb-2018 at 6:17pm

Hello!
Kindly tell me that what is the code for generating a triangular waveform in matlab. . .?
i am new in matlab............
]]>
Tue, 06 Feb 2018 18:17:50 +0000http://projectsqa.com/forum_posts.asp?TID=2488&PID=4208#4208