Answered
How to change the variable name after each run
Can you dynamically create variables with numbered names like x1, x2, x3, etc.? Yes. Should you do this? The general consensus ...

3 years ago | 0

Answered
How to change a bit from 0 to 1.
A = [7;19;12;11;23] B = bitset(A, 5) binA = dec2bin(A, 5) binB = dec2bin(B, 5)

3 years ago | 0

Answered
Curve Fitter tool-Center and scale
Suppose you wanted to fit a quadratic curve to the census data set. format longg load census plot(cdate, pop, 'o-') Let's bu...

3 years ago | 0

| accepted

Answered
Join timetable by time?
Do you want to join the timetables or do you want to synchronize them?

3 years ago | 0

Answered
(Enhancement Request) generated code for the "arguments...end" default argument syntax in matlab coder
Please send this enhancement request to Technical Support directly using the Contact Support link under the Get Support heading ...

3 years ago | 0

Answered
Writing a code to find area of polygon
This wasn't an option when the original question was asked but you could create a polyshape then call area on it. In this exampl...

3 years ago | 0

Answered
Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.
The ability to specify name-value pair arguments as "name=value" was introduced in release R2021a. So instead of this: options ...

3 years ago | 1

| accepted

Answered
How to import class definitions for typing
The full name of that class is not OtherClass1. It is subdir.OtherClass1. This insulates you from the possibility that some othe...

3 years ago | 0

| accepted

Answered
How can I rewrite this to get peak locations?
Perhaps the islocalmax function with the dim input argument will meet your needs.

3 years ago | 0

Answered
Using a function and fsolve with a for loop
Either remove the section of code starting with "T = 1:1:40;" from your function file and run it in the Command Window or anothe...

3 years ago | 0

Answered
Unexpected behavior from FMINSEARCH when using zero or very small initial guess
Take a closer look at the message the last fminsearch call showed you that states why it completed the optimization. Optimizati...

3 years ago | 0

Answered
Is there a utility to check an MCR install?
What does "neither program will run" mean in this context? Do you receive warning and/or error messages either when you create ...

3 years ago | 0

Answered
How to alter a bit
I agree with Jan that the actual format of your data is not clear to me. In the first block of code below A does not contain the...

3 years ago | 1

Answered
I am trying to disallow the user from inputting non-sense answers.
You are missing at least one check. In addition, since the code that gets executed if any of your if statements are satisfied th...

3 years ago | 0

Answered
How to fix anomalies in graphs
It looks like you may be calling plot with x data that is not sorted. Compare plotting a sine curve with sorted data: x = 0:360...

3 years ago | 1

| accepted

Answered
distributionFitter: Lognormal distribution
I am pretty sure that the data and the frequency arrays are positive (>=0). 0 is not positive. What does this command show? a...

3 years ago | 1

| accepted

Answered
i want to guide edit output has number+text
Like this? z = uicontrol(Style="edit"); n = 25; z.String = string(n*1j);

3 years ago | 0

Answered
Matlab file MAC - Script Error
Did you already have a copy of the file in the directory to which you downloaded? I'm not sure if Mac behaves the same way as Wi...

3 years ago | 1

Answered
Calculations wrong in appdesigner
Result should be 315.5 but is not?? So what is it if it's not 315.5? Since you said this is part of an app my guess is that on...

3 years ago | 0

Answered
Output of values via a callback function
For this particular question you could addpoints to an animatedline inside the callback function. Each press of the button callb...

3 years ago | 1

Answered
Error using feval Function to evaluate must be represented as a string scalar, character vector, or function_handle object.
Another approach, if you don't want to work symbolically as @Walter Roberson did, is to create an anonymous function. All I need...

3 years ago | 1

| accepted

Answered
Using accumarray for histcounts2 with >1024 bins in 1 dimension
MATLAB limits the number of bins if you specify BinWidth. If you specify a list of edges MATLAB will use that list of edges to d...

3 years ago | 0

| accepted

Answered
For very long solution result Workspace doesn't show the full answer
Rather than trying to read 100 pages of text, a couple of options that may suit your needs: call the ccode function convert th...

3 years ago | 0

Answered
Matlab built-in function not identified
According to a search there are several different functions named coefTest in Statistics and Machine Learning Toolbox. From a qu...

3 years ago | 0

Answered
How to solve: Limits must be a 2-element vector of increasing numeric values.
Let's look at a couple sections of your code. I'm going to comment out the function declaration line so I can run this in Answer...

3 years ago | 0

Answered
How to plot binned data from a table?
Take a look at the "Aggregate Timetable Data and Calculate Mean Values" example on the retime documentation page.

3 years ago | 0

Answered
Question about toolbox dependencies
The behavior you described for iqr is not a bug. The Version History on the documentation page for the iqr function in MATLAB f...

3 years ago | 0

| accepted

Answered
Add suffix to name of all variables in workspace
Can you dynamically create variables with patterned names like a_test, b_test, c_test, etc.? Yes. Should you do this? The gener...

3 years ago | 0

| accepted

Answered
How to round values of table with mixed types?
Using a sample table: Temp = [37.3;39.1;42.3]; Pressure = [30.1;30.03;29.9]; WindSpeed = [13.4;6.5;7.3]; WindDirection = cat...

3 years ago | 0

Answered
What is an LAPACK loading error when using polyfit?
There are two Bug Reports that look potentially relevant to this situation. One was fixed in release R2014b and the other in rel...

3 years ago | 0

Load more