Respondida
Undefined function or variable 'case1' each time I start Matab and run the file
In the 'Set Path' dialog from the top ribbon there is a 'Save' option which should save for future sessions. I don't really und...

más de 9 años hace | 0

Respondida
I want to use popup menu variables in the push button function
<https://uk.mathworks.com/help/matlab/creating_guis/share-data-among-callbacks.html> Personally I always use the approach of ...

más de 9 años hace | 0

Respondida
Mean values of cell arrays
You should be able to use cell2mat to convert to a normal numeric array if your cell contents are always all the same size as ea...

más de 9 años hace | 0

Respondida
assigning output of a for loop to an array
W(Ri) = error_calculation (Ri,Rt,Rm,E); will put the values into an array, assuming the output of error_calculation is a sc...

más de 9 años hace | 0

| aceptada

Pregunta


What is the difference between ishghandle and isgraphics?
This is something that I have wondered for a while. I like to do a lot of validating of things in my code, one of which is to c...

más de 9 años hace | 1 respuesta | 3

1

respuesta

Respondida
How to transfer data from one GUI to a uitable of another GUI
There are a few different methods. This is a very very rough sketch of the setup I use. I have answered a few questions simila...

más de 9 años hace | 1

| aceptada

Respondida
how do i explain which eigenvector the software reports as there are theoretically an infinite number?
doc eig doc eigs will both return normalised eigenvectors, depending on your input arguments.

más de 9 años hace | 0

Respondida
How to find the name of a file from a folder?
If you just mean you want to strip out hidden files then there are probably numerous ways to do it, e.g. import java.io.*; ...

más de 9 años hace | 0

Respondida
I'm getting an error in the line with product (count)= A*B/C
It means that size( product(count) ) does not evaluate to the same thing as size( A*B/C ) so trying to assign t...

más de 9 años hace | 0

Respondida
Returning error messages if input criteria not met
validateattributes( i, { 'double', 'single' }, { 'row', '>', 1, '<', 9 } ) validateattributes( j, { 'double', 'single' }, {...

más de 9 años hace | 0

Respondida
CAN WE USE fftfilt with matlab 2016b version
If you have the Signal Processing Toolbox then such a function does exist.

más de 9 años hace | 0

Respondida
How to update the title with variable string as time evolution
title( ha, sprintf( 't=%f', t ) ) should work

más de 9 años hace | 1

| aceptada

Respondida
RGB to Lab color space
Just using lab = rgb2lab(rgb); seems to give results in the expected output range. I'm not sure what all the extra work...

más de 9 años hace | 0

| aceptada

Respondida
how to generate random integers without using built-in functions?
doc rand doc randi Neither of these are on the list of functions you are not allowed to use and either one of them can b...

más de 9 años hace | 0

| aceptada

Respondida
How to remedy the error for accessing an Index, but the index is out of bounds?
You created your object to have size num_period, then you loop around from j = 1:num_period, but you use j+1 to index into your ...

más de 9 años hace | 0

Respondida
Using colorbar with imagesc
Do you need white to actually appear on the colourbar? Doing this can be difficult because colorbars are usually e.g. 256 or 51...

más de 9 años hace | 0

| aceptada

Respondida
How do I store the return value of a function?
doc containers.Map can be used for caching of non-contiguous results with non-integer lookups. Whether it is worth the cos...

más de 9 años hace | 1

Respondida
Statistical comparaison of 2 matrices 1D.
It would help if you give an example of your matrices. If all you care about is qualitatively, 'high' values matching 'high' ...

más de 9 años hace | 0

Respondida
Error using image Error using image TrueColor - How to plot images created by joining arrays instead of using imread
image( uint8( dot ) ) should work, although just doing what you put works for me too in R2016b

más de 9 años hace | 1

| aceptada

Respondida
Don't understand indexing statement from compiler
sum( ... )( ... ) is not valid syntax in Matlab. You can't chain together parenthesis is what that error is essentially ...

más de 9 años hace | 0

Respondida
Add text to string in for-loop
You need to concatenate( in the else as you currently have it): str = [str sprintf(' + X(%04d) ',i)]; Why do you have th...

más de 9 años hace | 2

| aceptada

Respondida
cropping the matrix size
Yes, just use colon notation doc colon e.g. myMatrix = myMatrix( 1:26, :, : ) but obviously it depends what ...

más de 9 años hace | 0

| aceptada

Respondida
Problem displaying an image on an axis
Always give an explicit axes handle to plotting instructions. Almost all plotting instructions (certainly in base Matlab) allow...

más de 9 años hace | 0

Respondida
Moving license to new computer
<http://uk.mathworks.com/matlabcentral/answers/99859-how-can-i-deactivate-matlab-on-a-machine-i-cannot-access> Then just acti...

más de 9 años hace | 0

Respondida
While and If loop with stopping criteria
iter = 1; while( Error > Tol ) ... out{iter} = PSO_EBW_SD(problem, params); ... iter = iter + 1; ...

más de 9 años hace | 0

| aceptada

Respondida
Which toolbox do I need to use functions 'banded' and 'diagonal'?
These don't appear to be part of any toolbox. If you have a sufficiently recent version of Matlab (not sure when this functiona...

más de 9 años hace | 0

| aceptada

Respondida
How to multiply a vector 3 times to get a 3 dimentional matrix
B * B' .* reshape( B, [1 1 3] ); if B starts as a column matrix. In your case above B * B' would in itself result in a sca...

más de 9 años hace | 1

| aceptada

Respondida
Plot Constant Voltage Curves for a dipole in a vacuum
doc linspace doc plot doc hold

más de 9 años hace | 0

Respondida
"no callback property on the ToggleButton class"?
Judging by the help, and also your code, uitogglebuttons are for use within a buttongroup only where you need to define a Select...

más de 9 años hace | 0

Cargar más