Answered
In GUI, how I can assign any matrix to listbox as a matrix form?
a=[1 2 3;4 5 6;7 8 9] set(handles.listbox1,'String',num2str(a))

13 years ago | 0

| accepted

Answered
Simulink code generation - turning off a subsystem
Remove the subsystem then connect its inputs to <http://www.mathworks.com/help/simulink/slref/terminator.html Terminator> block

13 years ago | 0

Answered
Create model only if it doesn't exist
if isempty(which('Model.mdl')) new=new_system('Model') end open_system('Model')

13 years ago | 1

| accepted

Answered
simplification of an algebraic equation
syms q0 q1 q2 e=q0 - 0.00784*q1*(94.1*q0^2 + 368.0*q1^2 + 149.0*q2^2) + 0.00344*q1*(1511.0*q0^2 + 5900.0*q1^2 + 2400.0*q2^2)...

13 years ago | 0

| accepted

Answered
Finding the greatest value
x=[1 2 3 4 10 11 4 5 6 10 11 1 2 ] id=find(x>=10) a=[diff(id) 20] idx=id(find(a~=1))

13 years ago | 0

| accepted

Answered
how to scale a plot in micrometer?
The plot scaling is normalized, it depends on your numbers. If your numbers are in micrometer, then the scaling will be in micro...

13 years ago | 1

| accepted

Answered
how to calculate max of symbolic variable?
max(double([y,z]))

13 years ago | 0

| accepted

Answered
How to put a list of different arrays, one after another, to create a new array ?
for i=1:10 y = myfunc(); data(i)= y end

13 years ago | 0

Answered
What is syntax to set second index of listbox to a certain value?
a=get(handles.listbox1,'String') a{2}=5 set(handles.listbox1,'String',a)

13 years ago | 0

| accepted

Answered
M file search another
you have nothing to do, run the first file, then the second

13 years ago | 0

Answered
how to enlarge the font size in matlab R2013a help
Write in windows commande preferences

13 years ago | 0

Answered
Access data stored in a GUI table
M=get(handles.uitable1,'data')

13 years ago | 1

| accepted

Answered
how to plot three variables in a line graph with values ?
ax(1) = 0.98 ax(2) = 1.2 ax(3) = 0.23 bx(1) = 2.1 bx(2) = 0.236 bx(3) = 1.25 cx(1) = 0.01 cx(2) = 0.025 cx(3) = 0.52 ...

13 years ago | 0

Answered
saving in xls format
Use <http://www.mathworks.com/help/matlab/ref/xlswrite.html xlswrtite> A=[1 2;3 4] xlswrite('file.xls',A)

13 years ago | 0

Answered
A little help in understanding a function
a=[] % is a 0x0 (empty) double array a={} % is a 0x0 (empty) cell array

13 years ago | 0

| accepted

Answered
How to get amount simulation time on simulink?
You can use <http://www.mathworks.com/help/simulink/slref/clock.html clock> block

13 years ago | 0

Answered
how can i store multiple values in a single variable and plot a graph?
x(1)= 12 + 5 x(2) = 12 - 8 x(3) = 25 * 5 x(4) = 5 /1.2 x(5) = -log(2/5) plot(x)

13 years ago | 0

Answered
Value of Pop-up Menu
The code should be gender = (get(hObject, 'Value')); switch gender case 1 %do case 2 %do ...

13 years ago | 0

Answered
cell array concatenation problem
What is the problem? your screen is too small to display the whole string

13 years ago | 0

Answered
Making a standalone exe from m files
look at this <http://www.mathworks.com/videos/getting-started-with-matlab-compiler-68744.html video>

13 years ago | 0

Answered
How to use same colors inn all figures when making several figures with a loop
Use plot(aVars(11,:,iAar), 'color', [1 0 1]);

13 years ago | 0

Answered
Reading file paths into cell array
files=ls('yourfolder')

13 years ago | 0

Answered
create vector from matrix without loop
A = [ 1 2; 3 4; 5 6] B = [2 1 1]' C=A(sub2ind(size(A),(1:size(A,1))',B))

13 years ago | 0

| accepted

Answered
How can I save the coordinates from ginput()?
Use a cellarray for k=1:3; %For 3 buttons [ii,jj] = ginput(4) x{k}=ii y{k}=jj end

13 years ago | 0

Answered
making permutations in row elements in a matrix
A=[15 20; 10 30; 40 30; 50 10; 15 35] id1=A(:,1)/5 id2=A(:,2)/5 id=id1+id2 idx1=arrayfun(@(x) randi(x,1,1),id) idx2=id-id...

13 years ago | 0

| accepted

Answered
Set the Variable 'Global' in GUI?
If you want to use it in any callback use guidata handles.yourvar=yourvar guidata(hObject,handles) To use the variabl...

13 years ago | 2

| accepted

Answered
How to Convert an Input Sine Wave into an 8-Bit Digital Signal
t = [0:1:4000]; fs = 4500; Input1 = sin((2*pi*t)/fs); quant=max(Input1)/(2^7-1) y=round(Input1/quant) signe=uint8((s...

13 years ago | 3

| accepted

Answered
how to name points in a plot?
for i=1:length(xk) text(xk(i),yk(i),num2str(i)) hold on end

13 years ago | 1

Answered
How to modify title (size or position)?
title({'May 10';' Run 6 | MN'});

13 years ago | 0

Answered
how to load multiple text file
Use sprintf to generate multiple file name. for k=1:30 filename=sprintf('wani_dorsi_trial%d.txt',k) % do end...

13 years ago | 0

Load more