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...

6 years 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...

6 years 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]...

6 years ago | 0

Answered
figure command doesn't open a figure
Did the student accidentally create their own function named figure? which -all figure

6 years 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...

6 years 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 ...

6 years 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); ...

6 years 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...

6 years 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...

6 years 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...

6 years 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...

6 years 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...

6 years 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...

6 years 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...

6 years 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...

6 years 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...

6 years 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...

6 years 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...

6 years 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...

6 years 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 ...

6 years ago | 0

| accepted

Answered
I go to UofA and matlab is free, do i need an activation key?
I suspect your school's IT department has instructions on how students can install the university-provided license on their comp...

6 years ago | 0

Answered
matlabFunction with syms do not evaluate eqv?
For what you're describing, matlabFunction is not the right tool. solve is the right tool.

6 years ago | 0

| accepted

Answered
Problem with Instaling mathwork products
If none of those solutions work, please contact Technical Support directly using the telephone icon in the upper-right corner of...

6 years ago | 0

Answered
Using powers in calculations?
They give the same results, just in different forms. u=symunit; V1 = .15*u.m^3; p1 = 2*u.bar; t1 = (12+273)*u.K; V2 = .02*u...

6 years ago | 0

Answered
Matrix elements array with specific rule
Creating a large number of variables whose names end in a sequence of numbers is strongly discouraged on Answers. Instead of cre...

6 years ago | 0

Answered
Find the index of a value in a timetable
Let's make a sample timetable. tt = array2timetable([0 0; 0 0; 1 0; 0 0; 0 1], ... 'VariableNames', {'Value1', 'Value2'}, ...

6 years ago | 1

| accepted

Answered
Copy cells a variable number of times
To replicate the cells you can use repmat or repelem depending on whether you want ABCABCABCABC... or AAAABBBBCCCC ... In other ...

6 years ago | 0

Answered
How do I fix the 'Invalid use of operator' Error in my anonymous function bisect code?
function [root,fx,ea,iter]=bisect( @(x)x^7+3*x-1;0;1;0;3 ) The values @(x)x^7+3*x-1, 0, 1, 0, and 3 are the values you should p...

6 years ago | 1

Answered
How to use "format long" in fmincon?
Specify the second input (either precision or formatSpec) in your calls to num2str as shown on its documentation page. doc num2...

6 years ago | 1

| accepted

Answered
How can I fix "Undefined operator '-' for input arguments of type 'matlab.ui.Figure'"
In releases prior to the introduction of the new graphics system in release R2014b, Handle Graphics functions like figure often ...

6 years ago | 0

Load more