Réponse apportée
How to use ginput with live video?
I don't really think ginput() would be the best function to use. why not something like %%live video answers example ...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
How can I change cell mode color settings?
it is back in the color options that you used to change the background to black. you should be able to expand the colors catego...

environ 10 ans il y a | 0

Réponse apportée
How to find all possible combinations of an array?
the function perms will generate all the combinations perms(2:7) will give you 7 6 5 4 3 2 ...

environ 10 ans il y a | 0

Réponse apportée
plotyyy: third plot as bar
quickest and easiest way would be to edit the plotyy line of the graph to be [ax,hlines(1),hlines(2)] = plotyy(x1,y1,x2,y2,...

plus de 10 ans il y a | 1

Réponse apportée
get plot handles from existing legend from 2014b on
you can extract that data in a way like this: figure; originaldata = rand(10); plot(originaldata); h = legend('bla...

plus de 10 ans il y a | 0

Réponse apportée
Generate all possible combinations of a few variables of a maximum length using certain mathematical operators/functions?
This is certainly possible and to perform this easily i'd tackle this in two parts. # create function to perform single var...

plus de 10 ans il y a | 0

Réponse apportée
I had time 21:09 and i want to generate previous 10 time events like 21:08 to 20:59. so how to implement?
the units of datenum are in days so you need to subtract by the fraction of day. datestr(datenum('21:09')-1/24/60,15) %wil...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
labeling points on graph
you can use the function text() like here in my example n = [10e21,10e18,10e27,10e36,10e32]; kt = [10000, 10, 1000, 10,...

plus de 10 ans il y a | 1

Réponse apportée
How to find these rows in a dataset directly before a sequence of NaNs?
so you can create something like this: sampdata = [2 4 1 20 2 4 2 1 2 4 3 NaN 2 4 4 NaN 2 4 5 NaN...

plus de 10 ans il y a | 0

Réponse apportée
What is difference between these two commands of MATLAB.
if you look up the documentation you'll see what the inputs mean. both will give you different P's of the input sizes m x n of ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
how can i plot a sine wave with different peak amplitudes
you can add different sine waves together that have different amplitudes and periods. ex: t = 0:.1:100; amp = zeros...

plus de 10 ans il y a | 0

Réponse apportée
How to plot like this?
well the first part is easy since sum(your128x128x32matrix,3) will sum your images together. next you can use what was suggeste...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Problem with empty text input GUI
odd because if i use this snippet of code: figure, txtbox = uicontrol('style','edit'); %% txt = get(txtbox,'string...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
Can my ui table also act as my plot legend?
yes you absolutely can. It just takes some basic knowledge of HTML and knowing how to get/parse/extract handle properties. ...

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
Create a matrix (24,72) using 'for' loop.
since it is a nice simple pattern of (zeros for columns that are a multiple of 3) then: DesiredResult = ones(24,72); Desir...

plus de 10 ans il y a | 2

| A accepté

Réponse apportée
How to change values of variable in both increasing and decreasing manner in GUI ?
is this not just setting the max and min properties of the slider to a min value of -10 and max value of 10? example: func...

plus de 10 ans il y a | 0

Réponse apportée
how to pick the pair of numbers?
You can use the function nchoosek() (example: nchoosek(1:5,2))) so it has your array 1 through 5 and it'll supply the unique pai...

plus de 10 ans il y a | 0

Réponse apportée
Hello, Is there any way that i can lock my models that i create in MATLAB/Simulink? I want to protect my Matlab/Simulink files with password in order to avoid any modifications from other peoples. Thanks
depends on what you're doing and how you're giving them to people. Do you want them to still be able to read them? if not at l...

plus de 10 ans il y a | 0

Réponse apportée
How to color a line based on error range
So.... after digging through your code (next time please include a picture of what you're dealing with and why you don't like it...

plus de 10 ans il y a | 0

Réponse apportée
Updating text in a GUI
one of the many questions is how long is the calculation? if it is quick enough (i don't know how quick is quick) matlab maynot...

plus de 10 ans il y a | 0

Réponse apportée
Density Plot Discrete Points
take a look at the Surface Plots of Nonuniformly Sampled Data section of <http://www.mathworks.com/help/matlab/visualize/represe...

plus de 10 ans il y a | 0

Réponse apportée
matlab plot in real time
no idea what you're doing with A or B especially with defining B but then using it as the indexer in the for loop but get what y...

plus de 10 ans il y a | 0

Réponse apportée
Csvwrite a matrix with header
simple way is to write the header in using fprintf cHeader = {'ab' 'bcd' 'cdef' 'dav'}; %dummy header commaHeader = [cHe...

plus de 10 ans il y a | 5

Réponse apportée
How can I create a bubble different size plot?
you are best off not using markersize. Markersize is unitless and there is not many explanations on how to set it to correspond...

plus de 10 ans il y a | 0

Réponse apportée
Change string of pushbutton from radio button callback?
change hObject to handles so set(hObject.btAPPLYFT,'String','DETECT PITCHES..'); turns to set(handles....

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
FFT of a row of data (for a beginner)
convert the data using the function double() y = double(Data(1,:)) you can read up on the different types of numbers and ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
I want to read images from a gallery contain 20 color images and then convert these to gray scale images and finding histogram for each,how can I do it? making index for every image!!!
you'll have to do something like this: yourgalleryfolder = 'D:\Master\Research\Practical-Matlab\1\'; imagefiles = dir(fu...

plus de 10 ans il y a | 0

Réponse apportée
Sliding window in a matrix
you can perform what you're doing a bit simpler. E = randi(100,6000,3); %my generation of dummy data windowL =500; ...

plus de 10 ans il y a | 0

Réponse apportée
Subtracting within a Matrix
you can use the built in function unique to determine this: A =[ 1 0; 1 2; 1 3; 2 3; 2 4; 3 1; 3 6; 4 5] [c1,ia1,ic1] =...

plus de 10 ans il y a | 1

| A accepté

Réponse apportée
I need discover a value using Linear Interpolation.
look up the function interp2. using the example you should get something like temp=McKetta(1,2:end); psi = McKetta(2:e...

plus de 10 ans il y a | 0

Charger plus