Answered
How to perform norm on each row of a matrix?
John's explanation is one way. Another is to use the vecnorm function. u = [-1 1 0; -1 1 0] v = [0 1 1; 0 1 -1] N = vecnorm...

7 years ago | 5

Answered
Adding Hexadecimal numbers?
If you're using release R2019b or later, you can enter hexadecimal numbers directly. >> 0x3afb + 0x2839 ans = uint16 25...

7 years ago | 2

Answered
Generating vector and made it variable
Do you want exactly the same number of +1 and -1 values or do you just want each element to have an equal probability of being +...

7 years ago | 0

Answered
list of all not recommended keywords
Open the Preferences using the icon in the Environment section of the Home tab on the Toolstrip. Under MATLAB, navigate to the C...

7 years ago | 1

| accepted

Answered
Warning: Variable 'bending_model' originally saved as a cfit cannot be instantiated as an object and will be read in as a uint32.
The installation on the machine where you receive that warning message does not have Curve Fitting Toolbox installed (or perhaps...

7 years ago | 1

| accepted

Answered
I don't know why ODE45 function does not count time. Runs forever.
In addition to what Stephan wrote, the fact that you have numbers in your variable names is also a bit of a code smell and is cl...

7 years ago | 2

Answered
Can the "Value" display of variables be customized?
You are missing something. The methods that your class inherits when you subclass from matlab.mixin.CustomDisplay are used when ...

7 years ago | 0

Answered
Run Matlab file on each Node of Hadoop Cluster
This documentation page describes how to configure a Hadoop cluster so that client MATLAB sessions can submit to it. The first s...

7 years ago | 0

| accepted

Answered
How to get source code and object code in MATLAB. Have tried a lot unable to generate the object and source code...
I have been asked to submit object and source code for a program (software developed) written in MATLAB. If this is for a homew...

7 years ago | 0

Answered
Add line curves to histogram in image that has two y axes
Here's an example of creating a pair of axes, one with a histogram and one with a line. % Sample data x = randn(1, 1e5); % ...

7 years ago | 0

| accepted

Answered
Opening a simulink file that has an extension .MDL
Can you open it if you change the extension from .MDL (all caps) to .mdl (all lower-case)?

7 years ago | 0

Answered
Find and count how many capital characters are in str, and then change them to lower cases USING LOOPS
The isstrprop function can help you identify which characters are upper-case, which are lower-case, and which are neither. After...

7 years ago | 0

Answered
Algorithm for R square
For the second one, see the "More About" section on the documentation page for the corrcoef function.

7 years ago | 1

| accepted

Answered
How to draw a nicer graph
Use the xlim function to change the limits of your X axis. Also FYI you don't need to call plot twice. You can specify both a c...

7 years ago | 1

| accepted

Answered
How to make empty array of specific size?
Replace ClassName with the name of the class for which you want to create the empty array. But in order to use the empty method...

7 years ago | 0

Answered
ODE45 change y at event
You can use the ballode example as a model. That has an events function that stops the solver each time the bouncing ball touche...

7 years ago | 0

| accepted

Answered
Explain this please?
c = 5 + (x < 2 || (e < pi)); Let's look at each section of the code inside the outer parentheses in turn. x < 2 Since x is eq...

7 years ago | 0

| accepted

Answered
Numerical Solution of 3rd order nonlinear differential equation
See this documentation page and this other documentation page for the techniques you'll need to use to solve this assignment. If...

7 years ago | 0

Answered
a='C:\code'. cd 'C:\code' works fine but cd a gives error: Name is nonexistent or not a directory
The following two cd calls do the same thing, changing directory to a directory named a. cd a cd('a') The following two cd ca...

7 years ago | 1

| accepted

Answered
Inverse of 5x5 matrix
The answer, written out as text, is about 731,000 characters long. >> length(char(Answer)) ans = 731073 A quick Google...

7 years ago | 0

Answered
This error was detected while a MEX-file was running. If the MEX-file is not an official MathWorks function, please examine its source code for errors. Please consult the External Interfaces Guide for information on debugging MEX-files.
As the message shown at the end of the crash log file indicates, if you were running a MEX-file that you wrote, downloaded, or w...

7 years ago | 0

Answered
Is it possible to pre-define user input values and skip input dialogs in a script?
Is there an easier method to do this? Or rather, is it even possible? Or am I better off just creating a custom version of each ...

7 years ago | 1

| accepted

Answered
GUI handles issue and behavior in 2019a but not in 2013b
How does that button launch the GUI that's not showing up correctly? Does it call the GUI's function file or does it simply use ...

7 years ago | 0

Answered
Changing the color of one particular node into different colors
What is the full and exact text of the error message you receive when you run that code? Include all the text displayed in red, ...

7 years ago | 0

| accepted

Answered
Triple integral (NO with @func)
integral3 doesn't care whether or not you can write your integrand in a particular way. All it cares about is that it can call t...

7 years ago | 0

Answered
XMIN must be a floating point scalar. Kindly help me in clearing the error.
Bz=@(y,x) <lengthy expression that doesn't depend on x OR y snipped> yl=@(x) sqrt(aj^2-x^2) M=integral2(Bz(x,y),-yl(x), yl(x),...

7 years ago | 0

Answered
fopen() in R2008 does not use variables?
The FName output in your uigetfile call is a cell array. When you use parentheses to index into a cell array the result is also ...

7 years ago | 0

| accepted

Answered
Why can't I solve this, it's simple. (Incorrect dimensions.... use .^) (I did then it says Invalid Operator.......)
The operator .^ (period followed by a caret) performs elementwise matrix power. There is no operator ^. (caret followed by a pe...

7 years ago | 0

Answered
maximum amount of data that matlab works with
The table to which Stephen Cobeldick linked is from 2013, so some of the rows on it are no longer applicable. In fact the only o...

7 years ago | 1

| accepted

Answered
license migration in system fault
See these two Answers posts: How do I transfer a Student or Home license to a new computer? How do I transfer an Individual or...

7 years ago | 0

Load more