Answered
How to plot the on-off status matrix with elements displayed
image() with a colormap with two entries. If you need the labels then text() them into place. You can use find() to get row and ...

4 years ago | 0

Answered
Write a cell arrary of strings into a signle cell on a csv.
It looks like what excel needs for this case is for the file to start with the UTF-8 Byte Order Mark (BOM), and that the embedde...

4 years ago | 0

| accepted

Answered
while loop not performing
ea=abs((vm1-vm)/vm1)*100; Are you certain that you want to use matrix right divide between two vectors that are each 2x1 ? ...

4 years ago | 0

Answered
Shared memory in parfor genetic algorithm
You can use Parallel Data Queue to send results back from the worker to the controller, and another set to distribute results to...

4 years ago | 0

Answered
how many ESP32 can be use with matlab
https://www.mathworks.com/help/supportpkg/arduinoio/ug/configure-setup-for-esp32-hardware.html If you have them connected to ...

4 years ago | 1

Answered
Undefined function 'diag' for input arguments of type 'cell'.
https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/53276/versions/1/previews/ssfem_eb_beam/Hermite_PC.m...

4 years ago | 0

| accepted

Answered
Command to open a workspace variable in new tab
openvar data_array

4 years ago | 1

| accepted

Answered
If-function in tables does not work
if Tab{TabLength,numb1} == 5

4 years ago | 1

| accepted

Answered
How to use textscan to read data specific out of an ASCII-File
If each line has the same format and you are positioned after any header lines, then start the format with 8 occurrences of '%*s...

4 years ago | 1

| accepted

Answered
How do I choose 256 or 0 values from my image?
[row, column] = find(BW); See also regionprops() such as PixelIDList

4 years ago | 0

| accepted

Answered
Why is my script not enterering the elseif argument
end % group No, that is incorrect. You have for moNr, within for jo, within for tsk, so that "end" is matching tsk. You do ...

4 years ago | 0

Answered
How to stop a sub function after certain time from main function ?
If you use parfeval() then you can cancel() the future. However when you cancel a future you do not have access to its worksp...

4 years ago | 1

Answered
How to use monte carlos method without using rand()
You need *some* source of randomness. It does not have to be truly random. There are websites that you can connect to in orde...

4 years ago | 1

Answered
ERROR ... -------------------------------------- cwt ---> Invalid Value for Scales !
Compare the example_ground_motion.acc file with the ex1.acc and ex2.acc files. The example_ground_motion.acc file starts with ...

4 years ago | 0

| accepted

Answered
Assign identification number to image
You are asking for the wrong thing. What you need to do is create a matrix the same size as your image, in which each location i...

4 years ago | 0

Answered
can we apply newton divided difference interpolation method for tumor detection
As previously discussed, the answer is Yes, it can be done, but that the result is likely to be numeric garbage. No-one can p...

4 years ago | 0

Answered
I try to write simple analytical function Gomez and Levy with ga in optimization toolbox but it cannot run
y=(4*x1.^2)-2.1*x1.^4+1/3*x1.^6+(x1*x2)-4*x.^2+4*x2.^4; Notice that you have 4*x.^2 . But x is a vector so that would retu...

4 years ago | 0

| accepted

Answered
GUI transpose code encounter some errors
load db; Avoid using that form of load(). Instead, use load as a function assigning to a variable old = load('db.mat')...

4 years ago | 0

| accepted

Answered
How to in put this on MATLAB
In the places that have the +/-, write one copy of the expression using the + and any other copy using - and multiply the two to...

4 years ago | 0

Answered
How do I stop getting extra zeros from a for loop?
you did not initialize i

4 years ago | 0

Answered
How to remove duplicate x-values and rearrange the y-values?
g = findgroups(x) Col = splitapply(@(Y) {Y}, y, g) ;

4 years ago | 0

Answered
Is there a way to easily capture subplots in an app?
When you use plotting commands without passing in the parent container, they use gca() or gcf() as appropriate. gca() uses gcf()...

4 years ago | 0

| accepted

Answered
Speed up the optimization toolbox problem
No, there are no easier ways. There are some ways that might improve performance even more than using rapid acceleration, but...

4 years ago | 0

Answered
How to get a one function result?
You can create a helper function function varargout = safe(fcn, varargin) try [varargout{}] = fcn(varargin{:})...

4 years ago | 0

| accepted

Answered
I have to do a parallel simulation without a parallel simulation tool box? The main idea is to Remove a for loop that does one iteration after another to speed up computation.
You have a small number of possibilities: * upgrade to a version that supports background pools * obtain the parallel comput...

4 years ago | 0

Answered
What should I do if I get an error message called "Execution of script addpoints as a function is not supported"?
Inside of your function, your global variable p is not class AnimatedLine The most common cause would be that in the place yo...

4 years ago | 1

Answered
How do you make it so that the simplify function displays the correct answer?
(s^2 - 20*s + 200) The roots of that are 10 +/- 10i . So that expression is already fully factorized to real coefficients, ...

4 years ago | 0

Answered
How to make numbers(coefficients of a polynomial) in the plot legend decimal while they are automatically fraction
dig = 4; fplot( vpa( poly2sym( coefficientmatrixflipped(z, :), dig), [0 5])

4 years ago | 0

| accepted

Answered
Appending Values to an Empty Array
size() always returns a vector. Consider numel()

4 years ago | 0

| accepted

Answered
Append indices to vector from container map
That cannot be done in MATLAB under the restrictions you put on. containers.map does not offer any operations that affect all...

4 years ago | 1

| accepted

Load more