Answered
different outcome cellfun(@isempty,..) vs cellfun('isempty',...)
I recommend you avoid using the 'isempty' syntax in new code. It is present for backwards compatibility with (very) old code and...

5 years ago | 1

Answered
Higher precision in MATLAB App Designer
How far do you expect your users to want to zoom in? What do you expect typical limits of the region of interest to be? If it fa...

5 years ago | 0

Answered
double integral with parameters
Matrices that small don't give you a lot of data to compute the value of your integrand function over an infinitely large region...

5 years ago | 1

Answered
translating this polygon to a new position
I don't know what your plot_polygon function does, but I'd probably create a polyshape object and translate it before plotting t...

5 years ago | 1

| accepted

Answered
No Line in my plot its just dots
Star Strider's approach is the one I'd probably use if all I cared about what that the line was plotted, not necessarily when it...

5 years ago | 0

Answered
Wrong integration trigonometric function
syms x f=sin(x)+2*cos(x) F=int(f) F2=int(sin(x))+int(2*cos(x)) You have different results but that doesn't necessarily mean ...

5 years ago | 0

| accepted

Answered
double numerical integral with variables in its upper and lower limits
Use the integral2 function.

5 years ago | 0

Answered
How to map points in Vector A with points in vector B?
So you want something like this? v = randperm(10) % Shuffle the numbers from 1 to 10 A = v(1:5) % Cut the "deck" B = v(6:10) ...

5 years ago | 1

| accepted

Answered
How to sortrows by specific strings
desired_order = {'President','Vice President','Member','Guest'}; Position = {'Vice President';'Guest';'Member';'President'}; N...

5 years ago | 0

| accepted

Answered
Create a table inside a structure
This is not the correct way to create a table array with the specified variable names. The struct function accepts field names a...

5 years ago | 1

| accepted

Answered
Higher precision in MATLAB App Designer
The format function does not "increase the precision" of calculations. All it does is change how the values are displayed in the...

5 years ago | 0

Answered
Error entering variables as strings
try 'no' == 'all' catch ME disp(ME.message) end 'no' is a char row vector with two elements. 'all' is a char row ve...

5 years ago | 1

| accepted

Answered
Concatenate a string array and a table of different dimensions
I'd probably store that information in the Description property of the table. T = array2table(magic(4)); T.Properties.Descript...

5 years ago | 0

Answered
not getting a plot why? plz help
sigma=0.047193; V_tip=180; W=180; Cd_avg=0.01; R=2.235; k=1.1; A=pi*R.^2; P_e= 61147.4; h=0:100...

5 years ago | 0

Answered
Why is unique() giving me the matrix after eliminating the common rows for these two matrices?
If you're trying to find unique rows, two rows that display the same may not contain the same stored values. A = [1 2; 1+eps 2]...

5 years ago | 0

Answered
use vpasolve's engine without vpasolve
If you're trying to find a solution of F, neither fminsearch nor fmincon would be my first choices for functions to use. If F re...

5 years ago | 0

| accepted

Answered
REGARDING THE INVOICE OF MATLAB
Please contact Customer Service using the Contact Support link on the Support section of this website.

5 years ago | 0

Answered
When using ODE45, can I specify a variable to assume two different values during the timespan?
Solve the system with V = 0 up until the time when it should change. If you're not sure of the exact time when it should change,...

5 years ago | 1

| accepted

Answered
Array indices must be positive integers or logical values.
Nn=1:2:30; This is valid MATLAB code. Nn(i)=60; As long as i has been defined as an array containing only positive integer va...

5 years ago | 0

Answered
errors in sortrow in matlabr2020
"Column sorting vector must contain integers with absolute value between 1 and the number of columns in the first argument." Ho...

5 years ago | 0

Answered
function used for grading, :how do i get it to work?
I would do my input argument checking up front. Why go through the effort of classifying data that I know is invalid? if mark >...

5 years ago | 0

Answered
Error using quad (line 70) The integrand function must return an output vector of the same length as the input vector. Error in sprawozdanie1 (line 37) Ssr=quad(x1,-0,6*pi);
x1=@(t)x; x is a numeric vector. That vector is not necessarily the same size or shape as the array t that quad passes into you...

5 years ago | 0

Answered
Is there any limitation with fimplicit and fimplicit3 when functions have sqrt ?
Let's look at the value of your function at one of the corners of the region on which you want to plot: R = 0.35; L = 0.264;...

5 years ago | 1

Answered
Finding local minimums/maximums for a set of data
For more recent releases take a look at the islocalmin, islocalmax, and (perhaps) detrend functions.

5 years ago | 2

Answered
Eigenvector different to expected using eig
A=[1.5 -0.5; -1 1]; [Vec,Val]=eig(A) What does the eig function return? From its documentation: "[V,D] = eig(A) returns diag...

5 years ago | 1

| accepted

Answered
Extreme difference between the value of a function and the result in matlab
One of the terms in your expression involves b^8. For b = 30000 what is the value of that term? b = 30000; b8 = b^8 That valu...

5 years ago | 1

Answered
what does MatLab Home license cover?
For official answers to these licensing questions please contact Customer Service using the "Contact Support" link on the Suppor...

5 years ago | 0

Answered
sym error in define functions
As the error message states, "To evaluate character vectors and strings representing symbolic expressions, use 'str2sym'." So u...

5 years ago | 0

| accepted

Answered
How to write a short syntax for the legend?
Set the DisplayName property of each line just like you set the LineWidth. Then legend show will make the legend appear and use ...

5 years ago | 0

Load more