Answered
Indices must be either positive integers or logical numbers
If you wanted to multiply k by d_m*2.*tan(rad_theta)^2 you've forgotten * or .* after k.

6 years ago | 0

Answered
Shortcut to switch between editor tabs on MacOS
Open the Shortcut subsection in the Keyboard section of the MATLAB top-level item in the Preferences. You can open the Preferenc...

6 years ago | 3

Answered
How to create a figure design that propagates through all axes of subplot figure
Some of those properties you could set as default property values for all axes in your figure, but I'd probably just write up a ...

6 years ago | 0

Answered
Matlab2019b on macOS Sierra
The System Requirements page for release R2019b states that "macOS Sierra (10.12) is no longer supported." The earliest Mac OS o...

6 years ago | 0

Answered
Plotting multiple polyshapes using for loop but speed is too slow
Instead of finding, deleting, and replotting the polyshape each time, just use the modification functions like rotate, scale, an...

6 years ago | 0

| accepted

Answered
How to create a histogram without using the matlab function
Consider using discretize to bin the data then passing that grouping information into groupsummary or splitapply.

6 years ago | 1

Answered
plotPartialDependence cannot be recognize
What exactly is mdlRF? Is it a "full regression model object" or a "compact regression model object" as the documentation page s...

6 years ago | 1

| accepted

Answered
abs() in anonymous function
If this error started occurring when you added an abs call inside the anonymous function, you most likely have defined a variabl...

6 years ago | 0

Answered
matlab's addpoints function stopped working, it says that I'm trying to use the script as a function
What is the MATLAB root directory for your installation? You can find this using the command: matlabroot Are you certain that ...

6 years ago | 1

Answered
Variable Depth Struct Field Reference
You were very close with your setfield call. You need to turn your list of fields into a comma-separated list so that each eleme...

6 years ago | 0

| accepted

Answered
How can i call the workspace griddedinterpolant in my script ?
From the fact that you mention coder.load I suspect you want to generate code from your function using MATLAB Coder. If so, know...

6 years ago | 1

| accepted

Answered
Undefined unary operator '-' for input arguments of type 'function_handle'.
@(y)exp(-integral(@(theta)I2a,-thetaR,thetaR,'ArrayValued',true)).*I1a(y) theta_R is a function handle. If you want your lower ...

6 years ago | 1

| accepted

Answered
Change LineWidth with each loop
Store the handles to the lines (or find the handles to the lines each time with findobj or findall). set the LineWidth for all ...

6 years ago | 0

Answered
how to normalize data between specific range
Use the normalize function.

6 years ago | 1

Answered
How to fastly compute a double integral of a self-defined function?
Use the integral2 function.

6 years ago | 0

| accepted

Answered
Which ones are the two false?
This reads like a homework assignment. If it is, you should ask your professor and/or teaching assistant for help since there do...

6 years ago | 0

Answered
How Matlab builds the default preference file?
What happens after I delete a preferences file from Matlab? Will the Matlab preferences be restored the next time I open the pro...

6 years ago | 0

| accepted

Answered
rational curve fitting function?
If they're all using the same type of fit, you could try fitting once interactively then generating code from the app and runnin...

6 years ago | 1

| accepted

Answered
It script "Laplace1.m" works without errors in matlab R2018b, but in Matlab R2019b gives the following error:
Nowhere in the code you've shown do you show the array place or the function place. [There is a place function in Control System...

6 years ago | 0

Answered
Why the values are lost after the decimal point if I use the double type in my script?
Let's look at the relevant pieces of your code. lon2=int32(lonn); n=0; for k1=3:118883 for j1=6:69 for i1=lon2(1,j1-...

6 years ago | 0

| accepted

Answered
Stackedplot with x-axis vector
Where is the data from which you want to create the stackedplot stored? stackedplot({'Channel'},{'illite','kaolinite'}); I thi...

6 years ago | 0

Answered
keep getting errors on matlab
Let's define a few new variables. But first, here are the definitions of the three original variables from your code: t = xlsre...

6 years ago | 2

| accepted

Answered
Numbering options in a table
This example uses the table created by the code in the help text for the table function. Step 1: Build the original table. loa...

6 years ago | 0

Answered
error: "Attempt to execute SCRIPT "normrnd" as a function:"
Let's make sure you haven't created / downloaded a normrnd.m that's taking precedence over the version of that function in Stati...

6 years ago | 0

Answered
not enough input arguments
You've defined your function to accept up to three input arguments. function b = rq_fnm(X, y, p) On the first line of your fun...

6 years ago | 0

Answered
Installation guide for Matlab R2017b free available compiler available
On the Support section of the MathWorks website, one of the items in the "Other Resources" section is the System Requirements. S...

6 years ago | 0

Answered
why is error? I do not understand why i am getting this error...Please Give me Solution and correct answer... thank's!
Symbolic Math Toolbox has had an adjoint function since release R2013a.

6 years ago | 0

| accepted

Answered
Matrix in the bracket equal another matrix
See this blog post and the section "Indexing with a Single Index" on this documentation page for an explanation of linear indexi...

6 years ago | 0

Answered
strange power .^ operator behaviour
Performance is one key metric of whether a function is "effective". If you wanted a power function that was as performant as pos...

6 years ago | 0

Answered
how to write code exchange the y value in the ode15s?
Since you don't have a mass matrix for your problem, use odeset to set the NonNegative option to the indices of the components o...

6 years ago | 0

Load more