已解决


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

13 years 前

已解决


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

13 years 前

已解决


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:...

13 years 前

已回答
Concatenate cells: making column and row headers
table(2:numel(row)+1) = row; table(2:numel(col)+1,1) = col;

13 years 前 | 0

| 已接受

已回答
Can somebody tell me what is wrong with the following code?
num2str(u) doc num2str

13 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...

13 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 ...

13 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');

13 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...

13 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...

13 years 前 | 0

| 已接受

已回答
Command to calculate the coordinates of points
P = [X (-A-Y)]; P1 = P(1,:) P2 = P(2,:) ...

13 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:...

13 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 %...

13 years 前 | 0

| 已接受

已回答
Microcontroller Implementation for solar power systems in Simulink
<http://www.mathworks.es/es/help/simulink/slref/sfunctionbuilder.html>

13 years 前 | 0

| 已接受

已回答
how to make code global
>>arrayfun(@(i) myFunction(i),1:100); *myFunction.m* function [] = myFunction(imageNumber) %RGB = imread('Image100...

13 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...

13 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...

13 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) ...

13 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...

13 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;

13 years 前 | 0

| 已接受

已回答
How can I change fileID name in a for loop?
for i=1:3 fid(i) = fopen(sprintf('report_%d.xls',i), 'wt'); end

13 years 前 | 1

| 已接受

已回答
How to get the cell number with the maximum value of a vector with Simulink
Convert virtual bus to vector. <http://www.mathworks.es/es/help/simulink/slref/bustovector.html> Simulink >> Signal Atrib...

13 years 前 | 0

| 已接受

已回答
Data Acquisition Toolbox doesn't work with Simulink
If you use Real-Time Windows Target Blockset, check if your hardware is in the list of supported hardware. <http://www.mathwo...

13 years 前 | 1

| 已接受

已回答
how to obtain a smoother curve
data = xlsread('data.xlsx'); t = data(:,1); x = data(:,2); y = data(:,3); z = data(:,4); smoothOrder = 8; %%c...

13 years 前 | 1

| 已接受

已回答
give me a detailed code for LBG algorithm or give me the function d=disteu(v,c) in the below function
function d = disteu(x, y) % DISTEU Pairwise Euclidean distances between columns of two matrices % Input: % x, y...

13 years 前 | 0

| 已接受

已回答
how to use FIFO memory of DAQ
The FIFO is automatically managed by the DAQ driver. Where you have the option of: * Single Sample Function * Multi Sample ...

13 years 前 | 1

| 已接受

已回答
Finding where curves are approximately equal to zero
Add these lines at the end of your script code: tol = 1e-6; %tolerance idx = find((abs(X(:,1))<tol) & (abs(X(:,2))<tol) ...

13 years 前 | 0

| 已接受

已回答
the problem with mean function
mean_phase=mean(reshape(phase(1:25*floor(numel(phase)/25)),25,[]))

13 years 前 | 0

| 已接受

已回答
Error code in gui
The sintaxis is good, but you left a space in the beginning of *' String'*. Just erase the space blank that is before *String* ...

13 years 前 | 1

| 已接受

已回答
Help in Identifying Simulink Block
Maybe: * tansig - Hyperbolic tangent sigmoid transfer function * elliotsig - Elliot symmetric sigmoid transfer functio...

13 years 前 | 2

| 已接受

加载更多