Answered

How to remove units from a plot?

You can try to save and re-plot the output of the graph, then use xlabel to solve your problem. [z,x,y]=lsim(G,sq_wave,t) plot...

How to remove units from a plot?

You can try to save and re-plot the output of the graph, then use xlabel to solve your problem. [z,x,y]=lsim(G,sq_wave,t) plot...

4 months ago | 0

| accepted

Question

Sendmail not working in a standalone App Designer application on MAC only

Hello, I've made an app designer app where users can save some information (generated in the app) and then e-mail an excel spre...

4 months ago | 0 answers | 0

Question

App Designer packaging standalone desktop app - MAC

Let me start out by restating that I'm on MATLAB 2020a on a MAC computer. I have an app that I've designed in MATLAB saved in ...

4 months ago | 0 answers | 0

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

5 months ago

Question

Change focus after tab selection in app designer

I'm workin in app designer, and have an app that has a tabgroup component with a corresponding selectionchanged callback functio...

5 months ago | 0 answers | 0

Question

sendmail works when I run my app but not when another user uses it in a packaged app

Hello, I made an app in app designer and part of the app asks the user to input their e-mail address and then the app sends the...

6 months ago | 1 answer | 0

Question

locked output files students can turn in

Hello, I'm wondering if I can get some input on a problem. I'm trying to save data generated in an app (made with AppDesigner)...

6 months ago | 1 answer | 0

Answered

How do I control the xticks if x is a long imported excel column (Time Format: HH:MM:SS)?

Try this out: Since I didn't have your variable class, I had to assume you're dealing with time-stamps here. This works for th...

How do I control the xticks if x is a long imported excel column (Time Format: HH:MM:SS)?

Try this out: Since I didn't have your variable class, I had to assume you're dealing with time-stamps here. This works for th...

6 months ago | 1

| accepted

Answered

How to select certain columns of a matrix only when the values in certain rows showing the the double of the value in a particular row of a column?

do this in two steps: 1) find the indices where the values > 2 and then 2) sum the columns - if all rows 1-3 and 5 are less than...

How to select certain columns of a matrix only when the values in certain rows showing the the double of the value in a particular row of a column?

do this in two steps: 1) find the indices where the values > 2 and then 2) sum the columns - if all rows 1-3 and 5 are less than...

7 months ago | 0

Answered

How do i multiply 2 increasing variables

