Answered

fsolve handling a composition of functions gives the error, "not enough input arguments"

This: g(f) attempts to call the function handle stored in f with 0 input arguments and 1 output argument then call the functio...

fsolve handling a composition of functions gives the error, "not enough input arguments"

This: g(f) attempts to call the function handle stored in f with 0 input arguments and 1 output argument then call the functio...

15 days ago | 0

| accepted

Answered

A totally lost student :)

The limits of the axes in your figure are different from the limits of the axes pictured in your textbook. Try changing the axes...

A totally lost student :)

The limits of the axes in your figure are different from the limits of the axes pictured in your textbook. Try changing the axes...

15 days ago | 0

Answered

How to change a variable to a time variable?

Those columns in your spreadsheet are not what I would call a datetime. They have a time component, yes, but not a date componen...

How to change a variable to a time variable?

Those columns in your spreadsheet are not what I would call a datetime. They have a time component, yes, but not a date componen...

15 days ago | 1

Answered

MATLAB workspace not showing variables but a struct called 'wng'

Are you calling the built-in who function or a who.m that you've written or downloaded? What does this display? which -all who

MATLAB workspace not showing variables but a struct called 'wng'

Are you calling the built-in who function or a who.m that you've written or downloaded? What does this display? which -all who

16 days ago | 0

Answered

datetime - time only - 2016a

Use the timeofday function defined for datetime arrays. >> timeofday(datetime('now')) % It is 3:12 PM as I type this ans = ...

datetime - time only - 2016a

Use the timeofday function defined for datetime arrays. >> timeofday(datetime('now')) % It is 3:12 PM as I type this ans = ...

16 days ago | 0

| accepted

Answered

Is there a Way to Determine Which Function Will be Called Without Actually Calling the Function ?

Yes, and in fact you've already given the syntax for that call! See the "Locate Function Invoked with Given Input Arguments" exa...

Is there a Way to Determine Which Function Will be Called Without Actually Calling the Function ?

Yes, and in fact you've already given the syntax for that call! See the "Locate Function Invoked with Given Input Arguments" exa...

16 days ago | 0

| accepted

Answered

Why there is NO add course button in my Matlab Grader?

Are you an instructor? Do you satisfy all the prerequisites?

Why there is NO add course button in my Matlab Grader?

Are you an instructor? Do you satisfy all the prerequisites?

17 days ago | 0

Answered

What does mean .* and ' ?

The .* operator performs element-wise multiplication. The ' character has at least three potential meanings that I can think ...

What does mean .* and ' ?

The .* operator performs element-wise multiplication. The ' character has at least three potential meanings that I can think ...

17 days ago | 0

Answered

Finding a matching pair of vectors between two matrix

Be careful about the floating point numbers in your arrays. Consider using ismembertol with the ByRows name-value pair.

Finding a matching pair of vectors between two matrix

Be careful about the floating point numbers in your arrays. Consider using ismembertol with the ByRows name-value pair.

17 days ago | 1

Answered

In MATLAB 2020a, how can I convert symfun to double?

You're not specifying a value for t. If any of the elements of the vector p returns when evaluated are functions of t, there's n...

In MATLAB 2020a, how can I convert symfun to double?

You're not specifying a value for t. If any of the elements of the vector p returns when evaluated are functions of t, there's n...

17 days ago | 0

| accepted

Answered

Get a Student Licence

Click the "Get MATLAB" button in the upper-right corner of this page. From there you can double-check whether your college or un...

Get a Student Licence

Click the "Get MATLAB" button in the upper-right corner of this page. From there you can double-check whether your college or un...

17 days ago | 0

| accepted

Answered

Trying to use a for loop, date commands to calculate date of Memorial day for next 10 years

There's no need for a for loop or Financial Toolbox. Currently Memorial Day is observed on the last Monday in May (though you sh...

Trying to use a for loop, date commands to calculate date of Memorial day for next 10 years

There's no need for a for loop or Financial Toolbox. Currently Memorial Day is observed on the last Monday in May (though you sh...

18 days ago | 0

Answered

Fix an infinite while loop by properly counting the number of elements added to an array

There's at least one bug and a bit of an unusual pattern in your code. Let's skip down to your call to K_matlab. [K_mat, A, tf]...

Fix an infinite while loop by properly counting the number of elements added to an array

There's at least one bug and a bit of an unusual pattern in your code. Let's skip down to your call to K_matlab. [K_mat, A, tf]...

19 days ago | 0

Answered

figure command doesn't open a figure

Did the student accidentally create their own function named figure? which -all figure

figure command doesn't open a figure

Did the student accidentally create their own function named figure? which -all figure

19 days ago | 0

Answered

What is a "feature" and "class" in matlab?

"class" has several different meanings in MATLAB, as does "feature". Some context in how you're using those terms would be usefu...

What is a "feature" and "class" in matlab?

"class" has several different meanings in MATLAB, as does "feature". Some context in how you're using those terms would be usefu...

19 days ago | 0

Answered

Vectorization and plotting user-defined function

