A répondu
gui model for filters
Make use of push buttons, add axes to your gui and call your function in the pushbutton callbacks. See this basic <http://blogs...

environ 10 ans il y a | 0

A répondu
Ramp function in Matlab
No, there's no such function in matlab. Check this out: <http://www.mathworks.in/help/signal/gs/waveform-generation-time-vectors...

environ 10 ans il y a | 0

| A accepté

A répondu
Finding a cell in an array
idx = find(cellfun(@(x) isequal(x , 'vehicle') , testCell))+1;

environ 10 ans il y a | 1

A répondu
Data Cursor extract data and put into table
coordinates = cell2mat({cursor_info.Position}');

environ 10 ans il y a | 3

| A accepté

A répondu
Is it possible to insert in a legend a calculated variable?
str = {strcat('z = ' , num2str(z))} % at the end of first loop, z being loop output str = [str , strcat('z = ' , num2str(z))]...

environ 10 ans il y a | 17

A répondu
How to edit existing GUI code?
There's an option *Open Existing GUI* besides *Create New GUI*. Select that when you call guide.

environ 10 ans il y a | 1

| A accepté

A répondu
Conversion of Medical image to Blue Ration
use: imshow(BR , []) Or imagesc(BR)

environ 10 ans il y a | 0

| A accepté

A répondu
if i have 2 cell arrays one containing user names and the other containing coordinate. how can i make the first name equals the first coordinate and so on ? for example i want user1=[x1,y1],....,user50=[x50,y50].
str = {'user1', 'user2', 'user3'}; cordinates = {[1,2], [2,4], [4,8]}; cellfun(@(x,y) assignin('base', eval('x'), y), str, c...

environ 10 ans il y a | 1

A répondu
GUi to wait for events from one of two push buttons
You can store file names in the handles structure and do something like this: function gui_OpeningFcn(hObject, eventdata, h...

environ 10 ans il y a | 0

| A accepté

A répondu
Problem with plotting a 2D graph
get(gca,'Xdir') % see what it says, it must be reversed set(gca,'Xdir','normal') % sets the axis back to normal

environ 10 ans il y a | 0

A répondu
loading a mat file using its location, without knowing its name
<http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F How can I process a sequence of files?> Second method...

environ 10 ans il y a | 3

| A accepté

A répondu
How can I read huge amount of image files and take the corresponding histogram data to a matrix in order?
file = dir('*.jpg'); fileNames = {file.name}; fileNames = sort_nat(fileNames); % sorts string efficiently sort_nat is not...

environ 10 ans il y a | 1

A répondu
cell2mat not working when cell array of type char has numbers of different lengths
[A, B] = xlsread('data.xls'); C = regexp(B, '\d*', 'match', 'once'); E = cellfun(@str2num, C, 'Un', 1);

environ 10 ans il y a | 0

A répondu
How to perform a psudo inverse or inverse of recangular matrix in MATLAB?
doc pinv

environ 10 ans il y a | 0

| A accepté

A répondu
How to make and sum up a matrix with upper diagonal direction without for-loop condition [The fastest way!]
C = mat2cell(A, ones(1, size(A,1)), size(A,2)); ii = mat2cell(0:size(A,1)-1, 1, ones(1,size(A,1)))'; B = cellfun(@(x,y) ci...

environ 10 ans il y a | 1

A répondu
initialize set of sequence variables in a loop
check this out <http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F How can I create v...

environ 10 ans il y a | 1

| A accepté

A répondu
how to save many sub-images?
Stats = regionprops(BW , 'BoundingBox'); % BW is your preprocessed binary image. for ii = 1:length(Stats) croppedImage ...

environ 10 ans il y a | 0

A répondu
call a function within another function
fucnction functionFileName1() % Code functionFileName2; % Another function you want to call end

environ 10 ans il y a | 0

A répondu
How can I find pixel coordinates of a perimeter in a binary image?
If you have a single blob the above answer would suffice but in case you have multiple objects use *bwboundaries*. It gives you ...

environ 10 ans il y a | 1

A répondu
UIControl callback function problems
h = figure(1); str = []; handles.push1 = uicontrol('Style', 'Pushbutton', 'String', 'A',... 'Position', [255, 185, 50, ...

environ 10 ans il y a | 0

| A accepté

A répondu
i am new to matlab and i want to make a circle and generate 50 random points inside it and measure distances
To start with here are some useful links: <http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F How do I create a cir...

environ 10 ans il y a | 0

A répondu
Read text files and plot the data
doc textscan doc dlmread doc plot doc mean

environ 10 ans il y a | 0

A répondu
I had a matrix s of size 4*12540, i want to use only 4*4 of this matrix how should i remove extra columns?
A = yourArray(:,1:4); or yourArray(:,5:end) = [];

environ 10 ans il y a | 1

| A accepté

A répondu
convert matrix into 8*8
originalArray = ones(64); C = mat2cell(A , 4*ones(1,16) , 4*ones(1,16)) C = cellfun(@(x) padarray(x , [2,2]) , C , 'Un' , 0)...

environ 10 ans il y a | 0

| A accepté

A répondu
Changing a variable which is inside a function file from a script
make use of *global* or *evalin*, but it's suggested to avoid both of them. You might want to make use of *setappdata* and *geta...

environ 10 ans il y a | 0

| A accepté

A répondu
How to store in a separate array?
Your dt is itself is an array which grows in the loop as i increases, as i is the indices. And initialize dt before the loop to ...

environ 10 ans il y a | 0

A répondu
How do I use the values in a .txt file to create a stacked bar graph?
bar( [str2num(healthy_exposed)', str2num(pus)', str2num(necrotic)'], 'stacked')

environ 10 ans il y a | 0

A répondu
plot point in specified position
plot(10:10:10*length(A), A, 'r*') xlim([0 10*length(A)])

environ 10 ans il y a | 0

A répondu
fullcross pointer to line or changing a colours?
<http://www.mathworks.in/help/matlab/creating_plots/specifying-the-figure-pointer.html#f5-25777 Defining Custom Pointers>

environ 10 ans il y a | 0

A répondu
find indices of string matches from a cell array by thier endings
A = {'aAbc' 'dgbc' 'bebd' 'fabc' 'fa '}; fun = @(x) (length(x) == regexp(x , 'bc' , 'end')) B = cellfun(fun,A,'Un',0); f...

environ 10 ans il y a | 0

Charger plus