Pedro Villena
Followers: 0 Following: 0
Mechanical Engineering,
Industrial Automation Engineering,
Aerospace Engineering.
Feeds
Can anyone please debug the error
You had made some errors: * symsum is a symbolic command for symbolic variables. symsum(x(k),k,0,9) -> sum(x) * i...
10 years 前 | 0
| 已接受
How can I write a function called triAreaN that computes the area of N triangles?
function A = triAreaN(B,H) if numel(B)==numel(H), A = 0.5*(B.*H); else error('B and H must be same length'); e...
11 years 前 | 0
| 已接受
how to create speech waves with equal loudness in matlab
I suggest you to use Microsoft Anna (Text to Speech) and save the sound in a *.wav file or *.mp3 file. Then import the sound ...
11 years 前 | 0
| 已接受
How do I remove background noise from a sound wave?
Create and Implement LMS Adaptive Filter to remove the filtered noise from desired signal mtlb_noisy = y; noise = n; ...
11 years 前 | 4
| 已接受
Renaming file name with variable.
e = '20120319'; copyfile('TempFile.htm',[e '.htm']);
12 years 前 | 0
| 已接受
best way to store large time series data
The *EAS3* file format is used to *store floating point data in IEEE format and to exchange the files between different computer...
12 years 前 | 0
| 已接受
getting smaller arrays in sequence from a big array
A = randi(100,1,1000); %matrix of 1x1000 n = 100; for i=1:floor(numel(A)/n), eval(sprintf('A%d=A(%d:%d);',i,(i-1)*n+...
12 years 前 | 1
| 已接受
how to convert .bmp to .txt file
rgb = imread('myImageFile.bmp'); dlmwrite('myImageFile.txt',rgb);
12 years 前 | 1
| 已接受
Data Acquisition (Really easy question)
global dioLine ledsLine DIO = digitalio('mcc','0'); if isempty(dioLine) dioLine = addline(DIO,0:7,1,'out'); ...
12 years 前 | 0
| 已接受
How can I replicate this matrix
n=3; %% three times m=2; %% plus two times for the final row F2 = []; for k=1:size(F,1), F2 = [F2; repmat(F(k,...
12 years 前 | 0
| 已接受
How do I set a loop for ODE?
correction in your script: [t,X] = ode45(@SORODE_Z,tspan,X0,options,z);
12 years 前 | 0
| 已接受
Concatenate cells: making column and row headers
table(2:numel(row)+1) = row; table(2:numel(col)+1,1) = col;
12 years 前 | 0
| 已接受
Can somebody tell me what is wrong with the following code?
num2str(u) doc num2str
12 years 前 | 0
| 已接受
How do I estimate a transfer function and a bode response from sample data ?
Use an Nonparametric System Identification Theory, like *Ziegler-Nichols Method*. Ziegler-Nichols Method is a graphical techn...
12 years 前 | 0
| 已接受
How to save, for loop
for i=1:n, X = DATA1(i,1); %% DATA1 is an array Y = DATA2{i,1}; %% DATA2 is a cell Z(i,:) = X-Y; end save Z ...
12 years 前 | 0
| 已接受
How to read from one column of excel (from row 40 to 80) and can match it with the other column as well?
data = xlsread('1612_2.xls','A40:AF80');
12 years 前 | 1
| 已接受
Why the result of acosd (0) only 90?
*ACOSD* is a SISO function that returns only one output value for each input value (real or complex). You could see the behav...
12 years 前 | 0
| 已接受
Design a low pass filter for time domain data
* You need the sampling rate to design a digital filter, but if you want to design an analog filter, you don't need the sampling...
12 years 前 | 0
| 已接受
Command to calculate the coordinates of points
P = [X (-A-Y)]; P1 = P(1,:) P2 = P(2,:) ...
12 years 前 | 0
| 已接受
reshape a matrix in a special manner
A = rand(100,130); step = 10; C = cell2mat(arrayfun(@(i,j) mean(A(:,i:j),2),... 1:step:length(A)-step, 1+step:step:...
12 years 前 | 0
| 已接受
Replacing 5 bits in a binary value
C = dec2bin(A); D = dec2bin(B); n = 4; %% start bit position from MSB (1st bit position is 1) C(:,n:n+size(D,2)-1)=D %...
12 years 前 | 0
| 已接受
Microcontroller Implementation for solar power systems in Simulink
<http://www.mathworks.es/es/help/simulink/slref/sfunctionbuilder.html>
12 years 前 | 0
| 已接受
how to make code global
>>arrayfun(@(i) myFunction(i),1:100); *myFunction.m* function [] = myFunction(imageNumber) %RGB = imread('Image100...
12 years 前 | 1
| 已接受
Transfer function in Simulink different from Matlab
Gs = (1/s^2) * (1 - 2*exp(-s*0.5) + exp(-s)) Gs = 1/s^2 - (2/s^2)*exp(-s*0.5) + (1/s^2)*exp(-s) <<http://img846.imageshack...
12 years 前 | 0
| 已接受
finding mean in row wise
mean1 = mean(D(:,1:3),2), mean2 = mean(D(:,4:5),2), mean3 = mean(D(:,6:7),2), or D1 = [37.8518 22.2652 45.1886...
12 years 前 | 0
| 已接受
how to find values from text file
data = textread('lalit.txt'); r = unique(data); for i=r', c = data(data(:,1)==i,2); z(i,1) = mean([min(c) ...
12 years 前 | 1
| 已接受
how to write code for fft?
fs = 5000; t = 0:1/fs:1; signal = rand(size(t)); %%%% test data fft_in = reshape(signal(1:256*floor(numel(signal)/256)),2...
12 years 前 | 0
| 已接受
how to write this in simple m file function
myMFile.m function [S] = myMFile(a,x,K) %w = W-Wmin; w = (0:0.01:3); S = (1-exp(-a.*x.*w).*K;
12 years 前 | 0
| 已接受