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

quasi 13 anni fa | 1

| accettato

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

quasi 13 anni fa | 0

| accettato

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

quasi 13 anni fa | 1

| accettato

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

quasi 13 anni fa | 1

| accettato

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

quasi 13 anni fa | 0

| accettato

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

quasi 13 anni fa | 1

| accettato

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

quasi 13 anni fa | 0

| accettato

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

quasi 13 anni fa | 0

| accettato

Risposto
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* ...

quasi 13 anni fa | 1

| accettato

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

quasi 13 anni fa | 2

| accettato

Risposto
Using plot command in a loop
if you want to change the variable name in the loop, use *eval* command for i= 1:20, figure(i), eval(sprintf(...

quasi 13 anni fa | 1

| accettato

Risposto
A question about linkaxes options
MyScript.m %% Initial Data x = 1:1000; y1=x.*sin(x); y2=3*x.*sin(x); y3=sin(x); rangeX=[51 100]; %% Plot ...

quasi 13 anni fa | 0

| accettato

Risposto
WHICH INPUT CHANNEL HAS TO BE INITIALIZED , analog input CH or digital input CH for DC VOLTAGE?
If you want to plot the exact voltage in matlab, use an analog input channel. The digital channels are in TTL range voltage (0-5...

quasi 13 anni fa | 0

| accettato

Risposto
datenum problem in matlab
str = '01/01/2012'; %% string of the date, read from XLS file First, you have to specify the date format that you have in yo...

quasi 13 anni fa | 0

| accettato

Risposto
compare and save data
data=xlsread('Book1.xlsx'); r=data(~isnan(data(:,1)),1); c=data(~isnan(data(:,2)),2); R=data(~isnan(data(:,4)),4); ...

quasi 13 anni fa | 0

| accettato

Risposto
How to write cell array to csv file
data = {{'asd';'qew';'zxc'} [1;2] [4;5;6] [7;8;9] [10;11;12;13]}; fid = fopen('csvfilename.csv','w'); for iii=1:length(d...

quasi 13 anni fa | 0

| accettato

Risposto
forming block in simulink
Use a *Sine* Block, and configure it with: * Amplitude: -1 * Phase: -pi/2

quasi 13 anni fa | 0

| accettato

Risposto
How to check the numbers of characters of a string?
str = num2str([17;10],'%05i') if length(str(1,:))==5, %%% here is your command end or str = num2str(...

circa 13 anni fa | 1

| accettato

Risposto
Process a sequence of files
filePattern=fullfile( myPath,'*.txt'); txtFiles= dir(filePattern); for k = 1:length(txtFiles.names), fullFile...

circa 13 anni fa | 0

| accettato

Risposto
how to equlaize cell arrays in matlab?
type= { '12' '62' '5' }; colour={'red' 'green' 'yellow' 'brown' 'blue' 'black'}; result = type; for i=length(type...

circa 13 anni fa | 1

Risposto
how to equlaize cell arrays in matlab?
A = [A cell(size(A))]; %%to duplicate a row array A = [A; cell(size(A))]; %%to duplicate a column array A = [A cell(1,3)...

circa 13 anni fa | 0

| accettato

Risposto
Error using quad for nummerical integration
this equation has a singularity to Inf tk = 1.5; Assymptotisk=@(x) sqrt(2/pi).*exp(-x)./sqrt(x); vc= quad(Assymptotis...

circa 13 anni fa | 0

| accettato

Risposto
10 minutes average for four hours data
nHours = 4; %number of hours Ts = 15; %sampling period [s] data = [3793.197... %your data is 960x1 size ...

circa 13 anni fa | 0

| accettato

Risposto
to determine the peak frequency in from the plot of the Fourier transform
n=0:100; %N=100 N=length(n); Ts=0.001; %period [s] Fs=1/Ts; %frequency [Hz] t=(0:Ts:Ts*n(end)); A=10; w=0....

circa 13 anni fa | 0

| accettato

Risposto
how to use zeros command to construct a new sequence?
n=0:100; %->N=101 T=0.001; %period [s] t=(0:T:T*n(end)); x=10*cos(0.2*pi*n+1.2); where *x(1)* represent *x(n=0)*, ...

circa 13 anni fa | 0

| accettato

Risposto
use matlab to represent equations
fs = 1000; % samplig frequency [Hz] t = 0:1/fs:0.1-1/fs; % time vector w = 267*pi; % oscilation frequency [rad/s] (133....

circa 13 anni fa | 0

| accettato

Risposto
Import alphanumeric data from .txt
fid=fopen('test_data.txt'); str = textscan(fid,'%s %s\r',inf); fclose(fid); timeStr = cell2mat(str{1}); Time =...

circa 13 anni fa | 0

| accettato

Risposto
Alpha and beta extraction on an ellipse...
beta_element = zeros(ParNum,NumPoints); beta_factor = y./(ery.^2); alpha_element = zeros(ParNum,ParNum,NumPoints); fo...

circa 13 anni fa | 0

| accettato

Risposto
How can I select only the values in a Matrix, which don't have the value?
i=find(~MatrixA); Matrix1Quotient = MatrixB(i)./MatrixA(i);

circa 13 anni fa | 0

| accettato

Risposto
Time stamp using xlswrite
xlswrite('repeati.xlsx',{clox},'E6:E6');

circa 13 anni fa | 0

| accettato

Carica altro