Answered
dec2base working differently on a matrix than on individual values
That's not the first element in M. That's the first element that the Command Window scroll buffer contains. Previous rows in the...

6 years ago | 2

Answered
vlookup type matrix creating
Since this sounds like it might be a homework question, I'm only going to point you in the direction of a useful function: ismem...

6 years ago | 1

| accepted

Answered
the meaning of basic matlab words
The word "handle" has at least two different (somewhat related) meanings in MATLAB. A handle object is an object where differ...

6 years ago | 0

| accepted

Answered
How can I draw non planar graph in 3D dimension
Call plot and specify the 'Layout' to be one of the 3-D layouts, 'force3' or 'subspace3'. Alternately you can specify 'XData', '...

6 years ago | 0

Answered
Insatlling Matlab 7.04 (R14SP2) on Windows 10
Running release R14SP2 (which was released in March 2005) on Windows 10 (released in July 2015, over ten years later) is not a s...

6 years ago | 0

Answered
Need to add an admin to license number: 719588
To add / remove / change administrators on your license please follow the instructions on this MATLAB Answers post. As the last ...

6 years ago | 0

Answered
Go through the table with a loop and change values
The standardizeMissing function can accept arrays of various types, including table arrays and timetable arrays. If you only wan...

6 years ago | 1

Answered
How can I convert douvle value to int or Integer?
Do you need to convert to an integer data type or is converting to an integer value (if it's not one already) sufficient? If ...

6 years ago | 1

Answered
Creating Phase Plane graphs/portraits
Use odeset to create options to pass into one of the ODE solvers in MATLAB. In your odeset call set the 'OutputFcn' option to @o...

6 years ago | 0

Answered
Matlab Solving Muller Method
f0=@(m0) (g*m0/c)*(1-e^(-c*t/m0))-v; Nowhere have you defined e. If you wanted to compute the exponential, instead just call th...

6 years ago | 0

| accepted

Answered
checking dataType instead typecast at property or argument validation
If you specify both a property validator function and a class name, I believe MATLAB will cast the property name you try to set ...

6 years ago | 0

Answered
shortest path algorithm based on a recursive function
If you have a (small, simple) test case where the answer your code gives differs from the answer you expected it to give, have y...

6 years ago | 0

Answered
else if inside for loop.
for i=1:numel(u) Bxcf(i)= (((1.2566e-6 * I)/(4* pi * dxc(i))) * (1.8/(sqrt((dxc(i))^2+((1.8^2)/4))))); for i=1:n...

6 years ago | 0

| accepted

Answered
Long term support of ActiveX
See this documentation page for more information. If you have use cases that would not be satisfied by the recommendations on th...

6 years ago | 0

Answered
Calculating the area of a plot, e.g convhull
Consider using an alphaShape instead of a convex hull since your shape isn't convex.

6 years ago | 0

Answered
Assign Value to a Specific Position
Take a look at the two-output form of the max function. That should provide you enough information to complete that task.

6 years ago | 0

Answered
finding nonzero elements in matrix
Use implicit expansion. A = [0 1 1; 0 0 1; 1 1 1]; R = (1:size(A, 1)).'; B = A.*R

6 years ago | 1

Answered
support for Variable fonts
You can customize the fonts MATLAB uses by following the instructions on this documentation page.

6 years ago | 1

| accepted

Answered
A class to simulate missing arguments in function calls
So you want your function to be able to accept 0, 1, 2, 3, or 4 input arguments? In that case you probably want varargin. funct...

6 years ago | 0

Answered
Writing function for fliping vectors
Your function fails to satisfy the requirements of your question in several ways. Let's look at the first two sentences. Wr...

6 years ago | 1

Answered
How create a list of like this A{1}, A{2}, A{3}, A{4},... etc.?
If you already have a cell array A, use: A{:} to create a comma-separated list from A. If you're trying to create the cell ar...

6 years ago | 0

Answered
managing two variables in sum function
Use element-wise operations to create a matrix of data to sum then call sum with a dimension input. [c, r] = meshgrid(1:5, 1:6)...

6 years ago | 0

Answered
what is coder.gpu.kernelfun;
This function was introduced in release R2017b in GPU Coder. You've indicated in the Release information on this question that y...

6 years ago | 1

| accepted

Answered
Compute the difference matix between a marix and another matrix in MATLAB
You can eliminate one of your loops using the vecnorm function. >> vecnorm(A-B(1, :), 2, 2).^2 ans = 4 25 85

6 years ago | 0

Answered
help me ...cos and sin value not correct ! whay
Line 1 is completely unnecessary, since line 2 overwrites those symbolic variables with numeric values. I'm assuming your trotx...

6 years ago | 1

| accepted

Answered
increasing values midway of an array for theta (using atan2();)
Remember is that atan2 returns values in the closed interval [-pi, pi] so if you go from a y that is just barely positive to one...

6 years ago | 0

Answered
When will Matlab 2020a officially be released?
Most likely "in the March timeframe" as stated on this page.

6 years ago | 3

Answered
Script Skips a portion of code
If length(Daily) is less than 4, the result of the expression 4:length(Daily) will be empty and so the body of that loop will no...

6 years ago | 0

| accepted

Answered
How do I combine data from seperate tables into one table with seperate columns
Consider converting these table arrays into timetable arrays. If you do you can synchronize them all to a common time basis. See...

6 years ago | 0

Answered
str2num results
From the documentation page for str2num: "In addition, str2num uses the eval function, which can cause unintended side effects w...

6 years ago | 0

Load more