Réponse apportée
I want to multiply 2 arrays
I don't see the problem. What are you expecting the answer to be? * 4951 * 2 = 9902 * 5782 * 2.5 = 14455 * etc...

plus de 9 ans il y a | 0

Réponse apportée
GUI: Call external functions or define them within a GUI?
The short answer is no there is no performance issue here and splitting up functionality into separate functions should be encou...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
Matlab R2015b 9.0 Runtime mclmcrrt9_0.dll attempting to load
1) You need to ensure that version and architecture of MCR match version and architecture of MATLAB that GUI was compiled in. I ...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
How to transform a matrix from a text file to numeric matrix to perform calculations with.
Here's an example of how you can import the data as doubles. I'll leave you to reshape the matrix if you need to. fid = fop...

plus de 9 ans il y a | 0

Réponse apportée
How do I keep parameter and variable workspace and simulink visibility when running a *.m file from a GUI?
Your variables will now be living in the function workspace of your GUI function. By default, Simulink is looking in the MATLAB ...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
returning the longest substring of consecutive '1'
Get the largest: sSplit = strsplit(s, '0'); y = max(cellfun(@numel, sSplit)); Now get the equivalent string: l...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Hi, i'm new to matlab. is there any tools to perform GA optimization on FCM clustering in matlab?.
Check out global optimisation and fuzzy logic toolboxes: <https://uk.mathworks.com/discovery/genetic-algorithm.html> <http...

plus de 9 ans il y a | 0

Réponse apportée
Running Simulink in Matlab
There are lots of ways to log data in Simulink. You should read the doc to find the best method for you. It's difficult to offer...

plus de 9 ans il y a | 0

Réponse apportée
how to output a vector, when removing duplicates from a vector?
The length: numel(unique(vec)) Just the numbers: unique(vec);

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
How to convert from a for loop to a while loop
This does not need to be any kind of loop. You should learn about logical indexing in MATLAB. This can be done with one line of ...

plus de 9 ans il y a | 0

Réponse apportée
How can I use the chirp function to create a linear sine sweep from a given starting and ending frequency within a given time frame?
% create time signal freqSamp = 1e6; tStart = 0; tEnd = 3; t = tStart:1/freqSamp:tEnd; % create swept sine ...

plus de 9 ans il y a | 2

Réponse apportée
How do I pass simulink start and stop times to simulink from a .m file called by appdesigner created GUI.
Yes. StartTime and StopTime are the Model Parameters that you can set from the command line. The full list of model parameters c...

presque 10 ans il y a | 6

| A accepté

Réponse apportée
How can I use a function on a series of values?
a = arrayfun(f, n(:,1), 'UniformOutput', false); n(:,2:3) = [a{:}]';

presque 10 ans il y a | 0

Réponse apportée
How to do the nonlinear curve fitting with script fie in matlab?
You could use the Curve Fitting App to interactively setup your curve fit. Once you are happy you can then generate MATLAB code ...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
Putting in custom grid lines in figures
<https://uk.mathworks.com/help/matlab/ref/line.html>

presque 10 ans il y a | 0

Réponse apportée
Countdown Timer MATLAB GUIDE
You could use a timer object and in the callback have it update a text label in your GUI. <https://uk.mathworks.com/help/matl...

presque 10 ans il y a | 0

Réponse apportée
Can anyone help me interpret and if possible give an example?
This sounds very much like a homework question which we obviously can't give a direct answer for. Have you tried any code so far...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
plot inside a callback
I think you need to reset the callback if you plot into the axes. Try adding the line below after your plot command. hObjec...

presque 10 ans il y a | 0

Réponse apportée
How to discretize measurement in Simulink?
<https://uk.mathworks.com/help/simulink/slref/quantizer.html Quantizer>

presque 10 ans il y a | 1

| A accepté

Réponse apportée
Converting Hashtables with Matlab?
Hopefully this example helps to explain. You can obviously skip over the creating bit as you already have a table and presumably...

presque 10 ans il y a | 1

| A accepté

Réponse apportée
Where should I report a bug that I find in MATLAB?
Login to your MathWorks account > My account > Service Requests > Create new service request. You can also try the link <http...

presque 10 ans il y a | 0

Réponse apportée
How to combine two or multiple structs with different fields?
It's a bit of an odd thing to want to do. If you really want to stick with the structs then I think you will need to loop over a...

presque 10 ans il y a | 0

Réponse apportée
What is the difference between ishghandle and isgraphics?
isgraphics was introduced in R2014b along with HG2. You can replace all instances of ishghandle with isgraphics going forward an...

presque 10 ans il y a | 1

| A accepté

Réponse apportée
How to choose some rows of a table by order?
You could use the <https://uk.mathworks.com/help/matlab/ref/findgroups.html findgroups> and <https://uk.mathworks.com/help/matla...

presque 10 ans il y a | 0

Réponse apportée
Trying to do central difference using for loop, getting error
You must index into an array/matrix with integer values. In your case you are trying to index into variable x with the variable ...

presque 10 ans il y a | 1

| A accepté

Réponse apportée
Read in multiple .pmg files and perform imread(), im2double(), and imgradient() Principle component analysis
Don't forget that the dir command will also return two entries for current directory and parent directory (. and ..) so you can'...

presque 10 ans il y a | 0

Réponse apportée
GUI "saving' indicator that doesn't affect figure
If you want to display progress then take a look at creating a <https://uk.mathworks.com/help/matlab/ref/waitbar.html waitbar>. ...

presque 10 ans il y a | 0

| A accepté

Réponse apportée
Making a matrix using colons or linspace working improperly within code
I suspect there is nothing wrong with your MATLAB here and you just need to take a look at what your sample rate is and then thi...

presque 10 ans il y a | 0

Réponse apportée
How to create a signal matrix
It looks like the issue might be because you are only looking in the first row of rankfull2 with your >319 line of code. Anyway,...

presque 10 ans il y a | 1

| A accepté

Charger plus