Question

An elegant alternative to nested for loops for plotting simulations

Hi everyone, I am plotting a 3D simulation plot using the plot3 function. Here is the code: clear all; clc; close all;...

6 years ago | 1 answer | 0

Question

Average Windowing of Signal - noticeable delay as time increases

Hi everyone, I have a weird issue with the results of my code. What I am trying to do is calculate averages of a signal based on...

7 years ago | 1 answer | 0

Question

How to create 3D sine array?

My question is simple. I want to create a sine function that is 1:1:1000 in size. Here is the code I have so far: Fsam = ...

7 years ago | 2 answers | 0

Question

How to generate a randomized signal?

I am trying to generate something like this: http://i.imgur.com/zEFpMcb.png I want the baseline to be zero, but have rando...

7 years ago | 0 answers | 0

Question

How to generate a sine curve?

I want to generate a sine curve with a frequency of 1 Hz, amplitude of 0.2, and for a time of 15 seconds. I want the sampling ra...

7 years ago | 1 answer | 0

Answered

Problem generating a randomized signal

Here is an example of the signal I would like to create: http://i.imgur.com/zEFpMcb.png Here, I created three sinusoidal e...

Problem generating a randomized signal

Here is an example of the signal I would like to create: http://i.imgur.com/zEFpMcb.png Here, I created three sinusoidal e...

7 years ago | 0

Question

Problem generating a randomized signal

I want to create a zero baseline signal that extends for some time t. Throughout the duration of this signal, I would like to ha...

7 years ago | 1 answer | 0

Question

Error when trying to create legend with stem plot

I receive the following error when plotting a legend with my stem plot: ??? Error using ==> feval Value must be finite a...

7 years ago | 1 answer | 0

Question

Plotting three different datasets using plot3 function...how can I plot them each in a different color?

My question is very simple. I have the following code: plot3(Ch15,Ch13,Ch9) How can I plot Ch15, Ch13, and Ch9 each in a...

7 years ago | 2 answers | 0

Question

How to store an m x n array into another m x n array?

My problem is probably simple, but I'm not sure if my approach is correct or not. This is what I have: for A = 1:1:16 ...

7 years ago | 1 answer | 0

Question

Is there a way to remove the shading on the surf plot?

I have 15 sets of data. My X is time, my Y is each channel (1 - 15) of data, and my Z is the measure or actual value of the data...

7 years ago | 1 answer | 0

Question

Using for loop to load multiple mat files of different names

Hey guys, I have a number of .mat files that I would like to load and run specific commands on. This is the code I have so far, ...

7 years ago | 3 answers | 0

Question

ERROR: "Assignment has more non-singleton rhs dimensions than non-singleton subscripts"

Hello everyone, I am trying to debug an error in my code, but I am not sure what the problem is. I think it might be very simple...

7 years ago | 1 answer | 0

Answered

Plot issue (maybe using set and gca)

I have thought about it a little more. I think this has to do with my YTickLabel. Basically, I have to make sure that the label ...

Plot issue (maybe using set and gca)

I have thought about it a little more. I think this has to do with my YTickLabel. Basically, I have to make sure that the label ...

7 years ago | 0

Question

Plot issue (maybe using set and gca)

Hey guys, here is the code that I have: stem(Tim,Var1,'MarkerSize',0,'Color','k'); hold on; stem(Tim,Var2,'Marke...

7 years ago | 1 answer | 0

Question

plotting a vertical line in matlab?

Hey guys, I am trying to plot a vertical line in matlab. i need to be able to change its thickness and its color. I will be p...

8 years ago | 2 answers | 0

Question

Need help for saveas function for saving multiple figures

Hey guys, Need some help with the saveas function. How can I save multiple figures that are being generated by a for loop? Fo...

8 years ago | 2 answers | 0

Question

Converting regular numbers into "time"

Hi everyone, I have a question. If I define a vector like so: TStart = 0; TEnd = 1000; TStep = 1; Time = TStart:TSte...

8 years ago | 1 answer | 0

Question

xlsread error

Hey guys, I can't seem to figure out why I get this error while trying to run some code. It is related to the xlsread functio...

8 years ago | 7 answers | 0

Question

Need some help

Hey guys, I have some questions that might be relatively simple, but I am not sure how to get about this: I have a cell ar...

8 years ago | 2 answers | 0

Question

dir function and importing data

Hey guys, I have a folder called 'KR5' filled with 100 notepad files. Each notepad file has lots of data that I want. I want ...

8 years ago | 2 answers | 0

Question

"Or Statement" using if operator

Hello everyone, I have a very simple question....and I have been working on it for some time but cannot figure it out. This i...

8 years ago | 2 answers | 2

Answered

Searching for specific maxima

Hey guys, I am afraid that I still haven't found a solution to my problem :( Let me just explain what I am doing first to mak...

Searching for specific maxima

Hey guys, I am afraid that I still haven't found a solution to my problem :( Let me just explain what I am doing first to mak...

8 years ago | 0

Question

Searching for specific maxima

Hello Everyone, I have a specific question. Let us say I have some random data set that looks like this: 1 2 1 2 3 2 ...

8 years ago | 5 answers | 0

Answered

Reading Time/Dates from Excel

Yeah I have NO idea about the 3/10/2011. Anyways, I got it until the datestr part, and then I got some more beautiful errors: ...

Reading Time/Dates from Excel

Yeah I have NO idea about the 3/10/2011. Anyways, I got it until the datestr part, and then I got some more beautiful errors: ...

8 years ago | 0

Answered

Reading Time/Dates from Excel

Interesting, Elige. Check this out, here is my data in excel: Column A 2010-11-9 2010-11-9 ...

Reading Time/Dates from Excel

Interesting, Elige. Check this out, here is my data in excel: Column A 2010-11-9 2010-11-9 ...

8 years ago | 0

Answered

Reading Time/Dates from Excel

Based on this link: http://www.mathworks.com/support/solutions/en/data/1-7FVIEF/index.html?product=ML It seems that the ab...

Reading Time/Dates from Excel

Based on this link: http://www.mathworks.com/support/solutions/en/data/1-7FVIEF/index.html?product=ML It seems that the ab...

8 years ago | 0

Question

Reading Time/Dates from Excel

Hey guys, I have a problem using the xlsread function. In my excel spreadsheet, my dates are given in the following format: ...

8 years ago | 5 answers | 0

Question

Using gauspuls

Hello Everyone, Is anyone familiar with the gauspuls function? I am trying to create a combined signal. The first signal is a...

8 years ago | 1 answer | 0