Réponse apportée
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(...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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); ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
forming block in simulink
Use a *Sine* Block, and configure it with: * Amplitude: -1 * Phase: -pi/2

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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(...

plus de 13 ans il y a | 1

| A accepté

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

plus de 13 ans il y a | 0

| A accepté

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

plus de 13 ans il y a | 1

Réponse apportée
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)...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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....

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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)*, ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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....

plus de 13 ans il y a | 0

| A accepté

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

plus de 13 ans il y a | 0

| A accepté

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

plus de 13 ans il y a | 0

| A accepté

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

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Time stamp using xlswrite
xlswrite('repeati.xlsx',{clox},'E6:E6');

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to store the looping values into matrix?
me = rand(1,140); %% matrix 1x140 k = reshape(me,length(me)/length(cd1),length(cd1))'; %% matrix 5x28

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
saving a csv file as a .mat file
if columns have equal number of rows M=csvread('filename.csv') save('filename.mat','M')

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Help to find my mistake in the code, or tell me what's wrong.
clc clear T0 = [5; 7.5; 10; 12.5; 15; 17.5; 20; 22.5; 25; 27.5; 30]; h0 = [3.3; 7.5; 41.8; 51.8; 61; 101.1; 132.9; 14...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Generating multicarrier Input of Sine and Triangular wave
This is for R2010b <http://www.sendspace.com/file/ahd305>

plus de 13 ans il y a | 0

| A accepté