A répondu
how do i join 2 matrices
Yes, you could use vertical concatenation followed by reshape. a= rand(5) b=rand(5)+5 % brute force c = [a(:,1) b(:,1) a(:,2...

3 mois il y a | 1

| A accepté

A répondu
Error using scatteredInterpolant on missing data
When using the syntax F = scatteredInterpolant(x,y,v), your inputs must all be vectors. That means v=z(:), and that x and y are ...

3 mois il y a | 1

| A accepté

A répondu
How to train a neural network
The first result I found when googling your question seems promising: Create and Train a Feedforward Neural Network - MathWorks...

3 mois il y a | 0

A répondu
Stacked bar chart is in alphabetical order instead of date.
Your dates are categoricals, which by default get stored in alphanumeric order. Use 'reordercats' to place them in your desired...

3 mois il y a | 0

| A accepté

A répondu
How to Call a Function Within a Script?
Here is how you run the example you mention. Note that the last 2 lines of code in the example are how you call the function, an...

3 mois il y a | 0

A répondu
Plot a time series for Mean temperature for january and february
See this answer: https://www.mathworks.com/matlabcentral/answers/1855768-finding-average-data-from-a-large-data-matrix#answer_1...

3 mois il y a | 0

A répondu
Generating random variable of certain std and mean (Simple Task)
My suspicion is that the grader is expecting column vectors but you have created row vectors. Try this y = 4.2.*randn(20, 1) ...

3 mois il y a | 2

| A accepté

A répondu
I am getting the error as "Too many Input arguments", " Failure in Initial Objective function evaluation" .Also unable to run the function vivek1
Using the following syntax (from your original post) will result in a "Too many input arguemnts" error because, well, there are ...

3 mois il y a | 0

| A accepté

A répondu
Finding average data from a large data matrix
Use groupsummary. data = [1990 1990 1990 1990 1995 1995 1995 1995; 1 1 2 2 1 1 2 2; 1 2 1 2 1 2 1 2; 3 5 7 4 6 8...

3 mois il y a | 1

A répondu
Extract data in a table following a a range of date (years)
Your table has 3 columns. Your deletion code must delete all 3 columns. You specify 'all columns' by adding a colon in the 2nd p...

3 mois il y a | 0

| A accepté

A répondu
Unable to perform assignment because the left and right sides have a different number of elements. ODE45
The problem is that your calculation for yy(6) returns a 3x3 matrtix, and you are assigning it to a 1x1 space. Hence, the left (...

3 mois il y a | 0

| A accepté

A répondu
Converting cell to array data with specific string
There are many ways to do this. Here are two. The result of the 2nd option is a table. See this page on Accessing Data in Tables...

3 mois il y a | 2

A répondu
How to sum values from a table by category
I would use groupsummary. You may be interested in our Performing Calculations by Category video from our Exploratory Data Analy...

3 mois il y a | 0

| A accepté

A répondu
plotting multiple fitting graphs in a single graph
By including the figure command, you are telling MATLAB to create a new figure window. Removing that and making some minor cosme...

3 mois il y a | 0

A répondu
How to load excel file in numeric matrix and save it
Use readtable or readmatrix. You might be interested in Ch 10 of MATLAB Onramp.

3 mois il y a | 0

A répondu
How to mean data of second column with respect to the similar element in the first column
Use groupsummary or grpstats. Group on column A, and set the 'method' to 'mean', and set the datavars to column B. If you impor...

3 mois il y a | 0

A répondu
Finding average heart rate of EKG data
I would calculate the instantaneous heart rate for each heartbeat, and then take the average of those to find average heart rate...

3 mois il y a | 0

A répondu
Create surf (3D plot) with axis limitation from 2D matrix - animated
Each time you call the surf function, you get a brand new axes. This means any settings set in the previous axes are lost, and m...

3 mois il y a | 0

| A accepté

A répondu
How can I show the legend to all bars?
Legends label data series, not individual points in that data series. The issue right now is that each bar is part of a single d...

3 mois il y a | 0

| A accepté

A répondu
How to colour each individual bar with a different colour?
See this answer: https://www.mathworks.com/matlabcentral/answers/1651280-changing-color-for-each-bar-plot

3 mois il y a | 0

A répondu
how to insert webcam video on guide
Be sure you have the correct support package installed. https://www.mathworks.com/help/supportpkg/usbwebcams/ug/installing-the...

3 mois il y a | 0

A répondu
Could anyone explain what is the role of vector x in, polarhistogram(deg2rad(200),x) ;given x=(0:10:360)*3.14/180 ?
Looking at the possible syntaxes for calling polarhistogram, I draw the following conclusions: For 1, x must be specifying the...

3 mois il y a | 0

| A accepté

A répondu
Need to solve this with Runge-Kutta 4th order method in MatLab.
https://www.mathworks.com/matlabcentral/answers/?search_origin=ans_leaf&term=runge-kutta+4th+order

3 mois il y a | 0

A répondu
I have file with size= 2728, 5. I use writematrix function to sale file in Excel file. If I read saveld file, it size becomes 2728, 2728.. What is wring?
Your syntax means the data is being writting to an existing spreadsheet, which seems to alreay have some data in it. readmatrix...

3 mois il y a | 1

A répondu
Try to hide/show certain fields end with errors
You have added callback functions to your figure and your selection panel. Remove these, and the errors go away. To remove, rig...

3 mois il y a | 0

| A accepté

A répondu
how can i plot this attached figure
Use plot3 and tiledlayout.

3 mois il y a | 0

| A accepté

A répondu
plot all dates to x-axis in bar graph
d = datetime(2017,1:20,1); x = rand(1,20); bar(d,x) xticks(d)

3 mois il y a | 0

| A accepté

A répondu
cleaning the outliers from a large data sets xlsx
If you process your data in a live script, consider interactively exploring different ways to detect and remove outliers using t...

3 mois il y a | 0

A répondu
how to fix camera error on matlab
Does this happen the first time you try to connect to your camera, or when you try to rerun your code? The issue is something i...

3 mois il y a | 0

A répondu
data sorting for finding average and standard deviation
I would look into using groupsummary. I'll let you worry about getting the output formatted the way you want, but here's how I w...

3 mois il y a | 0

Charger plus