Answered
How to change MATLAB precision of variables?
fsolve() can never work with symbolic numbers, so what you seem to be suggesting will not work. You would need to switch to vpas...

4 years ago | 0

Answered
Output argument's name same as input argument's
Yes there is. In the case where you have a function that has the same name for input and output, and part of the input is mod...

4 years ago | 0

Answered
command or how to obtain best real root of a polynomial with given unknown coefficient.
This code selects the root with the largest real component. Then from the remaining roots, if at least one of them has 0 as its ...

4 years ago | 0

| accepted

Answered
Error on custom layer (MATLAB EXAMPLE) (nnet.Layers.Acceleratable path cannot be found)
That layer is new as of R2022a.

4 years ago | 3

| accepted

Answered
how can we create image through dataset consisting of 702 rows and 1 column?
I = reshape(Data, 26, 27); imshow(I, [])

4 years ago | 0

Answered
UWB Ranging Using IEEE 802.15.4z -> lclDelayWithNoise not Found with 2022a
https://www.mathworks.com/help/comm/ug/uwb-ranging-using-ieee-802.15.4z.html code is further down in the page.

4 years ago | 1

| accepted

Answered
Need help creating a matrix from data in a for loop.
for hour = 0:23 for minute = 0:59 data(hour+1, minute+1) = appropriate value end end

4 years ago | 0

Answered
how to export complete workspace data (containing objects, matrices, cells & structures) to one excel sheet ?
No there is no simple way to do that. There is no complicated way to do it either. Excel lacks the capacity to represent hierarc...

4 years ago | 0

Answered
Rewrite a function in terms of parameter
https://www.mathworks.com/matlabcentral/answers/1701185-problems-with-y-x-division-isolation?s_tid=srchtitle

4 years ago | 0

Answered
dsolve invalid indexing error
You have two functions, y and u, but only one differential equation. MATLAB has to decide what to solve for. It essentially uses...

4 years ago | 0

| accepted

Answered
Polyfit for loop not recording results
polyfit returns a vector of coefficients which has one more entries as the given degree. degree 2 has 3 entries and so on. But y...

4 years ago | 0

Answered
Generating a Dictionary Function
strcmpi() perhaps. However that depends how much intelligence you need to put into it. You give an input example with a leading ...

4 years ago | 0

| accepted

Answered
How do I put all the Outputs from the iterations of a For Loop into a Row Vector?
Assign to B(x) instead of B

4 years ago | 1

| accepted

Answered
How to send and receive variable data to and from a simulink model during simulation
Use a MATLAB Function Block and call assignin('base') and evalin('base') You cannot use From Workspace or To Workspace blocks...

4 years ago | 0

Answered
Index exceeds the number of array elements (4)
msg_symbol=randi(L_frame*b,NT); The code was improperly converted from earlier code that was written using randint(). rand...

4 years ago | 0

Answered
How to use special characters in MATLAB (unicode playing cards)?
This is closer... function [ asciioutput ] = asciiCardsFunction(playerCards, dealerCards) V1 = {'🂡' '🂱' '🃁' '🃑'}; V2 ...

4 years ago | 0

Answered
How to verify that a number is an integer from 0-1000?
Trim off leading and trailing whitespace. Verify that the only remaining characters are '0' to '9'. After that take length() of ...

4 years ago | 0

Answered
What does it mean to take the absolute of an complex number? And why is it always positive?
syms a b real c = a + b*1i d = abs(c) With the real and imaginary components each being real, their squares are going to be n...

4 years ago | 1

Answered
How to count a character string position?
S = '00101100' find(S == '1')

4 years ago | 0

Answered
How do I convert a column in an array that have 18-bit singed integer to 32-bit?
N = 18; mask = bit18>=2^(N-1); bit32 = bit18; bit32(mask) = bit32(mask) - 2^N;

4 years ago | 0

| accepted

Answered
fclose(obj) does not work immediately
When you use tcp the default keep-alive timeout is 2 hours https://docs.microsoft.com/en-us/windows/win32/winsock/so-keepalive ...

4 years ago | 1

Answered
How can i draw the below figure in Matlab?. Pls help.
After you draw the lines with plot() and figure out where the intersection point is, use annotation('doublearrow') https://www.m...

4 years ago | 0

Answered
Updating variable after each loop iteration
generated_word='matlabcommunity' promt = strings(0): newChr=[]; for i=1:length(generated_word) promt(i)=input("Enter...

4 years ago | 0

| accepted

Answered
Getting inconsistent results for fitting different series of data to a nonlinear function
Nonlinear curve fitting *often* encounters local minima. Some kinds of nonlinear systems are notoriously difficult to fit pro...

4 years ago | 1

Answered
Display Matrix of Symbolic Data
fplot([hG(:);g(:)])

4 years ago | 0

| accepted

Answered
Error in Plotting The Surface graph.
qwe=int(I,s,0,b); That is symbolic surf( y/b,z/b,qwe) surf cannot handle symbolic arguments, even if the symbols c...

4 years ago | 0

| accepted

Answered
Error with the command Geoplot
lat = A{:,"Latitud"}; lon = A{:,"Longitud"}; OR lat = A.Latitud; lon = A.Longitud;

4 years ago | 0

Answered
Error in GWO optimization algorithm
cellstr(num2str('Best_pos(1:4)'))' 'Best_pos(1:4)' is a character vector. num2str() applied to a character vector gives the cha...

4 years ago | 0

| accepted

Answered
How do I have my variable output be uniform?
You are using the variable browser. The variable browser does not provide any way to customize the output for Mathworks-provided...

4 years ago | 0

Answered
Error when running 'Train a Deep Learning Vehicle Detector' program
See https://www.mathworks.com/matlabcentral/answers/484377-error-undefined-function-preprocessdata-for-input-arguments...

4 years ago | 0

| accepted

Load more