Réponse apportée
In this function [clustCent,data2cluster,cluster2dataCell] = MeanShiftCluster(dataPts,bandWidth,plotFlag);.what is plot flag.The function program given below
Athira - it looks l like this boolean/logical flag is used to plot the data or not if plotFlag figure(1234...

plus de 7 ans il y a | 1

Réponse apportée
How to generate pair of numbers from sequence ?
kitty - you could try using reshape to create a 50x2 matrix of pairs a = reshape(randperm(100), [50 2])

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Subscripted assignment dimension mismatch. Error in Untitled4 (line 80) ffmin(ite,run)=fmin; % storing best fitness
tahseen - the problem with ffmin(ite,run)=fmin; might be because fmin is not a scalar but an array. There could be one or mor...

plus de 7 ans il y a | 0

Réponse apportée
How to get the the column of an array from a cursor click?
Billyp - you can perhaps add a ButtonDownFcn callback to your axes so that whenever the user clicks (within the image) the callb...

plus de 7 ans il y a | 0

Réponse apportée
Combining Edit Text & Popup Menu Code in a Popup Menu Callback?
Regina - in the callback for the push button, use the handles structure to get access to the edit texet control and the pop-up m...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
How to use the same filename more than once in a loop?
D - if your vector of filenames is really a cell array of strings, then you could try something like filenames = {'mdb001.pgm',...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How can i loop through certain columns in matrix, for example, 3th, 5th, 6th and 7th column?
Try using for k = [3 5 6 7] M = fitlm(trening(:,[2 4 k]),trening(:,1),'linear'); e3(k) = M.SSE; end Though be aware t...

plus de 7 ans il y a | 0

Réponse apportée
How I draw a line?
Md - you could use linspace to generate some points along the x-axis and then feed that into your equation to get your correspon...

plus de 7 ans il y a | 0

Réponse apportée
How can you access the data that was used to plot a streamline?
Lolling - from streamline, if you use the handle to the streamline object, then you should be able to get the data that was used...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How to find out how many colums are in matrix?
hawk5577 - use size to determine the dimensions in your matrix. Since you are interested in the number of columns, then numFile...

plus de 7 ans il y a | 0

Réponse apportée
How to compare two array in nested loop ?
Joni - well you can use find or ismember to check to see whether you should add j to the list of indices Ind as if Distan...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
Using Matfile() in combination with a variable
Jan - if you know the name of the variable that you want to reference then why are you setting this to its own variable? What ar...

plus de 7 ans il y a | 1

Réponse apportée
How to make a audio file (.wav) from a colored noise object?
Muhammad - I don't have this toolbox but looking at the examples from Generate colored noise signal and the fact that you are cr...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
I'm making a Pong Game and trying to set the limit of the y direction of the paddles to y max to 9 and y min to -9
David - it looks like you are using your *kpfcn* to move the paddles and are using the code if y5>9 y5=9; end...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How to create a matrix "on top of" an image matrix?
Devin - so you have a 10x10 matrix and a 128x128 image. If we assume that the walls are the borders/edges of your image (and so ...

plus de 7 ans il y a | 0

Réponse apportée
saving recorded file in while loop
Amulya - the error message is telling you that you haven't recorded anything. You may want to put a breakpoint in the code and t...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
how can i work this matlab code in C and get similar results?
Md - is your above program working and you are getting incorrect results? Or is it not compiling or crashing? Please note tha...

plus de 7 ans il y a | 0

Réponse apportée
How to I store the outcome of my program in a text file?
Cinthya - have you opened the file via <https://www.mathworks.com/help/matlab/ref/fopen.html fopen> to get a file descriptor whi...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How to get timer's UserData?
Jai - since the UserData is a struct, why not try data = get(timer1, 'UserData'); steerData = data.steer;

plus de 7 ans il y a | 0

Réponse apportée
xlswrite output numbered files
Silver - try using <https://www.mathworks.com/help/matlab/ref/sprintf.html sprintf> to create your file name for k = 1:20 ...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
how to convert cell in matrix
Sara - <https://www.mathworks.com/help/matlab/ref/cell2mat.html cell2mat> might be what you are looking for.

plus de 7 ans il y a | 0

Réponse apportée
how do i resolve the error Index exceeds matrix dimensions
rohan - I suspect the error is from the line prompt('enter the lattitude'); and every similar line. If you are trying to...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How can I run a MATLAB function using Windows Command Prompt and providing input for the function?
mPayne - see <https://www.mathworks.com/help/matlab/ref/matlabwindows.html Start MATLAB program from Windows system prompt> for ...

plus de 7 ans il y a | 0

Réponse apportée
List of available com ports
Abhishek - according to <https://www.mathworks.com/help/matlab/ref/seriallist.html seriallist>, this function was introduced in ...

plus de 7 ans il y a | 0

Réponse apportée
Hi, i have a 87 * 1 cell array as shown below. how to convert it into a 87 X 11 matrix? Thanks!
Ivy - assuming that your elements of the cell array are strings you could try cell2mat(cellfun(@(x)str2num(x), data, 'Unifor...

plus de 7 ans il y a | 0

Réponse apportée
Static Logo in App Desiner GUI
Luca - you could perhaps use an axes object to display your image (see tutorial at <https://www.mathworks.com/help/matlab/creati...

plus de 7 ans il y a | 0

Réponse apportée
i make this programme in order to get a plot in physics ,, but when i run it ,, i get error which i cant identify and correct it .. please i want a help to identify the correct
Aalaa - I suspect the problem is with (at least) x^2 *x* appears to be a 1x50 array and so the error message is telling y...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
program for lagranges interpolation method using single for loop
PJS - if we assume that *x* is a vector/array then *u* is simply u = (a - x(1)) * (a - x(2)) * ... * (a - x(i-1)) * (a - x(i...

presque 8 ans il y a | 0

Réponse apportée
how to read and save dicom images in different directories
Shel - you are using *uigetdir* to get the source directory *source_dir* which you use to query for the number of files in that ...

presque 8 ans il y a | 1

Réponse apportée
Is equality == available in Matlab 2017 ?
JGUIS - equality does exist in MATLAB, see <https://www.mathworks.com/help/matlab/ref/eq.html Determine equality> for details. W...

presque 8 ans il y a | 1

Charger plus