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

etwa 10 Jahre vor | 0

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

etwa 10 Jahre vor | 2

| akzeptiert

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

etwa 10 Jahre vor | 0

| akzeptiert

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

etwa 10 Jahre vor | 0

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

etwa 10 Jahre vor | 0

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

etwa 10 Jahre vor | 0

| akzeptiert

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

etwa 10 Jahre vor | 1

| akzeptiert

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

etwa 10 Jahre vor | 0

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

etwa 10 Jahre vor | 0

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

etwa 10 Jahre vor | 0

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

etwa 10 Jahre vor | 0

Beantwortet
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

etwa 10 Jahre vor | 0

| akzeptiert

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

etwa 10 Jahre vor | 0

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

etwa 10 Jahre vor | 0

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

etwa 10 Jahre vor | 0

| akzeptiert

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

etwa 10 Jahre vor | 0

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

etwa 10 Jahre vor | 0

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

etwa 10 Jahre vor | 0

| akzeptiert

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

etwa 10 Jahre vor | 0

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

etwa 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 1

| akzeptiert

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

Beantwortet
openfig gives figure with no handle!
h.number

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

| akzeptiert

Mehr laden