Is this more whasdfat you were looking for? v0 = (10:1:20); theta = (30:1:40); for i= 1:length(v0) for j = 1:length(thet...

How do i multiply 2 increasing variables

Is this more whasdfat you were looking for? v0 = (10:1:20); theta = (30:1:40); for i= 1:length(v0) for j = 1:length(thet...

7 months ago | 0

| accepted

Answered

Plotting the average line of a graph of a column imported from an excel

Wha about this: t1 = datetime(2020,8,12,13,11,24); %start time t2 = datetime(2020,8,12,13,18,36); %end time time5 = t1:second...

Plotting the average line of a graph of a column imported from an excel

Wha about this: t1 = datetime(2020,8,12,13,11,24); %start time t2 = datetime(2020,8,12,13,18,36); %end time time5 = t1:second...

7 months ago | 1

Answered

Problem while plotting twice in a figure

Try this out: Since I didn't have your variable class, I had to assume you're dealing with time-stamps here. This works for th...

Problem while plotting twice in a figure

Try this out: Since I didn't have your variable class, I had to assume you're dealing with time-stamps here. This works for th...

7 months ago | 0

| accepted

Answered

How to run a code several times using a for loop

Something like this? Datay=rand(1,24) Noutput=rand(1,24) %Noutput: Matrix: 1X24 % The following produce must be performed f...

How to run a code several times using a for loop

Something like this? Datay=rand(1,24) Noutput=rand(1,24) %Noutput: Matrix: 1X24 % The following produce must be performed f...

7 months ago | 0

Answered

The scale of the x-axis (Format: HH:MM:SS)

try looking into the 'xtick' property to specify which x-ticks you want to show. it'll suppress the rest of them x=1:10; %demo ...

The scale of the x-axis (Format: HH:MM:SS)

try looking into the 'xtick' property to specify which x-ticks you want to show. it'll suppress the rest of them x=1:10; %demo ...

7 months ago | 0

| accepted

Answered

Save data from for-loop and their use

You just need to index your output and then reference the appropraite index for i=1:4 [C1(i,:),L1(i,:)]=wavedec(SatTrDatax_Nor...

Save data from for-loop and their use

You just need to index your output and then reference the appropraite index for i=1:4 [C1(i,:),L1(i,:)]=wavedec(SatTrDatax_Nor...

7 months ago | 0

| accepted

Answered

Bandstop starts at 2.7 dB instead of 0 dB. Why? Demo Code from a Matlab Book

If a filter is a perfect rectangular filter, then filtering begins at the cutoff frequency and goes to the desired attenuation/g...

Bandstop starts at 2.7 dB instead of 0 dB. Why? Demo Code from a Matlab Book

If a filter is a perfect rectangular filter, then filtering begins at the cutoff frequency and goes to the desired attenuation/g...

7 months ago | 0

Answered

How to make a new matrix out of the combination of 12 matrix

try concatenating them? Or do you want to add them across? You say "combination" do you mean an average or a sum? We need more i...

How to make a new matrix out of the combination of 12 matrix

try concatenating them? Or do you want to add them across? You say "combination" do you mean an average or a sum? We need more i...

7 months ago | 0

| accepted

Answered

simultaneous noise and pure tone

How your sounds currently are set up, they are concatenated to be added one onto the other. If you change your concatenation to ...

simultaneous noise and pure tone

How your sounds currently are set up, they are concatenated to be added one onto the other. If you change your concatenation to ...

7 months ago | 1

| accepted

Answered

Equation for Amplitude difference between two tones

The equation for dB is 10*log10(Incident_intensity/reference_intensity). When dealing with pressures (as we usually are in soun...

Equation for Amplitude difference between two tones

The equation for dB is 10*log10(Incident_intensity/reference_intensity). When dealing with pressures (as we usually are in soun...

7 months ago | 1

| accepted

Answered

generate signals with different SNR

Here's a solution! Hope it's helpful %setup fs=100000; noise_dur=3; sine_freq=10000; sine_dur=.1; t=0:1/fs:sine_dur-1/fs; ...

generate signals with different SNR

Here's a solution! Hope it's helpful %setup fs=100000; noise_dur=3; sine_freq=10000; sine_dur=.1; t=0:1/fs:sine_dur-1/fs; ...

7 months ago | 1

| accepted

Answered

Generating pure tone and noise

See here for an excellent solution to generating your noise from one of your previous questions: Generate noise You can use th...

Generating pure tone and noise

See here for an excellent solution to generating your noise from one of your previous questions: Generate noise You can use th...

7 months ago | 1

| accepted

Answered

How to fix the upper asymptote in sigmoid?

Your call to mysigmoid has 6 input arguments (b,c,x,xon,xrated,a; the last of which is your "a"), but your defined function onl...

How to fix the upper asymptote in sigmoid?

Your call to mysigmoid has 6 input arguments (b,c,x,xon,xrated,a; the last of which is your "a"), but your defined function onl...

7 months ago | 1

| accepted

Answered

What is missing from MATLAB #2 - the next decade edition

facet_wrap or facet_grid (or general ggplot2 functionality) version of subplots, or some altered, simpler customizability for su...

What is missing from MATLAB #2 - the next decade edition

facet_wrap or facet_grid (or general ggplot2 functionality) version of subplots, or some altered, simpler customizability for su...

7 months ago | 1

Answered

Harmonics of Fourier series

Question asked/answered elsewhere https://www.mathworks.com/matlabcentral/answers/491350-harmonics-of-fourier-series?s_tid=answ...

Harmonics of Fourier series

Question asked/answered elsewhere https://www.mathworks.com/matlabcentral/answers/491350-harmonics-of-fourier-series?s_tid=answ...

7 months ago | 1

Answered

FOR LOOP NOT WORKING

EXANGLES = -34:1:184; EYANGLES = deg2rad(EXANGLES); EVSUB1 = 90; FT126 = 126; for i = 1:length(EXANGLES) if EXANGLES(...

FOR LOOP NOT WORKING

EXANGLES = -34:1:184; EYANGLES = deg2rad(EXANGLES); EVSUB1 = 90; FT126 = 126; for i = 1:length(EXANGLES) if EXANGLES(...

7 months ago | 1

Answered

rise/fall time

%set-up parameters fs=44100; %CD quality - also conveniently divisible by 30 and 25 stim_dur=.025; %duration in seconds ISI_d...

rise/fall time

%set-up parameters fs=44100; %CD quality - also conveniently divisible by 30 and 25 stim_dur=.025; %duration in seconds ISI_d...

7 months ago | 1

| accepted

Question

add audio to a static image

I have an audio signal and a picture. I'm trying to output a video of the static image for the duration of the audio that's play...

8 months ago | 1 answer | 0

Question

MATLAB 2019a ginput spectrogram issue

I recently updated to 2019a from 2018a and my code no longer works. I get the error below from the following code: y = randn(10...

2 years ago | 1 answer | 0

Question

Why are there minor differences in the creation of two time series for signal generation?

I'm making a 1000 Hz tone for presentation. MATLAB recommends creating the time series (t) this way: amp=.01; %amplitude f...

2 years ago | 1 answer | 0