統計
All
Feeds
回答済み
Warning: Input argument might be unused and value assigned might be unused
Holas. Quizás es porque tu función function [s]=FourierNuevo(y,T,B,max) recibe la variable y, pero despues la estas reemplaz...
Warning: Input argument might be unused and value assigned might be unused
Holas. Quizás es porque tu función function [s]=FourierNuevo(y,T,B,max) recibe la variable y, pero despues la estas reemplaz...
3年弱 前 | 0
回答済み
Cannot run 16-PSK code in Switch case inside of another switch case
Hi. In the second code your use the variable: mod = get(handles.popupmenu2,'Value'); but this name is a function name. Chang...
Cannot run 16-PSK code in Switch case inside of another switch case
Hi. In the second code your use the variable: mod = get(handles.popupmenu2,'Value'); but this name is a function name. Chang...
3年弱 前 | 0
| 採用済み
解決済み
Determina el número de cifras de un número
Crea una función que te devuelva el número de cifras de un número. Algunos ejemplos para ayudarte serían: El número 125 tie...
約3年 前
回答済み
How to ask use to enter values
An example of input. prompt = "Value "; H2 = input(prompt); CH4 = input(prompt); xTable = table(H2,CH4) xTable = ...
How to ask use to enter values
An example of input. prompt = "Value "; H2 = input(prompt); CH4 = input(prompt); xTable = table(H2,CH4) xTable = ...
5年弱 前 | 0
回答済み
A problem containing Interpolation
You must change: x=linspace(1,15,6); %%This line 6 equally spaced data points y=2*x-3*randn(1,length(x)); %%This line x2=lin...
A problem containing Interpolation
You must change: x=linspace(1,15,6); %%This line 6 equally spaced data points y=2*x-3*randn(1,length(x)); %%This line x2=lin...
5年弱 前 | 0
回答済み
How do we take the inverse fourier transformof this image
Your image: img = imread('imagen','jpg'); h = ifft2(img); %inverse fourier transform imagesc(abs(h(:,:,1))); inverse fouri...
How do we take the inverse fourier transformof this image
Your image: img = imread('imagen','jpg'); h = ifft2(img); %inverse fourier transform imagesc(abs(h(:,:,1))); inverse fouri...
5年弱 前 | 0
| 採用済み
回答済み
how to write special matrices
I think it is not very efficient, but works a = dec2bin(0:15); i = 1; while i<17 c = randi([0 1],1,4); if(a(i...
how to write special matrices
I think it is not very efficient, but works a = dec2bin(0:15); i = 1; while i<17 c = randi([0 1],1,4); if(a(i...
5年弱 前 | 0
回答済み
Plot transfer function with exponential function
You need add inputdelay sets=tf(4,[1 4 4],'inputdelay',1) sets = 4 exp(-1*s) * ------------- ...
Plot transfer function with exponential function
You need add inputdelay sets=tf(4,[1 4 4],'inputdelay',1) sets = 4 exp(-1*s) * ------------- ...
5年弱 前 | 1
回答済み
Matrix dimensions must agree.
The arrays dimensions are differents Dn/W.*log(1+((Pr.*h)/sigma2)+(Texe)) %Is a 10x10 complex matrix If you use Tup(k) %You a...
Matrix dimensions must agree.
The arrays dimensions are differents Dn/W.*log(1+((Pr.*h)/sigma2)+(Texe)) %Is a 10x10 complex matrix If you use Tup(k) %You a...
5年弱 前 | 0
| 採用済み
回答済み
2d matrix column plot
You can make a plot with comand plot(): x(:,1) = 0:pi/100:2*pi; x(:,2) = sin(x); plot(x(:,1),x(:,2)) more info: https://es...
2d matrix column plot
You can make a plot with comand plot(): x(:,1) = 0:pi/100:2*pi; x(:,2) = sin(x); plot(x(:,1),x(:,2)) more info: https://es...
5年弱 前 | 0
回答済み
Change name of subplot into 2 for
You can try change: Muscle_Task=strcat('Muscle',num2str(mrkr),'Task',num2str(muscle),'.bmp'); to: Muscle_Task=['Muscle' num2s...
Change name of subplot into 2 for
You can try change: Muscle_Task=strcat('Muscle',num2str(mrkr),'Task',num2str(muscle),'.bmp'); to: Muscle_Task=['Muscle' num2s...
5年弱 前 | 0
| 採用済み
回答済み
Need help with a riemann sum
Cambié un poco el código, pero casi nada. clearvars; a = 0; b = 2; n_rec = 100; delta_x = (b-a)/n_rec; x = 0:delta_x:2; %...
Need help with a riemann sum
Cambié un poco el código, pero casi nada. clearvars; a = 0; b = 2; n_rec = 100; delta_x = (b-a)/n_rec; x = 0:delta_x:2; %...
5年弱 前 | 0
回答済み
Improfile changing colour of plot
You can try: %Example Mathwork I = imread('liftingbody.png'); x = [19 427 416 77]; y = [96 462 37 33]; [a,b,c] = improfile(...
Improfile changing colour of plot
You can try: %Example Mathwork I = imread('liftingbody.png'); x = [19 427 416 77]; y = [96 462 37 33]; [a,b,c] = improfile(...
5年弱 前 | 0
| 採用済み
回答済み
I'm trying to take the integral with two variables being arrays and this error keeps popping up. I'm not sure if there is another way, or if im missing something. this is what i have put in the code.
I think the upper limit of integral cannot be a matrix. if you change Iy = int(dA*x^2,x,0,b) %b is array the code works sym...
I'm trying to take the integral with two variables being arrays and this error keeps popping up. I'm not sure if there is another way, or if im missing something. this is what i have put in the code.
I think the upper limit of integral cannot be a matrix. if you change Iy = int(dA*x^2,x,0,b) %b is array the code works sym...
5年弱 前 | 0
| 採用済み
回答済み
Random selection from a pool of questions
I changed 2 lines and it works QandA={'what is 6x8? ', '48'; 'what is 12x12? ', '144'; 'what is 60/12? ', '5'; ...
Random selection from a pool of questions
I changed 2 lines and it works QandA={'what is 6x8? ', '48'; 'what is 12x12? ', '144'; 'what is 60/12? ', '5'; ...
5年弱 前 | 1
| 採用済み
回答済み
y=a*b^x
For example if your y = a*cos(x), you can use plot like this: x = 0:1e-2:20; %x values a = 2; %can be anything constant number...
y=a*b^x
For example if your y = a*cos(x), you can use plot like this: x = 0:1e-2:20; %x values a = 2; %can be anything constant number...
5年弱 前 | 0
回答済み
Why is my functions not plotting a line?
you need add one point Wab=9.42; d=0.12; s=0.1; % 0.3, 0.6 & 0.9 theta=0:0.1:6.28 Wcd=(s.*Wab.*(s+sin(theta)))./(1+s.^2+2...
Why is my functions not plotting a line?
you need add one point Wab=9.42; d=0.12; s=0.1; % 0.3, 0.6 & 0.9 theta=0:0.1:6.28 Wcd=(s.*Wab.*(s+sin(theta)))./(1+s.^2+2...
5年弱 前 | 2
回答済み
How can I stop my program and ask for the wish operation?
You can use a if umi = '1 = A*B 2 = A/B '; opc = input(umi); %input (multiply or divide?) disp(' ') dis...
How can I stop my program and ask for the wish operation?
You can use a if umi = '1 = A*B 2 = A/B '; opc = input(umi); %input (multiply or divide?) disp(' ') dis...
5年弱 前 | 0
回答済み
how can I plot multiple y values for single x value?
you can try creating a vector of ones and multiplying this by your x values, for example: y = rand(1,15); xvalue = 3; x = xva...
how can I plot multiple y values for single x value?
you can try creating a vector of ones and multiplying this by your x values, for example: y = rand(1,15); xvalue = 3; x = xva...
5年弱 前 | 0
回答済み
Matlab program to plot y(t) graph
If you function is y(t), and you iterate this function in the time, your can plot it: time = 0:0.01:1; y = sin(time) %Your y(t...
Matlab program to plot y(t) graph
If you function is y(t), and you iterate this function in the time, your can plot it: time = 0:0.01:1; y = sin(time) %Your y(t...
5年弱 前 | 0
回答済み
High Frequency Square Wave
You can try with square() --> More Info For example: time = linspace(0,1,1000); frecuency = 5; %or other frecuency x = squar...
High Frequency Square Wave
You can try with square() --> More Info For example: time = linspace(0,1,1000); frecuency = 5; %or other frecuency x = squar...
5年弱 前 | 0
| 採用済み
回答済み
Storing data in matlab matrix using loop
You can try use cell() i=1; for k1=2:1:20 for k2=2:1:20 for k3 = 2:1:20 M = [k1,k2,k3]; if...
Storing data in matlab matrix using loop
You can try use cell() i=1; for k1=2:1:20 for k2=2:1:20 for k3 = 2:1:20 M = [k1,k2,k3]; if...
5年弱 前 | 0
| 採用済み
回答済み
Solve equation in interval
You can try: syms x f = x^2*exp(-x) fder = diff(f,x,1) vpasolve(fder,[-1 1]) %change solve
Solve equation in interval
You can try: syms x f = x^2*exp(-x) fder = diff(f,x,1) vpasolve(fder,[-1 1]) %change solve
5年弱 前 | 0
| 採用済み
回答済み
Calculation of two less than equal
For the left side it is: n = sqrt(C-1); The other side it is the same.
Calculation of two less than equal
For the left side it is: n = sqrt(C-1); The other side it is the same.
5年弱 前 | 0
回答済み
Problem in using symsum
syms x k x(1)=-2; x(2)=-1; x(3)=0; x(4)=1; x(5)=2; f(1)=-2; f(2)=-1; f(3)=0; f(4)=1; f(5)=2; for i=0:4 a{i+1}=...
Problem in using symsum
syms x k x(1)=-2; x(2)=-1; x(3)=0; x(4)=1; x(5)=2; f(1)=-2; f(2)=-1; f(3)=0; f(4)=1; f(5)=2; for i=0:4 a{i+1}=...
5年弱 前 | 0
回答済み
Plot please help / plot the domain of transfer function
You can try with tf(): more info: https://es.mathworks.com/help/control/ref/tf.html fun = tf([5 30 55 30],[1 9 33 65]); % B(s...
Plot please help / plot the domain of transfer function
You can try with tf(): more info: https://es.mathworks.com/help/control/ref/tf.html fun = tf([5 30 55 30],[1 9 33 65]); % B(s...
5年弱 前 | 0
回答済み
How can I write the matlab
I made a function that maybe help you: Link: https://es.mathworks.com/matlabcentral/fileexchange/82783-waveform-fourier-series-...
How can I write the matlab
I made a function that maybe help you: Link: https://es.mathworks.com/matlabcentral/fileexchange/82783-waveform-fourier-series-...
5年弱 前 | 0
| 採用済み
回答済み
Piecewise function plot help
The length must be the same x1 = [0:0.1:1]; f1 = zeros(1,numel(x1)); %f1 with the same length as x1 x2 = [1:0.1:3]; f2 = [1/...
Piecewise function plot help
The length must be the same x1 = [0:0.1:1]; f1 = zeros(1,numel(x1)); %f1 with the same length as x1 x2 = [1:0.1:3]; f2 = [1/...
5年弱 前 | 0
| 採用済み
回答済み
How to create a periodic function?
You can use this function: https://es.mathworks.com/matlabcentral/fileexchange/83058-continuous-piecewise-function-linear-funcio...
How to create a periodic function?
You can use this function: https://es.mathworks.com/matlabcentral/fileexchange/83058-continuous-piecewise-function-linear-funcio...
5年弱 前 | 0
回答済み
Error Message: valid interpreter syntax
add in xlabel() xlabel(filename,'Interpreter','none')
Error Message: valid interpreter syntax
add in xlabel() xlabel(filename,'Interpreter','none')
5年弱 前 | 0
| 採用済み







