Community Profile

photo

Srijith Kasaragod

Last seen: Today Active since 2021

Statistics

  • 3 Month Streak
  • Knowledgeable Level 2
  • Revival Level 2
  • First Answer

View badges

Content Feed

View by

Answered
Use the Run & Time in a function called from an App (mlapp)
Hi Hugo, Refer this document to read on 'tic' and 'toc' functions which measure elapsed time. The required function call inside...

1 day ago | 0

Answered
I was asked to use an excel sheet containing names, user ID's, height, weight, and age.
Hi Hind, Once the table is imported into MATLAB workspace, any table variable can be accessed using dot syntax. For example, as...

1 day ago | 0

Answered
trying to make a switch case for the dropdown with options: sine,cosine,square, triangular, to plot the right wave whenever chosen, this only plots sine wave, what's wrong?
Hi Rana, I have tried to recreate the issue at my end and the code seems to run correctly, with sin, cos, square and sawtooth w...

2 days ago | 0

Answered
Scope data to App Designer variable
Hi Luis, This answer describes how to update an app based on data from a running SIMULINK model. Please have a look at it. Tha...

3 days ago | 0

Answered
Formatting column names in a table of data
Hi Batool, I assume you wish to name table variables as LATEX text and display the table in command window. MATLAB supports LAT...

3 days ago | 0

Answered
Why do I get "Array indices must be positive integers or logical values" in line 17
Hi Omar, When for loops begins execution, loop variable 'i' is initialized to 0. Also variable 'l' is 0. Hence array index 'i+l...

4 days ago | 0

Answered
how to add title/caption to FormalTable ?
Hi Srushti, Please refer this answer which captures the same issue. Regards.

5 days ago | 0

| accepted

Answered
how to include the simulation result graph image (obtained from GUI) into the Report Generator Code?
Hi, One way you could add simulation images to a report is to have the figure saved locally and use 'append' function. Hope th...

5 days ago | 0

Answered
Good day, How can I create a push button that creates a new variable every time the user presses the button in App designer?
Hi Kyle, Creating dynamic variables could lead to your code being inefficient and affect its readability. A better practice wou...

6 days ago | 1

| accepted

Answered
How can I use function to give me a variable from an excel file?
Hi Claudia, Following lines of code shows one of the ways you could solve your problem: tbl= readtable('excel.xlsx'); %variab...

6 days ago | 0

Answered
Matlab 2021b: Run Section in debugging mode not working anymore
Hi Michael, This is a known issue and our developers are aware about it. It might be fixed in future releases. There are no w...

29 days ago | 0

| accepted

Answered
Trying to do DFT and getting 'Unable to perform assignment because the left and right sides have a different number of elements' error.
The expression "2/L*sum( y.*cos(w*n*t) )" returns an array of size 1xM. Equating it to "a(n)" is bound to produce an error as "a...

29 days ago | 0

| accepted

Answered
Need Simulink help using analog input signals to fft
Hi Emmanuel, Could you please share what issues are you facing? Meanwhile you can refer this question and its comments. It ...

30 days ago | 0

Answered
how to create a graphic-table point correspondence
Hi Laura, You can use 'uitable' function to add a table into the figure and position it below the scatter plot using 'Position'...

30 days ago | 0

Answered
Splitting the first cell of my table into two
Hi Noush, You can separate the values using 'strsplit' function by giving delimiter argument as ':' in this case. It would retu...

1 month ago | 0

Answered
Show image with dialog box for user input
Hi Abhilash, Once you display the image to user, you can use 'datacursormode' function to create a data cursor manager object f...

1 month ago | 0

Answered
Matlab 2021b: Run Section now interrupts currently running section?
Hi Joseph, This is a known issue which the developers are already aware of and might be fixed in a future release. A workaroun...

1 month ago | 1

Answered
signal interpolation after getting fft for voice signal ?
Hi Haider, I understand that you have computed fft of the signal imported and wish to plot its upper peak envelope. You can use...

1 month ago | 0

Answered
Code for discrete signal plot.
Hi Syed, Inorder to plot the signal, you have to first define discrete time instances and signal values. Time vector can be def...

1 month ago | 0

Answered
Creating a pop up menu from a spreadsheet
Assuming the items lie in the spreadsheet as a single column, 'readcell' function can be used to return the items as a cell arra...

1 month ago | 0

Answered
UITableCellSelection callback for selecting cells and providing an output
Hi. One possible approach to solve the problem is given below: 'UITable' can be populated with links corresponding to the pages...

1 month ago | 0

Answered
How do I get GNa(t) and Gk(t) on the same graph? On the graph there is supposed to be currents for m, n , h
As per my understanding, the currents for 'm', 'n' and 'h' are returned by the function as s1(:,2), s1(:,3) and s1(:,4) respecti...

1 month ago | 0

Answered
How to label characteristic values of step response on the figure?
Hi, The 'stepinfo' function outputs a structure with fields as the step response characteristics. Please refer 'this' answer to...

2 months ago | 1

| accepted

Answered
generate and plo gaussian random sequence
Hi, You can use 'randn' function to generate gaussian random sequence with mean 1 and variance 0 and transform it to desired me...

2 months ago | 0

Answered
Conditional sequence generator for sinus
Hi, One way to generate the sequence is to use relational operators to assign values to variable 'x'. Following lines of code s...

2 months ago | 0

Answered
Trouble plotting variables from cache menu and table
Hi, I understand that you have a table consisting of multiple variables and you wish to have 2 dropdowns in the app, which sele...

2 months ago | 0

Answered
Unable to split bar graph variables
Following lines of code shows one possible solution to your problem. The bar graph is created against a categorical value on the...

2 months ago | 0

Answered
How to make a summation series with a dataset
The following function shows one possible approach to solve this problem . I assume that the dataset contains 1000x1 double valu...

2 months ago | 0

| accepted

Answered
Force certain data tips to show by default on figure?
As per my understanding, you have a scatter plot and wish to have certain data tips visible in the plot by default. You could us...

2 months ago | 0

Answered
Need help in dropdownopening callback.
Assuming the x and y sliders adjust x-axis limit and y-axis limit of the plot respectively, following lines of code shows one of...

2 months ago | 0

Load more