By default integral calls the integrand function with a vector of values at which the integrand should be evaluated. There's no ...

Vectorization and plotting user-defined function

By default integral calls the integrand function with a vector of values at which the integrand should be evaluated. There's no ...

19 days ago | 2

Answered

Is there any way to get a matrix from data set which contains x position, y position and magnitude?

Use either accumarray or sparse if the X and Y coordinates are positive integer values. >> rng default >> x = randi(4, 6, 1); ...

Is there any way to get a matrix from data set which contains x position, y position and magnitude?

Use either accumarray or sparse if the X and Y coordinates are positive integer values. >> rng default >> x = randi(4, 6, 1); ...

19 days ago | 1

Answered

Where can I find these blocks and help on sine function too

To me that looks like a Constant block, a Sine Wave block, an Add block, and some other block. That last one the symbols are too...

Where can I find these blocks and help on sine function too

To me that looks like a Constant block, a Sine Wave block, an Add block, and some other block. That last one the symbols are too...

19 days ago | 0

| accepted

Answered

Error using cos.Not enough input arguments.

In mathematics we write but when we implement that in MATLAB we implement it as [not to be confused with .] x = pi/4; y = co...

Error using cos.Not enough input arguments.

In mathematics we write but when we implement that in MATLAB we implement it as [not to be confused with .] x = pi/4; y = co...

19 days ago | 0

Answered

Making a table for degrees and radians

In your original code Degrees was a row vector. When you put something that's sufficiently wide into a table variable, we only s...

Making a table for degrees and radians

In your original code Degrees was a row vector. When you put something that's sufficiently wide into a table variable, we only s...

19 days ago | 1

Answered

Digraph vertices and weights as strings

See the "Label Graph Nodes and Edges" example on this documentation page. If you want the node and edge labels to be stored wit...

Digraph vertices and weights as strings

See the "Label Graph Nodes and Edges" example on this documentation page. If you want the node and edge labels to be stored wit...

20 days ago | 0

| accepted

Answered

how to access function from a different scipt?

That error message is correct. If you have a function inside a script file, the name of the function must not be the same as the...

how to access function from a different scipt?

That error message is correct. If you have a function inside a script file, the name of the function must not be the same as the...

20 days ago | 1

| accepted

Answered

Function help for structures

Don't use numbered variables. Use an array. In fact if all your students have the same number of grades, I would store the data...

Function help for structures

Don't use numbered variables. Use an array. In fact if all your students have the same number of grades, I would store the data...

20 days ago | 0

Answered

Two questions about my code: 1.) Estimating random number with and without rng ('shuffle'); 2.) storaging results

For the first question, when you start MATLAB the "deck" of random numbers (technically it's a stream, but deck fits the metapho...

Two questions about my code: 1.) Estimating random number with and without rng ('shuffle'); 2.) storaging results

For the first question, when you start MATLAB the "deck" of random numbers (technically it's a stream, but deck fits the metapho...

20 days ago | 1

| accepted

Answered

where is the function, " imped_match_find_circle_intersections_helper.m" located? This is used in Matching Networks, part 2

You mean this page in the RF Toolbox documentation? If you open that example in MATLAB Editor, that helper function for the exa...

where is the function, " imped_match_find_circle_intersections_helper.m" located? This is used in Matching Networks, part 2

You mean this page in the RF Toolbox documentation? If you open that example in MATLAB Editor, that helper function for the exa...

20 days ago | 0

Answered

Warning: Function log has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.

You've written your own log.m file or downloaded a log.m from someone / somewhere else. The identifier log already has meaning i...

Warning: Function log has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.

You've written your own log.m file or downloaded a log.m from someone / somewhere else. The identifier log already has meaning i...

20 days ago | 0

Answered

method accessing it's own object

If A is an instance of a class that has a method foo that accepts a class instance and a double scalar in that order, the follow...

method accessing it's own object

If A is an instance of a class that has a method foo that accepts a class instance and a double scalar in that order, the follow...

20 days ago | 0

| accepted

Answered

I get a error like this every time I open matlab. what am i supposed to do ? kindly help

Rename the file you've put in your MATLAB Drive named struct.m to something else. The identifier struct already has a meaning in...

I get a error like this every time I open matlab. what am i supposed to do ? kindly help

Rename the file you've put in your MATLAB Drive named struct.m to something else. The identifier struct already has a meaning in...

21 days ago | 1

| accepted

Answered

Why are symbolic expressions being rounded?

Have you changed your digits setting? help digits Are you calling the correct double function? What does this show? which dou...

Why are symbolic expressions being rounded?

Have you changed your digits setting? help digits Are you calling the correct double function? What does this show? which dou...

21 days ago | 0

Answered

Import datetime in custom date format which includes junk characters

Let's make a sample timetable. MeasurementTime = datetime({'2015-12-18 08:03:05'; ... '2015-12-18 ...

Import datetime in custom date format which includes junk characters

Let's make a sample timetable. MeasurementTime = datetime({'2015-12-18 08:03:05'; ... '2015-12-18 ...

21 days ago | 0

| accepted