Answered
Separate Start/Stop in GUIDE
You can use two pushbutton one for stop another for start.You have to do it under certain condition, # when start is activat...

13 years ago | 0

| accepted

Answered
Load and plot data from txt file
To read a txt file use dlmread textscan fgetl fscanf

13 years ago | 0

| accepted

Answered
How to store string into an array?
y=char('0D05','0D06','0D10'); %or y=cellstr(char('0D05','0D06','0D10'));

13 years ago | 0

Answered
about write in file
fid = fopen('data.txt','w+'); for i = 1 : 10 fprintf(fid,'%d\n',h(i,:)); end fclose(fid);

13 years ago | 1

Answered
Coupled Second order differential eq. solution
%Suppose x1=x x2=x' x3=y %we get the system dx1=x2 dx2=x2/a*(f/c - b*(1-x2*x3/d)/x3) % You have to check your brack...

13 years ago | 0

| accepted

Answered
solve an expression and plot
beta=0.85; gamma=.15; theta=0.1; alpha=(.303:.001:5)' syms delta A=-alpha*beta + alpha*delta + gamma*beta + beta; B=alph...

13 years ago | 0

Answered
How can I repeat the pulse after some period of time?
you can use repmat function

13 years ago | 0

| accepted

Answered
How do I plot a curve in 3d?
plot3(x,y,z)

13 years ago | 0

| accepted

Answered
How can I make the browse pushbutton on my GUI in Matlab functional?
[FileName,FilePath ]= uigetfile(); ExPath = fullfile(FilePath, FileName)

13 years ago | 1

| accepted

Answered
Add a voxle a value
out(:,:,1)=[1 1 1] out(:,:,2)=[1 0 1]

13 years ago | 0

Answered
How to name structured variable with number that correspond to number of itteration?
You can not use a number as a field, try this for l=1:5 for i=1:3 for j=1:4 S.(sprintf('f%d',l))...

13 years ago | 0

| accepted

Answered
Is there any easy way to change x*y production to x.*y production?
syms u v y=2*u*v+u^2*sin(v) z=strrep(char(y),'*','.*')

13 years ago | 1

| accepted

Answered
Indexing within two for loops where the index can be below zero
Ptr=[] for ab=0:1:16 for bc=0:1:16 abc=quet(ab,bc); Ptr(end+1,:)=[abc,ab,bc]; end end

13 years ago | 0

| accepted

Answered
How to export data from matlab to excel
Example A=magic(5) xlswrite('filename.xls',A) Look at doc xlswrite doc xlsread

13 years ago | 4

| accepted

Answered
call with matlabfunction(simulink) an other mfile
Look at <http://www.mathworks.com/help/simulink/slref/matlabfunction.html Matlab function> or <http://www.mathworks.com/help/sim...

13 years ago | 0

Answered
how to convert discrete signal to continuous signal in simulink?
You can use a zoh block

13 years ago | 1

Answered
extension of symbols or probabilities
s='A':'H' p=[ 0.3,0.25, 0.20, 0.10, 0.05, 0.04, 0.04, .02] idx=arrangement(1:8,2) new_s=s(idx) new_p=prod(p(idx),2) out=...

13 years ago | 0

Answered
Matlab GUI question regarding pop-up menu
get(handles.popup1,'value')

13 years ago | 0

Answered
Can I call another application using MatLab function?
To run external application use ! operator. Example ! dir

13 years ago | 0

Answered
Second order differential eq. solution
You can transform your equation like: %x1=y %x2=dy %x3=x Your system becomes dx1=x2 dx2=[a3 + a4*log(x2) + a5*lo...

13 years ago | 0

| accepted

Answered
I need to use 'for loop' to read the names from a text file using 'fgetl' function. How do I do that?
fid = fopen('filename.txt'); line1 = fgetl(fid); res=line1; while ischar(line1) if ischar(line) res =char...

13 years ago | 1

| accepted

Answered
Replacing matrix A with another matrix that counts entries from matrix B
A = [1 3 5; 6 4 11]; B = [3 3 2 1 4 6 10 29; 4 2 1 1 99 1 7 29; 8 2 1 6 7 6 11 1] A=arrayfun(@(x) sum(sum(ismember(B,x)))...

13 years ago | 0

| accepted

Answered
Help with if statements and looping
It's not |else endPoints(x) < treelineBPsReversed(counter);| it should be else if endPoints(x) < treelineBPsReversed(cou...

13 years ago | 0

Answered
Concat and display embedded arrays
B = []; for j = 1:10 A = []; for i=1:5 x=randi(3); A=[A;x]; end B =[B;A'] end

13 years ago | 0

| accepted

Answered
Finding the index of a particular point
You can use diff(n) %Or n=[0 0 0 0 0 0 0 0 0.5 0.6 .7 .8 .9 1 1 1 1 1 1 1 1] idx1=find(n==0); idx1=idx1(end) ...

13 years ago | 0

| accepted

Answered
How to change matrix?
N1=[1 2 3;4 5 6] N1=N1(:,1:2) % : means all lines, and 1:2 means column 1 to 2 Look at <http://www.mathworks.com/company/...

13 years ago | 0

| accepted

Answered
HOW CAN I DRAW A FIGURE IN SOLID EDGE USING MATLAB
You can use a <http://www.mathworks.com/help/sl3d/vrml.html VRML>

13 years ago | 0

Answered
Subtract from a matrix the elements of a vector column-wise avoiding for loop
out=bsxfun(@minus,A,D)

13 years ago | 2

| accepted

Answered
Find row number of elements
tempBranch =find(any(ismember(BL,nodeList),2))

13 years ago | 0

| accepted

Answered
Can set the lower limit of the axis manually but leaving to auto the upper limit
xlim([2 inf]) ylim([4 inf])

13 years ago | 13

Load more