Answered
finding the average from csv file
There are some mistakes with your code, but the core elements are all there. create exxall as an empty array. You currently cre...

3 years ago | 2

| accepted

Answered
this is the app designer file i have this error in the imadjust how to fix it \the file will beattached below
Your second input is not formatted correctly. It should be a 2 element vector, or a 2x3 numeric matrix. Based on where your semi...

3 years ago | 0

| accepted

Answered
create a table in the live script
Currently, the only way to add editable tables to a live script is to use LaTeX. Although this answer is for MATLAB Grader, the ...

3 years ago | 1

Answered
Multi data set plots on App Designer
MATLAB is case sensitive. Use plot instead of Plot In app designer, you also need to specify which axes to plot into using the ...

3 years ago | 0

| accepted

Answered
How can I resolve issue with .mlx file showing a blank screen?
Where this is unexpected behavior, I would suggest reporting this as a bug. You can do that here: https://www.mathworks.com/sup...

3 years ago | 0

| accepted

Answered
question regarding ploting a table as a surface
Depending how exactly you are trying to duplicate the image you shared, it looks like you don't want a surface. You want to use ...

3 years ago | 0

Answered
I have the following code in Matlab, the problem is that it does not graph anything, nothing comes out of plot *does not show any error in the console
Attach your wav file to your question using the paperclip icon. It would also help to have your freq function code. Still, using...

3 years ago | 0

Answered
ODE45 for phase trajectory plot
With initial conditions [0,0,0], the results of ode45 are all zeros, so there are no gradients. Consider adjusting your initial...

3 years ago | 0

| accepted

Answered
Sir,how can i read the QR barcode in Matlab software
See the 'Read a QR Code' example on the readbarcode documentation page. In testing this, it appears the function only works wit...

3 years ago | 1

Answered
Not enough input arguments error/ int command/ integral calculation
int is for symbolic integration. See Bora's answer if you want to perform numerical integration. The error is because of how yo...

3 years ago | 0

Answered
I want to plot ecg from the .mat file I have obtained after doing some preprocessing
You are loading your mat file variables into a structure you named ecg, so you must specify which variable in ecg to plot. Your ...

3 years ago | 0

| accepted

Answered
How to create a function that produces 2 histograms?
I'd use tiledlayout. Rather than surf or countour, use histogram. tiledlayout(2,1); [X,Y,Z] = peaks(20); % Tile 1 nexttile...

3 years ago | 0

Answered
filling holes in the masked image please help me to replace blue color background of given giraffe image with forest image.
I would try using imclose. You can add this to your function, or process the output of your function. img = imread('giraffe.jpg...

3 years ago | 0

Answered
Error using reshape: Product of known dimensions, 304, not divisible into total number of elements, 19.
What are you trying to do? Based on your code, you are trying to reshape a 1x19 vector into an array with 304 rows, and as many...

3 years ago | 1

Answered
Restricting app slider values
Is the spacing between values uniform? If so, you can set the step property. If not, I think you would have to have your callba...

3 years ago | 0

| accepted

Answered
Regexp to extract standalone numbers from string
Borrowing heavily from this answer and this doc page. str{1,1} = 'X?YYx0123 [un] 21ZZz20AaaB00 A200.1 21 Xx2222 202 203...

3 years ago | 0

| accepted

Answered
Open Excel files in Apps Designer
You must pass a vaid file name to readtable. Consider modifying your code to incorporate uigetfile, which will allow your users ...

3 years ago | 0

| accepted

Answered
How to share files from matlab mobile
I'm a little confused, but I'll take a stab. MATLAB Drive is the file system used in MATLAB Mobile (and MATLAB Online). You say...

3 years ago | 0

| accepted

Answered
How do I replace (or remove) <undefined> with NaN in a categorical array ?
<undefined> is the value used for a missing categorical entry. NaN is for missing numerical values. You can replace missing val...

3 years ago | 2

| accepted

Answered
Include p code in a matlab grader assignment
P-code the function on your computer, then attach the p-code file to your problem. This places the file in the current folder of...

3 years ago | 1

| accepted

Answered
How do I switch to secondary axes in a tiled layout?
You cannot set position of axes in tiledlayout, so I would recommend setting the Layout,Tile property of the fourth axes after i...

3 years ago | 0

Answered
Can not find `Simulink 3D Animation` in Add-on Explorer
I see the same issue and will report it. It is not appearing in the search results, but you can get to it using a workaround. S...

3 years ago | 0

| accepted

Answered
extract values from a table
If this is of datatype table, you might find the Access Data in Tables page helpful. You describe selecting data using multiple...

3 years ago | 0

Answered
Please help me how to run it :(
The error is caused by this code: df=grad(x(1),x(2)); It can't find your m-file function grad.m. From your file comments (line ...

3 years ago | 0

Answered
ODE45 requires more parameters than it should
The first 2 inputs to your function must by t and y, which they are. Those correspond to tspan_solve and IC. The remaining input...

3 years ago | 0

Answered
Getting to know the nut
I'd suggest going through the Image Processing for Engineering and Science specialization on Coursera. This was created by MathW...

3 years ago | 0

Answered
I want to display it in edit2 when I enter the value written in the edit1 text.
You need to set the String of edit2 equal to the input of edit1. I imagine the code would be something similar to this (untested...

3 years ago | 0

Answered
Plotting in 2D - hlep with axes
There is no way I know of to apply two different scales to the x axis. That means you would have to modify the underlying data, ...

3 years ago | 0

Answered
can MATLA read very large CSVs (>150GB)?
This sounds like what is called Big Data to me. MATLAB does have functionality for working with this data, A good starting place...

3 years ago | 1

Answered
How can I make a string array consisting of strings with numerical suffixes?
str2num won't work with a word ("sub"). It's also unnecessary if you are using sprintf. One other correction I would make is i...

3 years ago | 1

Load more