Answered
Live script change context to current directory (same behavior as normal m files)
No, no way is provided to configure Live Scripts to change directories (or ask to change directories) when invoked while the cur...

4 years ago | 1

| accepted

Answered
Where can the EOL (End of life) for the the MATLAB versions can be found out? [Names of versions of the MATLAB for which the support has been discontinued by The MathWorks]
https://www.mathworks.com/support/requirements/platform-road-map.html Windows 7: support up to R2021b Windows 8: discontinued ...

4 years ago | 1

Answered
Converting time from 24-hour to 12-hour format with AM/PM in MATLAB tables?
T = datetime('now') + hours(-15:-9).' T.Format = 'hh:mm:ss a'

4 years ago | 1

| accepted

Answered
Error reading data from combined datastore
https://www.mathworks.com/matlabcentral/answers/524896-datastore-readsize-and-buffer-chunk#answer_433066 ReadSize defines a ma...

4 years ago | 0

Answered
How to combine multiple spectrogram and create a single image in MATLAB
When you permit spectrogram() to display the result, then it always clears the axes it is drawing in. spectrogram() does not jus...

4 years ago | 0

Answered
When I run this code to depict the performance of a DCO-OFDM system, I'm getting an error with the randi function. Can you help me fix it?
You have [0 M -1]. Spacing is important: what you wrote is equivalent to [0, M, -1] You should use [0, M-1] The important ...

4 years ago | 1

| accepted

Answered
Figure 's issue
[ct]=meshgrid(0.0001:0.05:30); is treated the same way as if you had used [ct, ~]=meshgrid(0.0001:0.05:30, 0.0001:0.05...

4 years ago | 0

| accepted

Answered
Output not volume but surface using delaunayTriangulation
That kind of triangulation will never work for your kind of data. I suggest that you use boundary() and adjust the alpha para...

4 years ago | 0

| accepted

Answered
3d-surface with boundary using delaunayTriangulation
No, it is *not* possible to have that kind of triangulation stop at sharp boundaries. That kind of triangulation is not appropri...

4 years ago | 0

Answered
I am supposed to use a for loop to create 𝑥-values and compute 𝑓(𝑥) values for the function
hint: 0 = 0 + 0 * 1/100 1/100 = 0 + 1 * 1/100 2/100 = 0 + 2 * 1/100 .... 1 = 0 + 100 * 1/100

4 years ago | 0

Answered
Error with fgetl....why?
The fopen is failing. You should get in the habit of checking the return value. Note that for MacOS and Linux, the \ at the ...

4 years ago | 0

| accepted

Answered
Problem with cell array and mat2gray
Idetrended = cellfun(@mat2gray, inpsur1', 'UniformOutput', 0); I = cellfun(@im2uint8, Idetrended, 'UniformOutput', 0); I1 ...

4 years ago | 0

| accepted

Answered
I am writing a program for lateral- direction motion of an airvraft using Runga Kutta 4th order method.
Cyr(r*s/V) is *indexing* Cyr at the location in the expression. You probably wanted to multiply.

4 years ago | 0

Answered
How do I round a number with a specific tolerance in MATLAB?
round(YourMatrix + 0.001, 2)

4 years ago | 0

| accepted

Answered
Finding the corresponding number in a matrix
m = [1 2 4 6 10 9; 3 5 7 2 8 6] [~, idx] = max(m(1,:)); m(2,idx)

4 years ago | 0

Answered
I have a problem with the icon that doesn't show the output as if it doesn't work
plot() only creates lines if there are at least two adjacent finite coordinates in the same plot input. you are passing in scala...

4 years ago | 1

Answered
read binary text from a file and add zeros to it
if a~=0 text = [text, repmat('0',1,n-a)]; end Your bug is that you are converting text to string() array, but lengt...

4 years ago | 0

Answered
How do i get the matrix to be the same size. I cannot get the plot to mput any values.
h=1:100; That creates h as a vector. for h=1:length(h) length() of the vector is calculated first and recorded. The...

4 years ago | 0

| accepted

Answered
Trace variables of a function when executing
No, not without the cooperation of the function being executed or using the debug facilities, or the cooperation of some functio...

4 years ago | 0

| accepted

Answered
Trapezoidal rule for integral function
x=xl:dx:xr; That is a numeric vector, that is not integers K(x)=1/(0.05*sqrt(2*pi))*exp(-0.5*(x/0.05).^2); y(x)= b*...

4 years ago | 0

| accepted

Answered
How to add the the "change in" symbol (i.e the small tringle) on y label
ylabel('\Delta VTAC %')

4 years ago | 0

| accepted

Answered
Need to utilise only letter ASCII in Caesar Cipher Code
Hint: T('A':'Z') = circshift('a':'z', count) encoded = T(msg)

4 years ago | 0

Answered
Legend don't match with line style
k = 0; Phi_0 = exp(T*diag(k)*w*1i); T is 101 x 5. In your earlier calculations k was a vector of length 5 so diag(k) ...

4 years ago | 1

| accepted

Answered
Variable payInfo must be of data type double. It is currently of type struct. Check where the variable is assigned a value.
%load the data from mayoralpayroll.mat payInfo = importdata('mayoralpayroll.mat'); %determine median Median_of_whole = median...

4 years ago | 0

Answered
I want to know how to writ code to net1 = train(net,input,z) but z is double(complex)??
z= ((exp(sin(x))).*(cos(y)))+((sin(y)).*log(abs(tan(x.^2))+(x.^3))); z appears to be your target for a fitting function. You te...

4 years ago | 0

Answered
i am trying to get the value of u_E using the equation, but matlab says it has error in that line which has the equation.
As discussed at https://www.mathworks.com/matlabcentral/answers/1802585-not-able-to-evaluate-the-value-for-an-equation-using-the...

4 years ago | 0

Answered
How can i take the log2 of x plus 1 of a matrix
output = varfun(@(X) log2(X+1), YourTable)

4 years ago | 0

Answered
Evaluate the explicit form of the Taylor polynomial of degree 2n-1 for arctan(x) with the point of approximation 0
You tried to take the arctan of the polynomial degree, rather than the arctan of x. In MATLAB, arctan is written as atan() or a...

4 years ago | 0

| accepted

Answered
Checking multiple values in an equation in MATLAB
z5min = min(z(z > 5))

4 years ago | 0

Answered
u(t)=sinc⁡(100t)and y(t)=cos(400πt) and x(t)=u(t)*y(t)
syms t u(t) = sinc(17*t) fplot(u)

4 years ago | 0

Load more