Answered
Tick Labels INSIDE plot
plotyy() might help if you have two plots, but if you have several plots, I am not sure. I am not aware any way you can change t...

15 years ago | 0

Answered
How to improve GUI
According to this post, there is tab-panel capability in R2011a. I don't have R2011a so don't have hands-on experience. But even...

15 years ago | 0

| accepted

Answered
Get data from Excel sheet from running .m scripts
I have not used Spreadsheet Link for a while. I prefer COM server or using xlsread() and xlswrite(). But here is a link. <htt...

15 years ago | 0

| accepted

Answered
dataset array - how can new data be added from a cell array that has some missing elements
dataset=struct('prop',propCellArray); If dataset already exists, use [dataset.prop]=deal(propCellArray{:}) Okay, don't us...

15 years ago | 0

| accepted

Answered
Problem: how to stop animation in GUI and problem with stacking plots in axes
Add an if-statement in your for-loop. if get(handles.pbStop,'Value') % do all those stuff else break; %terminate t...

15 years ago | 1

| accepted

Answered
uitable callback: replace cell in a cell array with 'char' string value gives NAN not 'text'
try datacellarray(event.Indices(1),event.Indices(2)) = {event.NewData};

15 years ago | 1

| accepted

Answered
how to make a Mx1xN matrix to MxN
a=rand(3,1,2); b=reshape(a,3,2); or c=squeeze(a);

15 years ago | 2

Answered
MATLAB 2008b Compatable alternative.
The incomparable part is probably the ~ symbol. You can change that line to be: [trash,index]=min(abs(array-value)); It was ...

15 years ago | 0

Answered
Read file from line #1 to line #2
fgetl() will read one line at a time. If you know which lines to read, you can write a for-loop to skip the previous lines. Ass...

15 years ago | 0

Answered
Sort Excel sheet by color of first column
I don't think you can sort by the color directly. You have to read in the color first and then sort them.

15 years ago | 0

Answered
read .txt to cell array with keeping the row and column structure
%% fid=fopen('test.txt','rt'); a=textscan(fid,repmat('%s ',1,12)) fclose(fid);

15 years ago | 0

| accepted

Answered
How to project matrix wich size is 512x512x23 ?
If you don't have x,y,z data, then use it's index, 1:512 for x and y, 1:23 for z, try slice(data,100,200,10)

15 years ago | 0

Answered
Error using ==> load Number of columns on line 1 of ASCII file must be the same as previous lines.
What version of MATLAB are you using? I tried on R2007b. It is fine. >> mydata=load('test.txt') mydata = 1.0000...

15 years ago | 0

Answered
use of movefile to move files to another dir
What is your question? A few things. # savepath='Y:\ykumkar\MyWork\';% need to have single quotes for sting assignment # sp...

15 years ago | 0

Answered
“plot” function for some repetitive X values
What effect do you want? You can always split them and plot them separately. %% x=1:10; y1=2*x+10; y2=x.^2; x=[x x];y...

15 years ago | 1

Answered
problem in converting GUI into EXe file
<http://www.mathworks.com/matlabcentral/answers/14644-convert-gui-to-executable-file>

15 years ago | 0

Answered
How to find strings of ones in a vector
Can use find() directly. And it's faster than strfind(). %% x=[3 1 1 5 7 2 1 1 1 9 10]; a=diff([0 x 0]==1); b=[find(a==...

15 years ago | 1

Answered
Convert GUI to executable file
If you have the MATLAB Compiler toolbox, you can deploy your GUI application to an .exe file. Simulink related programs may not ...

15 years ago | 0

Answered
How to scan a user-input sentence/phrase for the individual words
A rudimentary way as a starter InputText='This is is my testing speech.'; Words=textscan(InputText,'%s'); Words{:}

15 years ago | 1

| accepted

Answered
how to draw or insert tangent line in my simulink result ie. speed Vs time graph ?
If you have the speed and time data, you can use gradient() to get the acceleration. %% ts=0.1; t=0:ts:7; Speed=sin(t);...

15 years ago | 1

Answered
Writing data into a file when using repmat
[repmat('%g\t',1,5),'\r\n']

15 years ago | 1

Answered
Help open
Use edit('filename.m') is safer. open('filename.m') may execute the .m file. It depends whether you have a openm.m file defin...

15 years ago | 0

Answered
Change or remove duplicate matrix elements
It works in certain degree but your algorith has a flaw. You'll see it clearly running the following. value=sort(value); ...

15 years ago | 0

Answered
Problems reading .RAW file
I don't think MATLAB supports .RAW file yet. See <http://www.mathworks.com/help/techdoc/ref/imread.html> You might consider con...

15 years ago | 0

Answered
Returning Data from a GUIDE GUI
Watch this video. Seems to be exactly what you want. <http://blogs.mathworks.com/videos/2010/02/12/advanced-getting-an-outpu...

15 years ago | 0

Answered
random number generation with changing probability
a=randsrc(10,1,[1 0;1 0]); b=randsrc(10,1,[1 0;.75 .25]); c=randsrc(30,1,[1 0; .5 .5]); data=[a; b; c]

15 years ago | 2

| accepted

Answered
how to threshold the values obtained by using 'max' function
%% a=magic(4) b=a>10 [I,J]=find(b)

15 years ago | 0

Answered
How to accept only numbers in a edit text box?
%% Temp = uicontrol('style','edit',... 'units','pixels',... 'position',[25 364 101 31],... ...

15 years ago | 5

| accepted

Answered
How to show a image logo in axes?
h=axes; imshow('board.tif','parent',h);

15 years ago | 0

Answered
Can I access what's in the test vector in MatLab code during Main Test?
Is your test vector data a structure? The function to get its field is called getfield(). getvalue() seems to be a different fun...

15 years ago | 1

Load more