Answered
Latex en la leyenda de los graficos
'$\hat{u}$'

3 years ago | 0

Answered
Import data from a bad format
If it is stored in a file and it is always exactly 25 entries per logical row, then you could use textscan, PerRow = 25; fmt =...

3 years ago | 1

Answered
ticklabels with LaTeX interpreter disappear
xticklabels({'0', '$t_{clear,\rm{LVRT}}$', '$t_{rec2,\rm{LVRT}}$', '$t_{rec3,\rm{LVRT}}$'}); set(gca, 'TickLabelInterpreter', '...

3 years ago | 0

| accepted

Answered
How can i find the total length of this rod please anyone help me ?
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/1379339/image.png'; grey = rgb2gray(imread(filename)...

3 years ago | 0

| accepted

Answered
creating 3d surface plots by iterating in for loop through different vectors
In a situation like that, I would not recommend creating the entries iteratively in a loop. Instead I would suggest creating a g...

3 years ago | 0

Answered
In solving two non-linear equations using fsolve, I am getting an error 'Failure in Initial objective function evaluation. FSOLVE cannot continue'. How to resolve?
You really need to recheck your root2d code. You are passing scalar U and V entries but your for i loop involves U(:,j) which re...

3 years ago | 0

Answered
why the error in the following " set_param(BlockName,BlockParameter,StringValue); "
Only tuneable parameters can be changed while the simulation is running. In some situations it is workable to run a MATLAB fun...

3 years ago | 0

Answered
which version of the matlab supports hevc codec?
See https://www.mathworks.com/matlabcentral/answers/414228-feature-request-hevc-video-support#answer_332166 If you are using Wi...

3 years ago | 0

| accepted

Answered
change floating number in a column matrix
realmax('single') ans/2 which matches the number you indicated. It is not immediately clear why anyone would use half of the m...

3 years ago | 0

Answered
Something wrong with "floor" or "fix" functions or it's my code?
I predict that your col was not calculated using pure integers, and instead was calculated by a process that divided by a number...

3 years ago | 0

Answered
my nonlinear constraints HAVE to be satisfied, what to do next?
If you use surrogateopt then there is no explicit non-linear equality of inequality function parameter. However, you can have th...

3 years ago | 0

Answered
Pcolor ''Matrix dimensions must agree.''
Ez = h5read ('multilayer_z_B_merged.out', '/rxs/rx1/Ez'); numSpace = size(Ez,1); Space = linspace(0,2.4,numSpace); numTime = ...

3 years ago | 0

Answered
Parfor loop is slow
Imagine that you have a team of four people, and you have four moderately heavy objects to move. Imagine that you first assig...

3 years ago | 2

| accepted

Answered
I get error when I try to plot sigmoid function
dt=-30:h:30; dt is a vector t(i+1)=t(i)+dt; t(i) is a scalar. Add the complete vector dt and you will get a vector. ...

3 years ago | 0

Answered
Using the RTC (Real-Time-Clock) in the Arduino NANO BLE 33 to get the current time
This becomes a classic clock synchronization problem, and such problems are difficult to solve at high resolution. The sort of s...

3 years ago | 0

Answered
implementing complex multiplication in simulink
https://www.mathworks.com/help/simulink/slref/realimagtocomplex.html You can use blocks to combine each real component with it...

3 years ago | 0

Answered
How do I make my generated videowriter of barcodes looping to be bigger and clearer
After you have created ColoredFrame use kron or repelem to expand each pixel to an identical block. For example, M = magic(4) ...

3 years ago | 0

Answered
How to make normal distribution curve from the bar chart?
Your only hope of creating a distribution curve would be if you had a model for the distribution and you used the data to fit th...

3 years ago | 0

Answered
Creating for loop for a matrix of data
f_i1x(1:1,1:100) = 1e-1; That is a vector of length 100. And it is constant, not changed anywhere in the loop, so it is not...

3 years ago | 0

Answered
Error when calculating the distance between two three-dimensional points
for i = 1:numel(pre_xyz) this_pre = cell2mat(pre_xyz{i}); right_hand{i} = sqrt((this_pre(:,7)-this_pre(:,1)).^2 + (thi...

3 years ago | 0

| accepted

Answered
Cell arrays with a vector within a cell within a cell
cellfun up a num2cell call.

3 years ago | 0

Answered
How do you convert the cell within a cell to a vector?
testcell = {{[1]} {[2 3]} {[4 5 6]}} output = cellfun(@(C) C{1}, testcell, 'uniform', 0) testcell{2} output{2}

3 years ago | 0

| accepted

Answered
How to bring in pre-built or pre-made functions from MATLAB to Simulink without rewriting them into new "MATLAB function" blocks?
is there any way to directly call in Simulink, a function I previously made in MATLAB? No, not as far as I can tell. You can w...

3 years ago | 2

| accepted

Answered
I need slx file for the fast dc charger
The model exists in R2022a, provided you have Simscape Electrical installed. Use ee_dc_fast_charger

3 years ago | 0

| accepted

Answered
Hello, I get error "Unable to perform assignment because the left and right sides have a different number of elements". How to fix this?
dt=0:h:100; %time scale Row vector dtbaru=dt'; Column vector. for j = 1:length(dtbaru) M1(j) = M1(j)+dtbaru*[delta*M1(...

3 years ago | 0

| accepted

Answered
Structuring program to always round off any five decimal numbersto zero
AND THIS ACUALLY EQUALS No, it does not actually equal that. F = str2sym('- exp(t*x3)*(1262711551877025502231421556075/4113761...

3 years ago | 1

| accepted

Answered
The definition of a lot of variables
No. You could do it in a way that is a bit messy. However, we firmly recommend against such coding. Alternatives are discussed...

3 years ago | 0

Answered
Don't sort variables(syms) in equation
There are two sortings being done. The internal symbolic computation engine does sorting of symbols and expressions. It does ...

3 years ago | 0

Answered
Array indices must be positive integers or logical values..........??
for i=1:neq b(i)=input('\nEnter the constant values b: ') You store into b(1), b(2) and so on all the way up to b(neq)...

3 years ago | 0

Load more