Respondida
Finding strings with common character
Read the data into MATLAB, split it into separate words if necessary, then use startsWith to determine which words start with yo...

más de 2 años hace | 1

Respondida
Add variable names to figure legends
So do you have variables named beats_Local_var1_W1, beats_Local_var1_W2, beats_Local_var1_W3, etc.? If so can you dynamically c...

más de 2 años hace | 0

Respondida
can we apply ode45 on .mat file
Okay, so based on the keywords in the comment a quick Google search found this page. So is this your x matrix or your matrix, u...

más de 2 años hace | 0

| aceptada

Respondida
Generating Phase Portrait of ODE system
I would specify an OutputFcn in your call to the ODE solver, as described on this documentation page for the odeset function. Th...

más de 2 años hace | 0

Respondida
When calling a class (say, to convert types), are we calling a function?
For example, what is the behind-the-scenes difference between calling sin as a function, and calling logical as a function? N...

más de 2 años hace | 3

| aceptada

Respondida
The function is debugging too long...
if(xold-(xold-1)<=tolx), break, end%&(abs(y)<=toly Assuming that xold is "nice" (no infinities, not large enough for xold-1 to ...

más de 2 años hace | 1

Respondida
Point array to generate meshgrid
I don't believe pcolor allows you to create elements with more or fewer than 4 sides. What I think you want to do is either crea...

más de 2 años hace | 0

Respondida
How to perform elementwise multiplication between two matrices with different size or summation between two matrices with the same size
Let's look at the sizes of the arrays in question. f = 1:10; x = -22:1:22; y = -22:1:22; [u,v] = meshgrid(x,y); whos f x y ...

más de 2 años hace | 1

| aceptada

Respondida
why can't I reproduce my random numbers
I suspect you think these two lines of code do something different than what they actually do. therng1 = rng(1); therng2 =...

más de 2 años hace | 2

| aceptada

Respondida
Upgraded Matlab from 2022b to 2023b and I've noticed a floating point error
As others have said it's impossible to give a firm answer with the limited amount of information you provided. Some possibilitie...

más de 2 años hace | 1

Respondida
Is there anyway to increase the calculation speed of this sqrt integral2 without loosing accuracy?
Let's look at what the surface you're trying to integrate looks like. g = @(xx,yy)sqrt((xx.*1.103872343207215e+1-yy.*3.60554487...

más de 2 años hace | 1

| aceptada

Respondida
Why does argmin index of NaN array have a value of 1 and not NaN?
If the second output from min in the case where the input is all NaN values were NaN, every single call to min that wanted to us...

más de 2 años hace | 0

Respondida
How Can I Calculate Displacement Of An Object (it can be a point on object) Out Of A Video Record
So you want to track an object through the video? I believe several of the examples found by this search may be relevant, partic...

más de 2 años hace | 0

Respondida
what does A/b mean when solving matrix Ax=b
The \ operator (mldivide function) solves for x in A*x = b. The / operator (mrdivide function) solves for x in x*A = b.

más de 2 años hace | 1

Respondida
How to find leaves in minimal spanning tree
It has been a while since this question was asked, and this answer wouldn't have worked at the time it was first asked, but you ...

más de 2 años hace | 0

Respondida
Access property of class object found by "whos"
So when you use an instance of this class, you want that instance to check if it was last updated too long ago? Why not just sto...

más de 2 años hace | 0

Respondida
Unit/integration tests that involve closing/re-opening handles to objects
What you're describing sounds like you could easily fall into Interacting Tests, a category of Erratic Tests. If you had some w...

más de 2 años hace | 1

Respondida
Loading variables to a specifc workspace
How can i use the load command to load variables to a specific workspace In general, you cannot do exactly what you asked. Ther...

más de 2 años hace | 0

Respondida
Clustering Calibration Data for Calculations in a Matrix
I'd just use the groupsummary function.

más de 2 años hace | 0

Respondida
Draw the surface of a two variables function
Let's look at the values your function takes on at the corners and the center of the region you're plotting. format longg Z = ...

más de 2 años hace | 0

Respondida
Automatically adjust bin width
Rather than trying to implement the binning operation yourself, I recommend you call the histcounts function in a looping constr...

más de 2 años hace | 1

Respondida
How easy is it to give a Matlab toolbox as a Christmas present?
I'm not certain if gift vouchers are available. I recommend you contact the Sales department directly using this link to ask thi...

más de 2 años hace | 0

Respondida
how can i get matlab code for this paper
If you have a specific question about where you're having difficulty implementing the code for this paper, show us the code you'...

más de 2 años hace | 0

Respondida
How do I index a variable based on the outcome of a logical expression (e.g if x +y = 2 then variable 2 is indexed)
Here's an example with one die. You can imagine how much more code than this you'd have to use if you wanted to count the freque...

más de 2 años hace | 0

Respondida
Why is the preprocessor check #if ( UCHAR_MAX != (0xFFU) ) || ( SCHAR_MAX != (0x7F) ) being generated in private.h?
From the Wikipedia page for C data types: "The minimum size for char is 8 bits, the minimum size for short and int is 16 bits, ...

más de 2 años hace | 0

Respondida
Error using linprog (line 369)
Please send your code and data to Technical Support directly using this link so the development staff can determine the cause of...

más de 2 años hace | 0

Respondida
Incorrect number or types of inputs or outputs for custom function.
Rather than making a 0-by-0 intL array and then immediately expanding it to be (potentially much) larger, why not start off assi...

más de 2 años hace | 0

Respondida
Path(pathdef) Error
Does your Run_Script script file define a variable named path on line 1, right before it tries to call the path function on line...

más de 2 años hace | 1

Respondida
How to Add Title to Legend ?
You're using a release of MATLAB that's more than ten years old. MATLAB has changed quite a bit during that decade, including a ...

más de 2 años hace | 0

Respondida
Function works fine in MATLAB, however, when I get to MATLAB coder, it fails with error does not terminate due to an infinite loop
Rather than checking if s is a char vector or has positive length, if you want to stop when the file has been read in I'd use fe...

más de 2 años hace | 0

| aceptada

Cargar más