Respondida
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)

más de 10 años hace | 0

Respondida
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)

más de 10 años hace | 2

| aceptada

Respondida
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]

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 0

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

más de 10 años hace | 0

Respondida
How to declare global variable
function y=fcn1(~) global your_variable do it in all your functions

más de 10 años hace | 0

| aceptada

Respondida
For loop operation on vectors
They are different, type format long IB

más de 10 años hace | 1

| aceptada

Respondida
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)))

más de 10 años hace | 0

Respondida
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>

más de 10 años hace | 0

Respondida
Same error in stemming
If b is a cell array Use if b{k}=='s' or if ismember(b(k),'s')

más de 10 años hace | 0

Respondida
how do i access signal logging data
Use to workspace block

más de 10 años hace | 0

Respondida
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

más de 10 años hace | 0

| aceptada

Respondida
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)

más de 10 años hace | 0

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

más de 10 años hace | 0

Respondida
genvarname({'A', 'A', 'A', 'A'});
genvarname(repmat({'A'},1,5),'A')

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 0

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

más de 10 años hace | 0

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 0

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

más de 10 años hace | 0

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

más de 10 años hace | 0

| aceptada

Respondida
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);...

más de 10 años hace | 1

| aceptada

Respondida
how to delete column with one number only
A(:,sum(A)==1)=[]

más de 10 años hace | 0

| aceptada

Respondida
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)

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 0

| aceptada

Respondida
solve a equation with two variable
<http://www.mathworks.com/help/symbolic/solve.html>

más de 10 años hace | 0

| aceptada

Respondida
Symbolic or function handle to numeric
syms x; y=x^2; out=subs(y,[1 2 3])

más de 10 años hace | 0

Respondida
openfig gives figure with no handle!
h.number

más de 10 años hace | 0

Respondida
1-d curve equation
out=interp1(t,data1,20,'linear','extrap')

más de 10 años hace | 0

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

más de 10 años hace | 0

| aceptada

Cargar más