Réponse apportée
How to product two vector with difference sizes?
Line 11 should be Ta(s1)=exp(-1i*2*teta0(s1)*k*r1(s1)); You missed the index s1 in r1 (r1(s1) insteas of r1)

plus de 10 ans il y a | 0

Réponse apportée
Replace values in a matrix with values from another matrix if a condition is met
a = [11 25 55 75 105] b = [15 30 50 80 100] c=min(a,b)

plus de 10 ans il y a | 2

| A accepté

Réponse apportée
How to convert time into matlab system?
A={'2000/02/15' '12:30';'2015/03/16' '18:55'} b=arrayfun(@(x) strjoin(A(x,:)),(1:size(A,1))','un',0) out=[A b]

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
How do I import data form an excel file into MATLAB?
[num,text,both]=xlsread('yourFileName')

plus de 10 ans il y a | 0

Réponse apportée
load ECG sig to simulink
Your file should look like t=0:0.1:10 % time Vector y=sin(t) % Your signal v=[t;y]; save your_mat_file v Then in ...

plus de 10 ans il y a | 0

Réponse apportée
How to declare global variable
function y=fcn1(~) global your_variable do it in all your functions

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
For loop operation on vectors
They are different, type format long IB

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
if i have two matrix like i want to do some operation on it
A1=reshape(A',1,[]) B1=reshape(B',1,[]) C1=A1(randperm(numel(A1))) C2=B1(randperm(numel(B1)))

plus de 10 ans il y a | 0

Réponse apportée
exp(log(x))-x?
<http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F>

plus de 10 ans il y a | 0

Réponse apportée
Same error in stemming
If b is a cell array Use if b{k}=='s' or if ismember(b(k),'s')

plus de 10 ans il y a | 0

Réponse apportée
how do i access signal logging data
Use to workspace block

plus de 10 ans il y a | 0

Réponse apportée
may i ask how to separate a value into two different values? For example, 12 can be separate into 8 and 4..
If you mean how to do it randomly with integer numbers: N=12 a=randi(N) b=N-a

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
how to merge a 181x1 and 1x70 vector to create a matrix
You can use repmat function A=rand(181,1) out=repmat(A,1,70)

plus de 10 ans il y a | 0

Réponse apportée
What versions of Matlab are supported on Windows 10
<http://www.mathworks.com/matlabcentral/answers/223444-is-matlab-compatible-with-windows-10>

plus de 10 ans il y a | 0

Réponse apportée
genvarname({'A', 'A', 'A', 'A'});
genvarname(repmat({'A'},1,5),'A')

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Why in Simulink a Matlab function block changes its output when changing the solver?
It happens that Simulink gives different results for different solvers, especially when the type of equations it has to solve, r...

plus de 10 ans il y a | 0

Réponse apportée
How to solve implicit equation with two variables?
solve('a^3-6*b*a^2-12*a*b^2-8*b^3==0','a')

plus de 10 ans il y a | 0

Réponse apportée
How can I use lsim for a constant value input signal
you said your signal is a constant |6| for example, then for each instant t, the value of your signal is equal to |6|. If |t=[0 ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
How to use 'mex -setup' to select a supported C-compiler?
In Mtlab widows command type: mex -setup Depending on the Matlab version you are using, search in Google for this S...

plus de 10 ans il y a | 0

Réponse apportée
Regarding integer and floating point number in an array
Maybe it displays it as 0, but doesn't makeit equal to zero, for example a=[1235.25 1] displays it as 1.0e+05 *...

plus de 10 ans il y a | 0

Réponse apportée
How to reduce this matrix?
M=[1 0.1 1.1; 1 0.1 1.1; 3 0.1 1.2; 2 0.2 3; 1 2 4; 2 2 4; 2 3 5] [ii,jj,kk]=unique(M(:,2)) a=accumarray(kk,M(:,1)) b=accum...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
plotting in for loop
clc;clear; a=1;t1=100;t2=20;l=.01;k=1; syms ts hh=1:100; for h=hh q=-(a*h*(ts-t2))+(k*a*(t1-ts)/l); Ts=solve(q);...

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
how to delete column with one number only
A(:,sum(A)==1)=[]

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
How can I find the two lowest peaks in many different graphs?
If y is your signal p=findpeaks(y) a=sort(p) out=a(1:2)

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
How to select all values of a cell array between two cells?
V=xlsread('file.xlsx') out=V(2:end,2:end)

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
solve a equation with two variable
<http://www.mathworks.com/help/symbolic/solve.html>

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Symbolic or function handle to numeric
syms x; y=x^2; out=subs(y,[1 2 3])

plus de 10 ans il y a | 0

Réponse apportée
openfig gives figure with no handle!
h.number

plus de 10 ans il y a | 0

Réponse apportée
1-d curve equation
out=interp1(t,data1,20,'linear','extrap')

plus de 10 ans il y a | 0

Réponse apportée
Storing values from for loop and plotting
T1=15000000:500000:50000000 for k=1:numel(T1) T=T1(k); Chi_Rad = Chi_0 * Density_CGS^2 * T^(-3.5); % (1/cm) Ch...

plus de 10 ans il y a | 0

| A accepté

Charger plus