Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
clc;clear;format compact; syms V P=[0.98 1.97 4.93 9.86 49.36 98.69]; %atm T=[573 573 573 573 573 573]; %K R=461.5; %Pa*m3/m...

2 years ago | 0

Answered
Error in parfor (First argument must be scalar.)
The error is not on the parfor line. The error is in the call to factor() that is somewhere in your parfor loop

2 years ago | 0

Answered
This is matlab function question
No. MATLAB Coder cannot generate code for graphics and some of the toolbox files create graphics.

2 years ago | 0

Answered
How to select specific files from a list
<https://www.mathworks.com/help/matlab/ref/endswith.html>

2 years ago | 0

Answered
Linking two sets of data to be in line with eachother
Perhaps idx = interp1(loadValues1, 1:numel(loadValues1), loadValues2, 'nearest')

2 years ago | 0

Answered
How can I change the label after using my sim function
A = [0.9607, 0.0196, 0.1776; -0.0098, 0.9999, -0.0009; 0, 0, 0.8187]; B = [0.0185, 0.1974; -0.0001, 0.1390; 0.1813, 0]; C = [1...

2 years ago | 0

| accepted

Answered
Align table data to the left
Yes. You could copy all of the code having to do with implementing tables. Then modify it so that tables inherit from matlab.m...

2 years ago | 1

Answered
Getting an equation from a signal transfer function
Your formula for calculating the transfer function is not correct. Observe this simple example: syms t f1 = sin(t) f2 = sin(2...

2 years ago | 0

Answered
Can't solve the equations
You had a number of places where you were using the character ⁄ which is the "fraction slash" https://www.compart.com/en/unicode...

2 years ago | 0

Answered
Printing a calculated function.
syms t T x(t) = cos(8*pi*t) y(t) = rectangularPulse(-2.5, 2.5, t) z(t) = int(x(t)*y(T-t), T, -inf, inf) %continuous con...

2 years ago | 0

Answered
Trying to Vectorise Cell Allocation to Remove For Loops
Your coordinates are the same size for each cuboid, and the size is predicatable. Use a numeric array instead of a cell array. ...

2 years ago | 0

Answered
Issue loading classifier created with a previous version of Matlab
You do not have the Statistics and Machine Learning toolbox installed and licensed on the new system.

2 years ago | 0

Answered
Jacobian matrices of 6DOF robot not calculable
Here is a performance improvement trick: syms J_ [6 6] detJ_ = det(J_); %will be fast detJ = subs(detJ_, J_, J); This wil...

2 years ago | 1

| accepted

Answered
reduce resolution of an MRI image
When you fft() a 1D signal, the first output bin is sum() of the 1D signal. Now, if you were to think about sum() of the signal ...

2 years ago | 0

Answered
Find a parameter in a multi-tiered structure
You are perhaps looking for something that MATLAB refers to as "dynamic field names"; https://www.mathworks.com/help/matlab/matl...

2 years ago | 0

| accepted

Answered
How to export data from an image histogram to an Excel file
T = table(x, count, 'VariableNames', {'Pixel Value', 'count'}); writetable(T, 'NameOfTheSpreadsheetGoesHere.xlsx');

2 years ago | 1

| accepted

Answered
Problem plotting sequential data files with headers
readtable with 'HeaderLines' option, after which you can table2array if you want. You might potentially need to use the ReadVari...

2 years ago | 0

| accepted

Answered
caret on macbook pro
'ˆ' + 0 '^' + 0 That is, you might possibly be using the Modified Letter Circumflex Accent https://www.compart.com/en/unicode/...

2 years ago | 1

Answered
solve() "Unable to find explicit solution"
(I am absolutely positive I had already answered this, but there is no trace of that...) solve() cannot solve for functions. Yo...

2 years ago | 1

Answered
Finding Solution to Inequality in Matlab
Turn inequalities into equalities by adding a positive (or non-negative) variable representing how much more one side is compare...

2 years ago | 0

Answered
How to overwrite existing text file without saving as new file
The easiest approach in MATLAB is to read the entire file, change the last line, and write out the result to the original file n...

2 years ago | 1

Answered
Solve in a loop - Unable to perform assignment because the indices on the left side are not compatible with the size of the right side
You would get that error if solve does not return exactly one solution, such as if it returns no solutions or returns two soluti...

2 years ago | 1

Answered
Solve system of equations when plotting
t = 1; t2 = 1; k = 1; k2 = 1; a1 = 1; syms a2 a3 b1 b2 b3 phi psi eqns = [b1 == a1*t + a2*1j*k,b2 == a1*1j*k + a2*t, b3==a...

2 years ago | 1

Answered
Matlab code wont disply the figure 2
h is not initialized so you cannot test if h~=0; delete(h); end

2 years ago | 0

| accepted

Answered
Create mesh from matrix
a = [0 2 3; 0 2 4]; b = [ 0 2.3 4; 5 5 3]; h = size(a,1); w = size(a,2); idx = reshape(sub2ind([h, w], 1:h*w),...

2 years ago | 0

| accepted

Answered
Regionprops handling of big images
Splitting image in small parts would be the obvious choice but it could split a connected region in 2 or more subimages Any met...

2 years ago | 1

| accepted

Answered
quaternion does not work in matlab
As an experiment try quat = quaternion([0,0,pi/4; 0,0,-pi/2],'euler','XYZ','point'); The R2022a documentation https://w...

2 years ago | 2

| accepted

Answered
To plot 1D temperature distribution plot versus lenght of the channel of the fin
Lvals = [500, 750, 900, 950, 1000, 1050, 1100, 1500]; numL = numel(Lvals); N = 100; dx = L/(N-1); T = zeros(N,numL); Tb...

2 years ago | 0

Answered
How to get numerical equation for my code?
Nothing in the symbolic toolbox can be compiled or had code generated for it. Nothing . You need to use an interactive session...

2 years ago | 0

Answered
Why are there different results of 'int' function? (regarding 'int' and 'double' function
It looks okay to me. int() is not a numeric integral: it is a request to calculate the integral to full theoretical precision. ...

2 years ago | 1

Load more