Answered
An error on Matlab 6.1
Your version of MATLAB is very old (it's over 21 years old!) and predates the introduction of anonymous functions. Anonymous fun...

3 years ago | 1

Answered
What exactly is vectorization doing
When you go grocery shopping do you go from your house to the store, pick up one item, go from the store to your house, and repe...

3 years ago | 0

| accepted

Answered
Application Compiler not Including Toolbox Functions
Without seeing how you're trying to call prctile in your app it's going to be difficult or impossible to give a definitive answe...

3 years ago | 0

Answered
sinc function doesnt work...
The sinc function is part of Signal Processing Toolbox. Check the output of the ver function to see if you have this toolbox ins...

3 years ago | 0

| accepted

Answered
I got the results I was looking for, but I believe there is an easier way to define the changing variable z which I am not sure of. Could you assist in any easier method?
Can you dynamically create variables with numbered names like z1, z2, z3, etc.? Yes. Should you do this? The general consensus ...

3 years ago | 0

Answered
Matlab display images oriented by 180.
Is the image rotated by 180 degrees, or is it flipped top to bottom? The imshow function calls image which states (in part) in t...

3 years ago | 0

Answered
Passing parameters to ODE solver event functions
The options listed on this documentation page, which are basically the same as the ones on the question to which you linked, are...

3 years ago | 0

Answered
A test driven development method to validate bellman-ford algorithm works
Are you familiar with the testing frameworks included in MATLAB? Can you think of test cases with which to try to break your co...

3 years ago | 0

Answered
Create a histogram of data that is already "bincounts"
Addressing just the question of plotting a histogram given bin counts and bin edges rather than the raw data, you can do this by...

3 years ago | 0

Answered
Find the mean of all variables in a table that contain a specific "word" in a defined variable
Use a string processing function like startsWith, contains, or matches to identify those rows in your table that have Left in it...

3 years ago | 1

Answered
How do i set class members by calling its own methods?
By default, classes in MATLAB are value classes. See this documentation page for a discussion of the differences between value c...

3 years ago | 0

Answered
Why isn't my max iterations increasing?
You're not passing the options you set using optimoptions into fsolve. The optimoptions function doesn't change some "global opt...

3 years ago | 0

Answered
Is there any mathematical method of curve fitting for cases when the modeling function is unknown (another degree of freedom for the form of the function)?
Here's a set of points. Can you tell me the equation I'm thinking of that generated this data? x = 1:6; y = zeros(1, 6); No, ...

3 years ago | 1

Answered
How can i convert binary number to galois field integer number ??
Use the Galois field functionality in Communications Toolbox.

3 years ago | 0

Answered
Getting NaN greater values in a function
What is the factorial of 1000 in double precision? factorial(1000) It overflows. If we computed it symbolically, using arbitra...

3 years ago | 0

Answered
How to check if a generated number is between 2 values
Other options that may be able to do what you want include discretize and interp1. x = rand(5, 1) p = 0:10:100; y1 = discreti...

3 years ago | 0

Answered
Need to change Value in a new object but told "read only"
The documentation page to which you linked is for an object in Bioinformatics Toolbox and so isn't really applicable for the uav...

3 years ago | 0

| accepted

Answered
How to evaluate numeric expression in a string, which contains "12u" (for 12e-6) and "0.1m" (for 0.1e-3) formated numbers (standing for micro and milli)?
I'd like to have a "supercharged" eval function This doesn't sound like a good idea. which would accept expressions where numb...

3 years ago | 0

Answered
How do I find a substring within two different strings at once?
If you're using string arrays, we recommend using a string array and not a cell array containing string arrays. If you do, you c...

3 years ago | 0

| accepted

Answered
When I try to use the function 'magic(n)', Matlab says that the execution of the script magic is not supported
Rename the magic.m file that you've created in the /Users/helloooo/Documents/MATLAB folder. It's preventing MATLAB from accessin...

3 years ago | 1

Answered
how to delete certain columns and rows from matrix
Do you know which rows/columns you want to delete or which ones you want to keep? If to keep: M = magic(4) toKeep = [2 4]; A ...

3 years ago | 0

Answered
What is replacement for instrfind function?
The Compatibility Considerations section of the instrfind function documentation page gives a list of replacement functions for ...

3 years ago | 0

Answered
How to add more parameters to callback function.
I know the cell array approach @Adam Danz suggested for passing additional parameters into a callback function works for callbac...

3 years ago | 0

Answered
Can you use the whos command to identify classes
For the integer types see this documentation page.

3 years ago | 0

Answered
can not activate MATLAB in new computer
See this Answer if you still have access to the old machine or this Answer if you no longer have access to the old machine.

3 years ago | 0

Answered
I get "vectors must be the same length". How come?
If you want the value of C1 to be a constant 15 for all the values of x1, you need to explicitly expand C1 to be a vector of tha...

3 years ago | 0

Answered
Cronometer comparation for rally
I wouldn't use datetime here. Since your times are in units of seconds I'd probably store that data as a duration array instead....

3 years ago | 0

Answered
How to filter table rows according different conditions?
You can do this using ismember or (depending on your conditions) some of the string processing functions like matches, contains,...

3 years ago | 1

| accepted

Answered
MATLAB 2022b installation corruption
After rebooting my PC, the entire account was reverted to Windows start-up, like the day Windows was installed. That obviously ...

3 years ago | 0

Answered
Can someone help with error "index exceeds number of array elements"? I attached image as to what it needs to look like..
The root cause of the problem is that the variables top and integration aren't the sizes you think they are. You may think the l...

3 years ago | 0

Load more