Respondida
In a while loop, I have to calculate S (net cash of an insurance company) depending on which events (E1, E2 or E3) happens first. I tried the following code, but its not working. Maybe someone can help me ...
There seems to be few syntax errors in the code. You can use multiple elseif block under the if block but only a single else blo...

alrededor de 4 años hace | 1

Respondida
How to draw a northarrow on a simple plot, and not on a map?
The northarrow function works on map axes. You may want to read the annotation documentation to draw an arrow on a simple plot. ...

alrededor de 4 años hace | 0

| aceptada

Respondida
Error in port widths or dimensions. 'Output Port 1' of 'filtereddxlms/Sum1' is a [1024x1] matrix.
Since the Signal Specification block is a virtual block that exists only to specify the attributes of a signal and plays no role...

alrededor de 4 años hace | 0

Respondida
Help! Indexing a Vector, Display Issues
According to the script you have written, if the inputs are provided in the [h,m,s] format, direct addition can be done. Provid...

alrededor de 4 años hace | 0

| aceptada

Respondida
plotting x[n] with various points from a file
Stem function requires both X and Y inputs to be vectors or matrices of the same size. You may use the following line of code: ...

alrededor de 4 años hace | 0

| aceptada

Respondida
Invalid text charcter .Check for unsupported symbol, invisible charcter ,or pasting of non-ASCII chatcters
Please refer this link for answers to a similar question. If the error persists, share your code for better resolution of the is...

alrededor de 4 años hace | 0

Respondida
Matrix is singular to working precision
The warning “Matrix is singular to working precision” occurs if the matrix for which you are using to solve the system of linear...

alrededor de 4 años hace | 0

Respondida
How can I change the letters in a string input but not the other characters?
It is my understanding that only the letters in the string input must be changed according to the logic of the script and other ...

alrededor de 4 años hace | 0

Respondida
What does the "E" with the arrow on the signal?
SimEvents models no longer require gateway blocks. It automatically handles any exchange of data across the time and event domai...

alrededor de 4 años hace | 1

Respondida
Generating FMCW Tx chirp
You can refer the Automotive Adaptive Cruise Control Using FMCW Technology example to model the FMCW Transmitter chirp. Hope thi...

alrededor de 4 años hace | 0

Respondida
Is it possible to change range and order label to latitude/longitude in an azimuthal projection using Mapping Toolbox?
You may check the Map Axes Properties to control axes appearance and label properties. You can use mlabelzero22pi to change the ...

alrededor de 4 años hace | 0

| aceptada

Respondida
Is it possible to get timestamp information from ''getsnapshot'' function in Image Acquisition toolbox?
Yes, it is possible to store the frames and timestamp data. You may use the start and stop function inside the loop to avoid log...

alrededor de 4 años hace | 0

| aceptada

Respondida
I have a few if statements within a while statement, i want them to display different values based on input but they're being skipped over
Hi Joshua, from your code I understand that you want to type the letter ‘x’ to close the game and display “Thanks for Playing”. ...

alrededor de 4 años hace | 0

| aceptada

Respondida
MATLAB command to replace 0 in Excel
Hi Akshay, You can use the readcell function to read a range of values and use the cellfun command to replace the zeros with bl...

alrededor de 4 años hace | 0

| aceptada

Respondida
Matlab code check for signals
Hi Jone, The code seems to be working fine. Please ensure that you have saved the file with the same name as that of your funct...

alrededor de 4 años hace | 0

Respondida
Save workspace to .pdf
You can save your workspace as a PDF file by first saving it as a MATLAB file using matlab.io.saveVariablesToScript or Simulink....

alrededor de 4 años hace | 0

Respondida
Data Tip properties do not persist
Hi, You can try pasting both the lines of code where the font size is initialized, inside the ‘UpdateFcn’ of the datacursormode...

más de 4 años hace | 0

| aceptada

Respondida
Binning regions of a 2D matrix slices (and extending this into the third dimension)
Hi Eunan, You can use the convn function to help you achieve this. Please look at the below example where I have taken ‘X’ as ...

más de 4 años hace | 1

Respondida
Change data tip so it shows temperature
You can refer to datacursormode documentation which has an example of customizing data tips via a callback function. From my un...

más de 4 años hace | 0

| aceptada

Respondida
extending an array for zero padding,
Hi, it is my understanding that the array ‘K’ needs to be extended to the same size as that of array ‘L’. You can use the linspa...

más de 4 años hace | 0

| aceptada

Respondida
datastore for a matrix
As the error says “Member names must be unique”, you can add the ‘MemberNames’ property in the labeledSignalSet definition and d...

más de 4 años hace | 0

Respondida
Plot initial and final position only on plot
It is my understanding that you are trying to solve a collision problem in 2D plane. You can check out the scatter function to p...

más de 4 años hace | 0

Respondida
how to plot the number of each run/plot in a scatterplot
Hi, Yes, it is possible to modify the number of each run. Initialize the annotation outside the loop and change the text inside...

más de 4 años hace | 1

Respondida
Set a marker at an arbitrary location on the web map
The webmap does not allow adding markers by clicking on it. Although, you can use the geoaxes plot to add markers to the webmap....

más de 4 años hace | 1

Respondida
Conversion to double from struct is not possible.
The variable name can be used to select only the required data from the MAT file. To save the changes made to your data back to ...

más de 4 años hace | 1

| aceptada

Respondida
FFT of time domain data from excel
You can refer to readmatrix for reading the data from the CSV file. Using the readmatrix function, data in the CSV file you have...

más de 4 años hace | 0