답변 있음
How to return a row from a 2d matrix
A= [52 53 17 10 8; 16 12 7 14 23; 24 90 1 19 36; 4 3 21 11 18] B= [30 52 7 10 80;5 20 22 7 43; 4 2 1 9 6] idx=ismember(A,B...

대략 10년 전 | 0

| 수락됨

답변 있음
how to get the value of function u(x,t)=exp(ax+bt) in form of table for diffrent value of x and t
You use <http://www.mathworks.com/help/matlab/ref/table.html table> function to create your table

대략 10년 전 | 0

답변 있음
Solve non-linear system equation in matrix form
look at this example syms a b c eq=[a 2 3;a b 1; c 5 4]*[a 2 3;a b 1; c 5 4]==randi(3,3,3) out=solve(eq)

대략 10년 전 | 0

답변 있음
How can I convert the 8*8 matrix a to 4*4 matrix b using downsample
A(1:2:end,1:2:end)

대략 10년 전 | 0

| 수락됨

답변 있음
How to read data from a .txt a put it in different vectors?
v=importdata('file.txt') You will get a matrix containing nan values, it's not recommended to create multiple variables. Wi...

대략 10년 전 | 0

| 수락됨

답변 있음
Explicitly numbered string?
numbers=3; fname=genvarname(repmat({'Q'},1,numbers),'Q') for ii=1:numbers x = -(ii+1)*pi:0.01:(ii+1)*pi; y = sin(x...

대략 10년 전 | 0

답변 있음
how to add element in vector?
v=[] a=10 v=[v a]

대략 10년 전 | 0

| 수락됨

답변 있음
Subscript indices must either be real positive integers or logicals.
You cant use an index equal to zero, Matlab allows only positive integer indices, or logical indices

대략 10년 전 | 0

답변 있음
how to plot step response from an unknown first order system?
Unknown first order system should have an unknown step response. If your system is stable, you normally can see the steady stat...

대략 10년 전 | 0

답변 있음
creating several subplots with for loop
t=1:100; y=rand(80,100); for k=1:5:size(y,1); s=y(k:k+4,:); figure; for ii=1:5 subplot(5,1,ii); ...

대략 10년 전 | 1

| 수락됨

답변 있음
'' Attempted to access sorted_evalue(0); index must be a positive integer or logical. '' how to remove this??????
The error is du to sorted_evalue(0). In Matlab the indices begin at 1, the 0 is not allowed

대략 10년 전 | 0

| 수락됨

답변 있음
Applying Unit Step to discrete signal
you can use <http://www.mathworks.com/help/symbolic/heaviside.html heaviside> function

대략 10년 전 | 0

답변 있음
is it possilbe to get a CD for installing the software
You can download without installation, then make your CD. <http://www.mathworks.com/help/install/ug/download-only.html>

대략 10년 전 | 0

답변 있음
How to fix Attempted to access P(1.01); index must be a positive integer or logical error
The index should be positive and integer. In your case the index is equal to 1.01, which is not integer

대략 10년 전 | 1

답변 있음
How can I randomize elements in an array by a set amount?
a = [5,5,5,5,5]; out=a+randi([-1 1],size(a))

대략 10년 전 | 1

| 수락됨

답변 있음
how do you convert a continuous-time subsystem to a discrete-time subsystem in Simulink?
You place your continuous system between a zoh block and a quantizer block <</matlabcentral/answers/uploaded_files/46024/ans...

대략 10년 전 | 0

답변 있음
How do I format an array of values to a specific number of digits?
Y = [1;2;3;4;5] out=sprintf('0%d\n',Y)

대략 10년 전 | 1

| 수락됨

답변 있음
Random multiply by negative one
out=2*randi([0 1],22528,1000)-1

10년 초과 전 | 0

답변 있음
How to say not equals to for 3 variables
a~=b & a~=c %or you can use ismember function ~ismember(a,[b,c])

10년 초과 전 | 0

답변 있음
Error using plotyy in for loop
E1=30e6; E2=.75e6; G12=0.375e6; v12=0.25; x=0:0.5:90 Ex=1./((1./E1*cosd(x).^4)+((1./G12-2*v12/E1).*(sind(x).^2).*(cosd(x)...

10년 초과 전 | 0

| 수락됨

답변 있음
How to generate variable sine wave after fixed number of samples
np=25 f=50 t=0:T/10:T; y=sin(2*pi*f*t); for k=1:19 f=f+50; T=1/f; t1=t(end)+T/20:T/20:t(end)+np*T; y1=...

10년 초과 전 | 0

| 수락됨

답변 있음
to combine different vectors with the same element
out=union([1 2 3 4], union([2 4 5],[ 1 5 6])) %or out=union([],cat(2,[1 2 3 4], [2 4 5],[ 1 5 6]))'

10년 초과 전 | 0

| 수락됨

답변 있음
Hi, I am getting error on secant problem.
There is no error in your function. To call it: fun=@(x)exp(-x)-x Xa=0 Xb=1 tol=0.001 n=3 Xs=secantroot (fun,Xa,Xb,tol...

10년 초과 전 | 0

| 수락됨

답변 있음
Sorting sub matrices based on specific column value
a=[22 0.008 6.2 2 0.008 5.2 42 0.014 4.7 23 0.016 6.7 43 0.016 7.2 3 0.016 2.2] b=a; b(:,4)=abs(b(:,3)-7) [ii,jj,kk]=u...

10년 초과 전 | 1

답변 있음
How to insert space to a string given
If you haven't the original text, how Matlab will know where the spaces are located? At least when you remove the spaces, save t...

10년 초과 전 | 0

답변 있음
index must be a positiv integrer or logical
The index can't be equal to 0, you can't write A(0) The index should be a positive integer or logical

10년 초과 전 | 0

| 수락됨

답변 있음
how can find a point from an array where the points it follows start to decrease
%Example t=0:0.1:20 y=sin(t) plot(t,y) %--------------------- ii=diff(y)>0 jj=strfind(ii,[1 0]) tout=t(jj) yout=y(jj)

10년 초과 전 | 0

답변 있음
I have to declare 6 variables with the constraint 0<=a1<b1<c1<a2<b2<c2<=255. How to do it? please help.
You can check using this test test=0<=a1 & a1<b1 & b1<c1 & c1<a2 & a2<b2 & b2<c2 & c2<=255

10년 초과 전 | 0

답변 있음
Fixing Error "Subscript indices must either be real positive integers or logicals."
I think you missed the multiplication operator * I1 = Io*(((2.*besselj(1,q).*((pi.*q)/(lam1.*N))))/(((pi.*q)/lam1.*N))).^2;...

10년 초과 전 | 0

| 수락됨

답변 있음
How to plot components of a cell array?
w={[1,9,212] [4,12,200] [5,12,180] [6,12,200] [9,15,200] [10,15,200]} v=cell2mat(w') plot3(v(:,1),v(:,2),v(:,3))

10년 초과 전 | 0

| 수락됨

더 보기