Community Profile

photo

Cris LaPierre

MathWorks

Last seen: Today Active since 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

View badges

Content Feed

View by

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

2 hours ago | 0

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

1 day ago | 0

| accepted

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

2 days ago | 1

| accepted

Answered
extracting data using indexing
See Ch 5 of MATLAB Onramp

2 days ago | 0

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

2 days ago | 0

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

2 days ago | 0

| accepted

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

2 days ago | 0

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

3 days ago | 0

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

3 days ago | 0

| accepted

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

4 days ago | 1

| accepted

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

4 days ago | 0

| accepted

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

4 days ago | 1

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

7 days ago | 0

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

7 days ago | 0

| accepted

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

7 days ago | 0

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

8 days ago | 0

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

10 days ago | 0

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

10 days ago | 1

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

10 days ago | 0

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

10 days ago | 0

| accepted

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

10 days ago | 0

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

14 days ago | 1

| accepted

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

15 days ago | 0

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

16 days ago | 0

| accepted

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

18 days ago | 0

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

26 days ago | 1

Answered
i cant access my onramp courses. As soon as i sign in it automatically signs me out
Some option to try on your own include try a different browser clear you cache and cookies restart your computer If you cont...

26 days ago | 0

Answered
my student license has expired
See if you have access through a school license. You can check here. If not, look into if you are eligible to renew your licens...

27 days ago | 0

Answered
I need Simulink and MATLAB free for just two days
You may hae access already through your school. See here

27 days ago | 0

Answered
How can I plot lat lon and z-data with changing colors?
A couple of the mapping plotting functions come to mind. Your Z value is used to determine the color. plot3m scatterm geoplot...

28 days ago | 0

| accepted

Load more