A résolu


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

environ 12 ans il y a

Réponse apportée
guidata doesn't save my data, why?
I did not exactly understand,but you can try this method: The data that you want to save in your 1st function,save it to base...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Empty workspace with GUI
Try storing variables in base work space by, assignin('base','name of variable u want to save','value of variable'); To ...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
Matlab Project for Linear Algebra Course
What is M(Y),M(R),M(P) in part B?? For A) part, x = -2.5:0.001:2.5; y = -2.5:0.001:2.5; z = 2*sin(x.*y); plot3(x,...

plus de 12 ans il y a | 0

Réponse apportée
get children of a figure
get(h,'Children') returns handles of children of current object,current object being figure object. Handles provide the ...

plus de 12 ans il y a | 0

Question


Finding who voted your answer
How to know who voted against your answer if any one did vote ?

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
GUI
If you want to access data that is in base workspace in your gui functions, use v = evalin('base','name of variable u want ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
plot and set y color
Try this, figure; plot(sind(1:360)); set(gca,'YColor','r');

plus de 12 ans il y a | 0

Réponse apportée
'For loop' for beginners
sprintf('Enter elements of vector'); % after entering v,run below code for i = 1:length(v) if v(i) > 0 sp...

plus de 12 ans il y a | 1

Réponse apportée
Create Figure Without Displaying it
If h = figure;set(h, 'Visible', 'off'); % do ur plotting here saveas(h,'figure.png'); You will not see a figure poppin...

plus de 12 ans il y a | 4

Réponse apportée
Why the sums of cos(x) over 2*pi range not zero?
In matlab, sin(pi) = 1.2246e-16 The expression sin(pi) is not exactly zero because pi is not exactly π

plus de 12 ans il y a | 0

Réponse apportée
Controlling Y-Axis Label Properties on Multi-Axis Plots
For example: x = 0:0.01:20; y1 = 200*exp(-0.05*x).*sin(x); y2 = 0.8*exp(-0.5*x).*sin(10*x); [AX,H1,H2] = plotyy(x,y1,x,...

plus de 12 ans il y a | 0

Réponse apportée
selecting only the numbers from a string variable
C = regexp(A,'[0-9]','match'); disp(C) So do you need to just display those numbers/return them as a vector

plus de 12 ans il y a | 1

Réponse apportée
How to add a property to the handles?
Let me explain it for an edit box(assuming Tag is 1) x = get(handles.edit1,'String'); set(handles.edit1,'String',z); N...

plus de 12 ans il y a | 0

Réponse apportée
Click on Subplot and Open it in a "New" Figure
One way of doing this is: Example: h = figure; income = [3.2,4.1,5.0,5.6]; outgo = [2.5,4.0,3.35,4.9]; subplot(2,...

plus de 12 ans il y a | 0

Réponse apportée
Handles that were created in the Callback, can be used in the other Callbacks?
Several ways are shared in the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.2...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Plotting: How can I remove the axis label and only have it at points of my choice?
If you mean axes Tick Label at end of your code write this, set(gca,'YTickLabel','||||||1.2') set(gca,'XTickLabel','0.0308|...

plus de 12 ans il y a | 0

Réponse apportée
my loop dint work as i want
Simply, for i = 1:9 a(i) = randi(10); x(i) = a(i); end x

plus de 12 ans il y a | 0

Réponse apportée
Detecting a particular word in a cell vector
see if any(strcmp(M,'MAR')) works for you, if there is MAR it shows 1 else 0 Example: If M = {'MAR' 'POPSIZE' 'OT...

plus de 12 ans il y a | 0

Réponse apportée
How to make sure GUI is deleted before generating it again?
Use delete(name of ur gui) command. A way to do it might be to put a new push button & write above command in that push butto...

plus de 12 ans il y a | 0

Réponse apportée
using a function in another m file
Just make sure the m-files in which both function & subfunction are in same directory.

plus de 12 ans il y a | 0

Réponse apportée
how do you chang RGB Color Space in to the HSI Color Space or YCbCr Color Space ???
YCBCR = rgb2ycbcr(RGB) converts the truecolor image RGB to the equivalent image in the YCbCr color space. RGB must be a M-by-N-...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
about picture saving from figure
@Pan: Say you hv to save 10 figures, for ii = 1:10 h(ii)=figure; end % Now saving figures for ii = 1:10 saveas(h...

plus de 12 ans il y a | 0

Réponse apportée
about picture saving from figure
Do you need your figure to be only in bmp format,if not h=figure; plot(sind(1:360)); saveas(h,'picture','png') % ...

plus de 12 ans il y a | 0

Réponse apportée
why this command does not work
Try command: To pause your code at a point try, uiwait; at the point where you want to resume execution of your code ...

plus de 12 ans il y a | 0

Réponse apportée
Setting seed in random ('normal')
I do not know about seed you r talking about,but if you want to get same sat of random numbers every time do this, rng('defa...

plus de 12 ans il y a | 0

Réponse apportée
Specific Application of a GUI using Guide
Does this help you <http://www.mathworks.com/matlabcentral/fileexchange/24861> if it doesn't post more information as to whe...

plus de 12 ans il y a | 0

Question


Using repmat command to create cell array
I want to create a cell array with a repeating pattern of rgb colors of size n where n is a variable that is determined on the ...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Displaying legend for multiple plots
a=randn(5,50); b=randn(5,50); c=randn(5,50); figure; hold on; for i=1:5 plot(a(i,:),'.-b'); plot(b(i,:)...

plus de 12 ans il y a | 2

Réponse apportée
Displaying legend for multiple plots
h = get(gca,'Children'); Then select handles of lines you want to add to legend. Say h(1) is handle of a line in 1st group,...

plus de 12 ans il y a | 0

| A accepté

Charger plus