Community Profile

photo

Cris LaPierre

MathWorks

Last seen: Today 2018 以来アクティブ

Statistics

All
  • Community Group Solver
  • Thankful Level 4
  • Most Accepted 2021
  • 24 Month Streak
  • Ace
  • Revival Level 4
  • Solver
  • Knowledgeable Level 5
  • First Answer

バッジを表示

Content Feed

表示方法

回答済み
Help ME ! Error in feature input layer in CNN, Number of observations in X and Y disagree
I see the error in this line: 'ValidationData',{xVal,yVal'}); % ^ You are transponsing yVal. Assumin...

約2時間 前 | 1

回答済み
fileread txt file problem
Consider looking into readtable or readmatrix instead of textscan. % if you want column 5 format long g file = 'https://www.m...

約5時間 前 | 0

回答済み
Index exceeds the number of array elements (0).
You are trying to index a variable that has no elements. a = [] a(1)

約6時間 前 | 0

回答済み
what can we use when we dont have value in a matrix instead of 0?
use nan? data = rand(3); data(2,3) = nan You could also use missing, especially if you are usure of the data type. The result...

約6時間 前 | 0

| 採用済み

回答済み
How can I get this code to work? I am trying to fit the equation that contains step and delta function to experimental data. But I am getting the following error.
The problem is that your objective function is returning NaN values. It is specifically the exp and sinh parts of the equation. ...

約22時間 前 | 0

回答済み
What does a(a<0) = 0 mean in matlab?
Yes, it works on arrays. It is using logical indexing to assign values to a. You can learn more about logical indexing in Ch 11 ...

2日 前 | 0

| 採用済み

回答済み
Plot Label, Tile and Legend at the same time of the live plot
I would rearrange your code to set everythign up before entering the for loop, and then in the loop, just update the plot data. ...

3日 前 | 1

| 採用済み

回答済み
extracting data using indexing
See Ch 5 of MATLAB Onramp

3日 前 | 0

回答済み
Why doesn't Matlab recognize my data format?
The error is because 2018 was not a leap year. 2016 and 2020 were. d1 = '29/02/2016'; datetime(d1) % The error you see d2 = ...

3日 前 | 0

回答済み
how do I display the labelling on the axis?
The issue is caused by the code that adjusts the axes position. Comment that out, and your axes labels appear. % CGLsim1D.m %...

3日 前 | 0

| 採用済み

回答済み
how to use fprintf in app designer?
fprintf will print to the command window, even if called in App Designer. There is not a 'print output' option in app designer. ...

3日 前 | 0

回答済み
how to use external function in app designer?
See this answer: https://www.mathworks.com/matlabcentral/answers/398322-calling-external-functions-in-app-designer

4日 前 | 0

回答済み
Why my fft graph gives different output on again running the code?
I suspect the reason it changes is because you are adding randon noise to your signal with awgn. Since that changes every time t...

4日 前 | 0

| 採用済み

回答済み
I need to break down the flow data into groups of data with months for every year.
Look into groupsummary, specifically the groupbin option 'monthofyear'.

5日 前 | 1

| 採用済み

回答済み
convert char array to string
The function fileparts creates output with the same data type as the input. % String input = string output fileS = "H:/user4/...

5日 前 | 0

| 採用済み

回答済み
Live Script not loading - empty editor window
I would recommend contacting support to report this. They will be better positioned to help investigate this.

5日 前 | 1

回答済み
How can I plot my reflectance data according the "day of year"?
Use the following syntax: gscatter(x,y,g,clr,sym,siz) You cannot skip an input, so if you want to use the default color and sy...

8日 前 | 0

回答済み
How can I plot my reflectance data according the "day of year"?
Here's a first attempt. I will create a datetime vector of evenly spaced time values from 1/1/2013 - 12/31/2022. From there, I c...

8日 前 | 0

| 採用済み

回答済み
it says error using assert, assertion failed and error in iuntitled (line 10) assert(ischar(in))
That is what an assert does. If the assertion fails (here that means that in is not a char), then an error is thrown and the mes...

8日 前 | 0

回答済み
[MATLAB Grader] How to test if a matrix compares.
The code you have provided will compare the values in the student's variable A against the reference solution variable A. Values...

9日 前 | 0

回答済み
MATRIX ARRANGEMENT PROBLEM MATLAB
Not that your loop counter is j, but your indexing uses j+1, and then again use loop counter aa, but index using aa+1. Therefore...

11日 前 | 0

回答済み
Why I cannot see any result on my graph
By default, MATLAB plots using a solid line style with no marker. When you plot a single point like your code is doing, this res...

11日 前 | 1

回答済み
Index exceeds the number of array elements (0)
The error means you are trying to index an empty array. a = []; a(1) It looks like the line causing the error is from ChomboO...

11日 前 | 0

回答済み
A problem with K-means Clustering
Perhaps you could describe what you think your code is doing? One thing to be aware of - outputs are determined by position, no...

11日 前 | 0

| 採用済み

回答済み
how to enable label in x and y axis of this graph
Personally, I would do it programmatically. However, you can also use the Insert menu.

11日 前 | 0

回答済み
Problem with using addvars
I would do it this way z7AsensorDataList(ind1).dynamicSensorData.SensitivityThold.sensitivity_thold_190 = z7AsensorDataList(ind...

15日 前 | 1

| 採用済み

回答済み
I want to send data from Matlab to Arduino
Consider looking through the arduino examples: https://www.mathworks.com/help/supportpkg/arduinoio/examples.html

16日 前 | 0

回答済み
plotting coordinates on a simple map
The geoplot function was introduced in R2018b (see here). You will need to update your version to at least that version to be ab...

17日 前 | 0

| 採用済み

回答済み
How can I interpolate data obtained from two different time intervals?
I would convert the data to timetables and then use the synchronize function to combine the two tables to a common time vector. ...

19日 前 | 0

回答済み
Error using input Unrecognized function or variable 'x'. Error in untitled (line 2) f1=input('fonksiyonu giriniz: ')
It may be in part how you are formatting your input equation, but the main problem is that there is no 'lnx' function in MATLAB....

27日 前 | 1

もっと読み込む