Answered
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...

3 years ago | 1

Answered
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. ...

3 years ago | 0

| accepted

Answered
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...

3 years ago | 0

Answered
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...

3 years ago | 0

| accepted

Answered
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: ...

3 years ago | 0

| accepted

Answered
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...

3 years ago | 0

Answered
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...

3 years ago | 0

Answered
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 ...

3 years ago | 0

Answered
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...

3 years ago | 1

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

3 years ago | 0

Answered
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 ...

3 years ago | 0

| accepted

Answered
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...

3 years ago | 0

| accepted

Answered
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”. ...

3 years ago | 0

| accepted

Answered
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...

3 years ago | 0

| accepted

Answered
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...

3 years ago | 0

Answered
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....

3 years ago | 0

Answered
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...

3 years ago | 0

| accepted

Answered
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 ...

3 years ago | 1

Answered
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...

3 years ago | 0

| accepted

Answered
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...

3 years ago | 0

| accepted

Answered
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...

3 years ago | 0

Answered
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...

3 years ago | 0

Answered
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...

3 years ago | 1

Answered
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....

3 years ago | 1

Answered
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 ...

3 years ago | 1

| accepted

Answered
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...

3 years ago | 0