A répondu
Help on simplifying trigonometric equations
syms c1 c2 k1 k2 l1 l2 x1 x2 eqns = [k1*sin(c1)+k2*sin(c2-c1) == l1*cos(x1) - l2*cos(x1+x2) k2*cos(c2-c1)-k1*cos(c1) =...

7 jours il y a | 0

| A accepté

A répondu
Stuck in exponential notation format
format long g for Percentfailtemp = [0.011 0.11 1.1 11 110 110.234 100*(1-eps)] fprintf('Failed due to temperature %0.1d\n...

7 jours il y a | 1

| A accepté

A répondu
How to display square root symbol instead of decimal.
sqrt(sym(5)) This requires the Symbolic Toolbox. Also, display of the square root symbol itself instead of 5^(1/2) requires th...

7 jours il y a | 1

| A accepté

A répondu
how to convert mat file of impulse signal to wavefile?
fs = 1000; t = 0 : 1/fs : 10; impulse = t==2; audiowrite('impulse.wav', double(impulse), fs);

7 jours il y a | 0

A répondu
Limits of polar plots axes
You are using polar() which is the older function that uses cartesian axes. It is difficult to customize. We would normally rec...

7 jours il y a | 0

| A accepté

A répondu
Isolate horizonal part of curve
Declare your horizontal cutoff to be the place where abs() of the gradient is less than some threshold. If necessary, low-pass f...

7 jours il y a | 1

A répondu
Difference between solve result
When you solve() and you do not specify the names of variables to solve for, the solve() uses symvar() and takes as many variabl...

7 jours il y a | 1

| A accepté

Question

Unexpected slowdown using () indexing
format long g NULL = 0; counter = 0; start = tic; while toc(start) < 10; NULL; counter = counter + 1; end; counter/10 NULL =...

7 jours il y a | 1 réponse | 3

### 1

réponse

A répondu
Upper bound curve that passes through the extreme (highest) points
Use boundary possibly changing the alpha coefficient.

7 jours il y a | 0

A répondu
Unable to populate trip usage tripusage=zeros(1,288) with my result tripusage(k)= (p1*x^2 + p2*x + p3) *fivemindist;
x=temp{k}; variable temp with lower case T is not defined. You have a variable Temp with upper case T

7 jours il y a | 0

A répondu
Writetable logical table to excel as zeros and ones
Write out double() of the logical array.

7 jours il y a | 0

A répondu
Transformation this equations to equations MATLAB
Use sin() and cos(). Powers are .^ Dot to multiply is .* Use () for grouping and priority There is no implied multiplic...

7 jours il y a | 0

| A accepté

A répondu
How to find the number of non-NaN elements in a column that are NaN in the last column, in MatLab?
isnan(YourMatrix(:, 3)) & ~isnan(YourMatrix(:, 4))

7 jours il y a | 0

A répondu
How can I measure the time it takes to break a cryptographic algorithm by brute force attack?
timeit() However unless you deliberately using a very small key, you would need to estimate the time instead of measuring it....

8 jours il y a | 0

| A accepté

A répondu
How to set the same grid size of the axis for different plots?
https://www.mathworks.com/help/matlab/ref/pbaspect.html https://www.mathworks.com/help/matlab/ref/daspect.html You can set t...

8 jours il y a | 1

| A accepté

A répondu
How to enlarge/Scale/Increase size of a contour plot
The contour plot is made as large as possible as will fit inside the axes after taking into account axes labels and tick labels ...

8 jours il y a | 1

| A accepté

A répondu
Could someone help me to import individual jpeg images embedded in a gif image into each slide in a PowerPoint file? I use exportToPPTX.
Images = imread(Gif, 'frames', 'all'); .gif files are always indexed images. In the special case that the frames were grayscal...

8 jours il y a | 0

A répondu
Viewing Symbolic Matrix Entries in Variable Tab?
No, No there is no way to do that. If you temp = arrayfun(@char, YourSymArray, 'uniform', 0); openvar temp then you will be ...

8 jours il y a | 1

| A accepté

A répondu
How to simplify too much of if
Use look-up tables. For example the final elseif can be encoded as {[40 50 55 60 42 45 80 35 37] [40 41 44 60 32 36 80...

8 jours il y a | 0

A répondu
Is there a way to reduce Timer period to less than 1 ms?
You would need to reimplement timers.

9 jours il y a | 0

| A accepté

A répondu
Find doesn't seem to work with Matrix larger than 127x127
I am certain that find works. I speculate that you are putting the values together in an array with values of datatype int8. Whe...

9 jours il y a | 2

| A accepté

A répondu
Accessing the url address of images in Matlab Drive
The files on matlab drive cannot be remotely accessed individually. Even if you publicly share a folder, the share mechanisms do...

9 jours il y a | 0

| A accepté

A répondu
How can I find the Time for specific values of Voltage (with a small tolerance)?
find(abs(data-target)<=tolerance) Or ismembertol()

9 jours il y a | 0

| A accepté

A répondu
I would like to extract x,y,z coordinates of any 3 atoms from a pdb file. How to rectify this error and make it generalized?
% N = range of indices for example N=1:7; Q = [ubq.Model.Atom(N).X; ubq.Model.Atom(N).Y; ubq.Model.Atom(n).Z].'; This...

10 jours il y a | 1

A répondu
Dynamic plot in real time
pick nominal x coordinates for the endpoints of the see-saw. Create a line that has those as the x coordinates and has the "curr...

10 jours il y a | 0

A répondu
Error: File: project_01.m Line: 61 Column: 26
elseif Hexa_number_small = Hexa_row_small * (Hexa_number - 1); elseif must be followed by a condition, not an assignment.

10 jours il y a | 0

A répondu
Error in ode45 (line 115) odearguments(FcnHandlesUsed, solver_name, ode, tspan, y0, options, varargin);
delta = 1; That is a numeric scalar. Valid indices for it are numeric 1, logical true, logical false, and the empty vector....

10 jours il y a | 0

A répondu
Why do I get unrecognized function or variable when calling constructor in app designer
TFeature is not a property or method of the class, and it does not exist at the time the properties list is being parsed. It is ...

10 jours il y a | 0

A répondu
saving figures to a video with VideoWriter
getframe() with no options is not guaranteed to return the same size each time. In practice the size of an axes can vary by (if ...

10 jours il y a | 1

| A accepté

A répondu
How can I specify the dimension of a differentiated function?
diff() is generally successive differences. It is only derivative if the first parameter is sym or symfun, both from the Symboli...

10 jours il y a | 0