Answered

DOWNSAMPLING SEÑAL DE AUDIO

a medida que cambia su frecuencia de muestreo, alimente la nueva frecuencia de muestreo para que suene y no la anterior clear...

DOWNSAMPLING SEÑAL DE AUDIO

a medida que cambia su frecuencia de muestreo, alimente la nueva frecuencia de muestreo para que suene y no la anterior clear...

environ une heure ago | 0

Answered

Help to Improve this short code (create a rect given initial point, final point and slope)

function[y] = LineFuntion(pts,m,Pi,Pf) if abs(m) == Inf % vertical line y = linspace(P...

Help to Improve this short code (create a rect given initial point, final point and slope)

function[y] = LineFuntion(pts,m,Pi,Pf) if abs(m) == Inf % vertical line y = linspace(P...

4 jours ago | 1

| accepted

Answered

How to assign numeric value to radio button in gui?

https://www.mathworks.com/help/matlab/ref/matlab.ui.control.radiobutton-properties.html I usually use UserData but you can us...

How to assign numeric value to radio button in gui?

https://www.mathworks.com/help/matlab/ref/matlab.ui.control.radiobutton-properties.html I usually use UserData but you can us...

4 jours ago | 0

| accepted

Answered

How can I remove the excess object detected? Often my code finds more mouths and I want take only one, the one which is belower. Thanks.

Input the face to mouth and nose detection and not the complete image play with threshold value see how picutre on bottom l...

How can I remove the excess object detected? Often my code finds more mouths and I want take only one, the one which is belower. Thanks.

Input the face to mouth and nose detection and not the complete image play with threshold value see how picutre on bottom l...

6 jours ago | 0

| accepted

Answered

How to pull value of table for char array?

Because t(1,'Domain') is of type table. You need to convert that table output to string or cell. To do that type on Command wind...

How to pull value of table for char array?

Because t(1,'Domain') is of type table. You need to convert that table output to string or cell. To do that type on Command wind...

13 jours ago | 0

Answered

Different line style and color in cell

you can use for loop or you can use cellfun. data= {rand(1,15) rand(1,15) rand(1,15) rand(1,15)}; line_style = {'-','--',':','...

Different line style and color in cell

you can use for loop or you can use cellfun. data= {rand(1,15) rand(1,15) rand(1,15) rand(1,15)}; line_style = {'-','--',':','...

15 jours ago | 0

Answered

copyobj for combining multiple plots - Parent and child input vectors must be equal length

Because figure 2 has multiple axes findobj(2,'type','axes') 4×1 Axes array: Axes Axes Axes Axes and you are ass...

copyobj for combining multiple plots - Parent and child input vectors must be equal length

Because figure 2 has multiple axes findobj(2,'type','axes') 4×1 Axes array: Axes Axes Axes Axes and you are ass...

16 jours ago | 0

| accepted

Answered

How to code when a variable has been vectorized and has different values in a for loop

You need to define either 1 value (1x1) for d or 7 values (1x7 i.e.equal to you for loop iteration) and index it with each itera...

How to code when a variable has been vectorized and has different values in a for loop

You need to define either 1 value (1x1) for d or 7 values (1x7 i.e.equal to you for loop iteration) and index it with each itera...

16 jours ago | 0

| accepted

Answered

I need to plot three Graphs for this Code in one go!

dataBase=cell(3,3); f = figure for n=1:3 t = input('Enter an integer between 3 and 6: '); while (t<3 || t>6) t = ...

I need to plot three Graphs for this Code in one go!

dataBase=cell(3,3); f = figure for n=1:3 t = input('Enter an integer between 3 and 6: '); while (t<3 || t>6) t = ...

17 jours ago | 0

| accepted

Answered

Files getting moved to another folder while renaming using regexp and movefile command

Because all the file names are not changing in your code i.e. why it is giving error clear; clc; folder_name =...

Files getting moved to another folder while renaming using regexp and movefile command

Because all the file names are not changing in your code i.e. why it is giving error clear; clc; folder_name =...

17 jours ago | 0

| accepted

Answered

I attempted to add all whole numbers 1 to 100 by using a loop and displaying the result, but it did not work. I was wondering why it didn't work and what would work instead/ how to improve my code?

While loop is used for that purpose (in which you specify stopping condition) while i <100 i =(i+1); disp(i) end...

I attempted to add all whole numbers 1 to 100 by using a loop and displaying the result, but it did not work. I was wondering why it didn't work and what would work instead/ how to improve my code?

While loop is used for that purpose (in which you specify stopping condition) while i <100 i =(i+1); disp(i) end...

18 jours ago | 0

Answered

How to change a column vector into a square a matrix?

Here is one with for loop function P = Using_for_loop(p,n) P = zeros(n); [I,J]=ind2sub(size(P),1:numel(P)); for ii =1...

How to change a column vector into a square a matrix?

Here is one with for loop function P = Using_for_loop(p,n) P = zeros(n); [I,J]=ind2sub(size(P),1:numel(P)); for ii =1...

18 jours ago | 0

Answered

How to eliminate points with highest intensity in a color plot?

Instead of removing those points you can change Clim property of imagesc For example C = rand(40,40); C(5,5) = 25; figure,im...

How to eliminate points with highest intensity in a color plot?

Instead of removing those points you can change Clim property of imagesc For example C = rand(40,40); C(5,5) = 25; figure,im...

18 jours ago | 0

Answered

Shading area under the curve

Use area for that purpose by selecting the specific range and use area x = 0:2500;bw =700;lcom = 611; Lvy = (611 <= x)&(vgrf2...

Shading area under the curve

Use area for that purpose by selecting the specific range and use area x = 0:2500;bw =700;lcom = 611; Lvy = (611 <= x)&(vgrf2...

18 jours ago | 0

| accepted

Answered

Extracting 2 peak values and their respective location from a set of data points

I know a workaround(There might be some direct method) s = sin(2*pi*10*(0:0.01:1-0.01)); findpeaks(s) Now replace all eleme...

Extracting 2 peak values and their respective location from a set of data points

I know a workaround(There might be some direct method) s = sin(2*pi*10*(0:0.01:1-0.01)); findpeaks(s) Now replace all eleme...

19 jours ago | 0

| accepted

Answered

How do i make a specific thing on a bar graph

You can use line for that purpose. See this link You can also use errorbar V = [8 18 32];% Bar Value x = [1.5 2.5 2];% errorb...

How do i make a specific thing on a bar graph

You can use line for that purpose. See this link You can also use errorbar V = [8 18 32];% Bar Value x = [1.5 2.5 2];% errorb...

19 jours ago | 2

| accepted

Question

AxesToolBar is not Responding for two axes on top of each other.

Hi, I am trying to write a code in which a switch button changes the axes on a figure where each axes contains mesh. I am curre...

19 jours ago | 0 answers | 0

Answered

I want to shift a part of a row vector to the right then adding a number before the shifted part

if b contains only 1 shift ind = find(b); a(ind+1:end)=circshift(a(ind+1:end),1); a(ind+1) = a(ind)/2; a = 1.0000 2...

I want to shift a part of a row vector to the right then adding a number before the shifted part

if b contains only 1 shift ind = find(b); a(ind+1:end)=circshift(a(ind+1:end),1); a(ind+1) = a(ind)/2; a = 1.0000 2...

19 jours ago | 0

| accepted

Answered

Delete multiple elements from matrix, that match value at once

A=[1,2,3,4,5;3,4,6,7,8;1,2,4,5,6;8,7,6,3,4;1,2,3,4,5]; R = [1 2 5]; L=arrayfun(@(x) A==x,R,'uni',0); A(any(cat(3,L{:}),3)) = ...

Delete multiple elements from matrix, that match value at once

A=[1,2,3,4,5;3,4,6,7,8;1,2,4,5,6;8,7,6,3,4;1,2,3,4,5]; R = [1 2 5]; L=arrayfun(@(x) A==x,R,'uni',0); A(any(cat(3,L{:}),3)) = ...

20 jours ago | 0

Answered

difficulty to use "sin" function

Either increase you sampling rate T = 0.02; %period (sec) w = 2 * pi / T; %w = 314.1593...

difficulty to use "sin" function

Either increase you sampling rate T = 0.02; %period (sec) w = 2 * pi / T; %w = 314.1593...

21 jours ago | 0

| accepted

Answered

Generating linear array [0 -1 0 1 -2 -1 0 1 2 ......]

ii = 0:4; jj = -1:-1:-5; pos_cell = arrayfun(@(x) 0:x,ii,'uni',0); neg_cell = arrayfun(@(x) -1:-1:x,jj,'uni',0); all = [pos_...

Generating linear array [0 -1 0 1 -2 -1 0 1 2 ......]

ii = 0:4; jj = -1:-1:-5; pos_cell = arrayfun(@(x) 0:x,ii,'uni',0); neg_cell = arrayfun(@(x) -1:-1:x,jj,'uni',0); all = [pos_...

21 jours ago | 0

Answered

Dynamic array for string

cells are used for that purpose arrow{i} = flow;% braces changed Take transpose of arrow like you are doing for other variabl...

Dynamic array for string

cells are used for that purpose arrow{i} = flow;% braces changed Take transpose of arrow like you are doing for other variabl...

21 jours ago | 0

| accepted

Answered

Assigning Specific Color Values when MATLAB plots several data sets simultaneously.

Set ColorOrder of axes. Currently i am setting it to random, You can select your custom color close all; clear all; clc; %...

Assigning Specific Color Values when MATLAB plots several data sets simultaneously.

Set ColorOrder of axes. Currently i am setting it to random, You can select your custom color close all; clear all; clc; %...

21 jours ago | 0

| accepted

Answered

generating Sine wave in Graph

You have 5 data points and you ve to interpolate the data between them see interp1 (focus on methods) For plotting in blue cro...

generating Sine wave in Graph

You have 5 data points and you ve to interpolate the data between them see interp1 (focus on methods) For plotting in blue cro...

21 jours ago | 0

Answered

Superheterodyne Receiver Using RF Budget Analyzer App

The paper implemented in example is https://ieeexplore.ieee.org/document/5688819 see Table II of paper (you can also view it ...

Superheterodyne Receiver Using RF Budget Analyzer App

The paper implemented in example is https://ieeexplore.ieee.org/document/5688819 see Table II of paper (you can also view it ...

21 jours ago | 0

Answered

Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN.

Y=gamma(X) Y = Inf Inf Inf Inf 9.33262154439440e+155 Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf 3.80892263763056e+26...

Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN.

Y=gamma(X) Y = Inf Inf Inf Inf 9.33262154439440e+155 Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf 3.80892263763056e+26...

21 jours ago | 1

Answered

App Designer Edit Numeric how to express test

it is because app.Obj is empty. it has no value. First check what is app.Obj? maybe what you are trying to do is app.d=app.d(a...

App Designer Edit Numeric how to express test

it is because app.Obj is empty. it has no value. First check what is app.Obj? maybe what you are trying to do is app.d=app.d(a...

22 jours ago | 1

Answered

how do I add colours on mesh?

Currently i changed EdgeColor for every iteration by setting it to rand rgb values. you can create an array equal to length of s...

how do I add colours on mesh?

Currently i changed EdgeColor for every iteration by setting it to rand rgb values. you can create an array equal to length of s...

22 jours ago | 0

| accepted

Answered

hold on does not work

ax = axes(); creates new axes on current figure. so call it once hold(ax) will hold on or hold off the axes. when you call it...

hold on does not work

ax = axes(); creates new axes on current figure. so call it once hold(ax) will hold on or hold off the axes. when you call it...

22 jours ago | 0

| accepted

Answered

How can I change data directly from the plot ?

There are two axes in your figure (two subplots) and each axes contains three line access the gcf f = gcf; Now to see how man...

How can I change data directly from the plot ?

There are two axes in your figure (two subplots) and each axes contains three line access the gcf f = gcf; Now to see how man...

22 jours ago | 0

| accepted