Answered
How to convert radian to degree from answer (or equation) generated from syms
Q = @(v) sym(v); Pi = sym(pi); %% INPUTs: E = Q(2)*10^11; % Young's Modulus (in N/m/m) I = Q(3)*10^-3; % Moment of...

2 years ago | 0

Answered
How to recover corrupted *.mat file data
Unfortunately those files are not in .mat format and cannot be recovered. Both files start with the same sequence of 8 bytes, b...

2 years ago | 1

| accepted

Answered
Error using plot Vectors must be the same length.
t = (0:(N-1))/fs; s1 = sin(2*pi*10*t); s2 = sin(2*pi*20*t); s = [s1, s2]; s is a row vector that is twice as long as t (sin...

2 years ago | 0

Answered
Convert polar to cartisian coordinate
pol2cart uses radians. There is no Mathworks supplied Pol2Car function.

2 years ago | 0

Answered
Transparency in scatter plot
scatter(VectorOfX, VectorOfY, VectorOfPointSizes, VectorOfColor, ... 'MarkerFaceColor', 'flat', 'MarkerEdgeColor', 'flat', ...

2 years ago | 0

Answered
missing year in timetable
The range starts 01-Dec-2020 which is after 2020-01-01

2 years ago | 0

| accepted

Answered
Solution is not unique because the system is rank-deficient | Solve Function | Syms Variable | Will be very helpful, if you can resolve this pleaseeee
You are trying to solve three equations for one variable. Although two of the equations are inequalities, solve() simply gives u...

2 years ago | 0

Answered
Want to buy toolboxes for an older version of Matlab without renewing the license
Historically the rules were: purchasing against a previous release was permitted for a period, a period that was not clearly do...

2 years ago | 0

Answered
Please help me with syntax error on line 52
% Example inputs before calling the function ne = 10; nn = 2*ne + 1; mesh.x = linspace(0, 6, nn); mesh.conn = [1:2:nn-2; 2...

2 years ago | 0

Answered
str2double with long string seems to give wrong answer
format long g str = '6879331413876961408'; num = sscanf(str, '%ld')

2 years ago | 1

| accepted

Answered
What is the requirement of opinionScores for fitbrisque?
It looks to me as if that should only happen if imds is empty.

2 years ago | 0

Answered
Find out θ in the cos(wt+θ) = A
eqn2 = solve(eqn2, theta, 'returnconditions', true); will probably return a solution that is parameterized in terms of an extra...

2 years ago | 0

Answered
I am trying to perform the second derivative test of this function I came up with
Q = @(v) sym(v); Pi = Q(pi); E = Q(9.9)*10^6; p = Q(.098); F = Q(1500); L = Q(20); g = Q(32.2)*12; I = (F*L^2)/(E*Pi^...

2 years ago | 0

| accepted

Answered
The problem with calculating multidimensional integrals
Each layer of integral() that you call passes in a variable-length vector of values. trigl_funcs = @(e) cos( integral(@(zz_...

2 years ago | 0

Answered
Verify the File Path Check File Existence Verify File Permissions Check File Identifier Error Handling for File Openingwith thermo dta to matlab
[f1, msg] = fopen(file_path, 'r'); % Check if file opening was successful if f1 == -1 error('Cou...

2 years ago | 0

Answered
Multiple plots - change x axes all at once once
set(HANDLES_TO_CHANGE, {'XData'}, repmat({NEW_X_VALUES}, size(HANDLES_TO_CHANGE,1), 1));

2 years ago | 0

Answered
How to extract a matrix of values from cell array of cell arrays of structs
msea = zeros(n1,n2); for i=1:n1 msea(i,1:n2) = [mse{i}{1:n2}.metric]; end

2 years ago | 0

Answered
Getting unwanted box in the legend
The boxes in the legend are because you are using surf() You could create dummy lines, H(1) = plot(nan, nan, 'LineStyle', '--'...

2 years ago | 0

Answered
How can you determine the mean and standard deviation on a polar histogram?
You have to do something like norm_angle = Angles; mask = norm_angle > 180; norm_angle(mask) = norm_angle(mask) - 360; mean_...

2 years ago | 0

Answered
Solving and plotting equation with many variables
The solution of solve(eqn, x) is in four parts, with different conditions for each part -- conditions depending on the values of...

2 years ago | 0

Answered
Enforcing values in ODE solver
Use events, and remember that events are only detected when a value crosses the trigger, and are not detected when the system st...

2 years ago | 1

Answered
Getting an fmincon error at initial point
t_LM = (((x(8)-x(7))-(x(6)-x(5)))/log((x(8)-x(7))/x(6)-x(5))); % deltaTLM calcuation - REMEMBER X(9) IS UNCERTAINTY ALSO FIX THE...

2 years ago | 0

| accepted

Answered
Defining and calling functions in MATLAB
Create a function called tempC2F function tempC2F that will accept an input argument of a single temperature in degrees Celsiu...

2 years ago | 1

Answered
Any way to automatically save my LiveScript .mlx file as a Text-based .m file?
No, there is not.

2 years ago | 0

| accepted

Answered
I am unable to solve this array dimensional error can someone help please?
function P_battery = EMS(netP, soc) soc_max = 95; % percent battery_max = .116; %kW P_battery = zeros(1, length(netP)); ...

2 years ago | 0

Answered
How increase abaqus calling and running speed from Matlab
Create your abaqus object first. Then pass it around by parameterizing functions; http://www.mathworks.com/help/matlab/math/para...

2 years ago | 0

Answered
Is it possible to add a new cost function to CHOMP?
There is no way to specify a custom cost function for https://www.mathworks.com/help/robotics/ref/manipulatorchomp.html

2 years ago | 0

| accepted

Answered
Processing cell arrays as a batch instead of one by one
cluster_data = iniclu{i,:}; % I assuming 50 cells of 1st row is read into cluster_data when i = 1 and so on You are d...

2 years ago | 1

Answered
I have this problem Exiting fzero: aborting search for an interval containing a sign change because no sign change is detected during search. Function may not have a root.
syms V Q = @(v) sym(v); Pr = Q(4); R = Q(08206) / Q(10)^5; T = Q(450); Tc = Q(405.5); Pc = Q(1113) / Q(10)^1; P = Pr*Pc; ...

2 years ago | 0

Answered
Time Derivative Properties of Fourier Transform
You cannot -- the fourier transform is based on frequency rather than time.

2 years ago | 0

Load more