已回答
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...

10 years 前 | 0

已回答
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...

10 years 前 | 0

| 已接受

已回答
Finding a cell in an array
idx = find(cellfun(@(x) isequal(x , 'vehicle') , testCell))+1;

10 years 前 | 1

已回答
Data Cursor extract data and put into table
coordinates = cell2mat({cursor_info.Position}');

10 years 前 | 3

| 已接受

已回答
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))]...

10 years 前 | 17

已回答
How to edit existing GUI code?
There's an option *Open Existing GUI* besides *Create New GUI*. Select that when you call guide.

10 years 前 | 1

| 已接受

已回答
Conversion of Medical image to Blue Ration
use: imshow(BR , []) Or imagesc(BR)

10 years 前 | 0

| 已接受

已回答
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...

10 years 前 | 1

已回答
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...

10 years 前 | 0

| 已接受

已回答
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

10 years 前 | 0

已回答
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...

10 years 前 | 3

| 已接受

已回答
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...

10 years 前 | 1

已回答
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);

10 years 前 | 0

已回答
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...

10 years 前 | 1

已回答
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...

10 years 前 | 1

| 已接受

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

10 years 前 | 0

已回答
call a function within another function
fucnction functionFileName1() % Code functionFileName2; % Another function you want to call end

10 years 前 | 0

已回答
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 ...

10 years 前 | 1

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

10 years 前 | 0

| 已接受

已回答
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...

10 years 前 | 0

已回答
Read text files and plot the data
doc textscan doc dlmread doc plot doc mean

10 years 前 | 0

已回答
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) = [];

10 years 前 | 1

| 已接受

已回答
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)...

10 years 前 | 0

| 已接受

已回答
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...

10 years 前 | 0

| 已接受

已回答
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 ...

10 years 前 | 0

已回答
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')

10 years 前 | 0

已回答
plot point in specified position
plot(10:10:10*length(A), A, 'r*') xlim([0 10*length(A)])

10 years 前 | 0

已回答
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>

10 years 前 | 0

已回答
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...

10 years 前 | 0

加载更多