Community Profile

photo

Cris LaPierre

MathWorks

Last seen: Today Active since 2018

Statistics

All
  • 24 Month Streak
  • Ace
  • Thankful Level 2
  • Revival Level 4
  • Solver
  • Knowledgeable Level 4
  • First Answer

View badges

Content Feed

View by

Answered
Problem: fit function change the size of my "x" data-array.
It appears the fit first performs a 'sanity check' of the input function using 7 values. If that passes, it then actually runs t...

3 hours ago | 0

Answered
How to textscan dates and data delimited with spaces?
Assuming your data is numeric, I would do this. data = [2010 12 31 23 50 198 8.2 999 99.0 9999; 2011 01 01 00 00 199 8.1...

6 hours ago | 2

Answered
How is delta from the polyval function calculated
Rather than recreate a MATLAB function in Python, why not just call MATLAB from inside Python? https://www.mathworks.com/help/m...

7 hours ago | 0

Answered
For TMW staff: Matlab Home/Cloud drive connector/macOS Mojave
You can see the system requirements here. For R2021b it says macOS Mojave (10.14) is no longer supported

23 hours ago | 0

Answered
How can I solve this issue : "Products require a supported compiler"?
No issue unless you want to create standalone applications. If you do but don't have a preferred compiler, you can install MinGW...

23 hours ago | 0

| accepted

Answered
why is my vector empty
I'm not sure what you want wordarray to be. However, it's empty because you are using the colon operate and, since all ascii cod...

2 days ago | 1

Answered
MatLab on iPad Air 2021
See this answer. https://www.mathworks.com/matlabcentral/answers/355038-difference-betwen-matlab-for-ipad-pro-and-matlab-for-wi...

2 days ago | 0

Answered
How to normalize a matrix in such a wat that every row sum of X(:,:,i) should be 1 except for ith row
Why not just create a row vector of random numbers, and insert it into a matrix of ones? X = ones(sz1,...,szN)

2 days ago | 0

Answered
I want to create a variable that averages the data over one minute from a larger set of data
Not exactly sure what data looks like. I would use groupsummary with the groupbin set the 'minute' and the methods set to 'mean'...

2 days ago | 0

Answered
Why is my last line coming up as an empty sym?
I don't think you need to use solve in the final line. Substituting in 2 for x will return a value for y. There is nothing left ...

3 days ago | 1

Answered
How can I make 2.5x2.5 grid data to 0.5x0.5 grid data.
Use griddata. [Xq,Yq,vq] = griddata(x,y,v,xq,yq)

3 days ago | 0

Answered
Empty figure when trying to plot in a for loop
It looks like you are plotting your data one point at a time. MATLAB does not automatically include a marker in the line format,...

3 days ago | 0

| accepted

Answered
Converting 3D CAD files to stl?
I am not aware of a function for this. I have always used my CAD program to export my model to STL. Do you still have access to ...

4 days ago | 1

| accepted

Answered
Bar with descending data
Because your data is categorical, it is getting plotted in alphabetical order by default. You can change the order using reorder...

4 days ago | 0

Answered
how can i fix this error "Array indices must be positive integers or logical values"?
The error means that you are either using a number less that 1, or a decimal number to index a variable. As the error says, your...

4 days ago | 0

| accepted

Answered
Index exceeds the number of array elements (40)
Missing a lot of details here, but the error is easy enough to interpret. You are trying to access an element that does not exis...

4 days ago | 0

Answered
Extracting data from figures
You have the code that creates the figures, but you want to extract the data from the figure? Why? Don't you already have the da...

4 days ago | 0

Answered
Can't saveas in a specific folder => Error using saveas(line 60) Invalid handle
saveas saves a figure to a specific file format. The first input to saveas is expected to be a figure handle. You are passing in...

4 days ago | 0

| accepted

Answered
How can I detect car license 2 row?
See these examples: https://www.mathworks.com/help/vision/ug/automatically-detect-and-recognize-text-in-natural-images.html ht...

4 days ago | 0

| accepted

Answered
[Beginner] Plotting 3D graphs, but "Error using plot3 Vectors must be the same length."
You appear to have left out the code that initializes Z_1 and Z_2. Depending how you initialize them, Z_1 and Z_2 could have mor...

4 days ago | 0

Answered
How to make my code faster when working with for loop code & large array indexing?
A couple thoughts. The biggest speedup will happen by suppressing your outputs. Put a semi-colon after every line. Doing that, ...

4 days ago | 0

| accepted

Answered
Delete solutions Matlab Grader
There is not currently a way to remove all solutions. If that is a feature you would find helpful, consider suggesting it here. ...

4 days ago | 1

Answered
generate a matrix for each hour and every time it tells me -This is day 1 the ext temp is __ and these are temp for hour __ and display the matrix
Your code is already doing that (though I did add a semicolon to stop it from printing out T in every loop). If you want it to g...

5 days ago | 0

| accepted

Answered
Discrepancy between datenum and datetime?
It looks to me like there may be rendering issue here when the x values are datenums as opposed to datetimes. I added a scatter ...

5 days ago | 0

| accepted

Answered
just signed up and can't figure it out as it says :"Error using plot Vectors must be the same length."
The result of diff is a vector (you named it k) that has one element less than the input vector (you named it f). The error mess...

5 days ago | 1

| accepted

Answered
How can I extract only 10 compression cycles using following data
I think Star Strider gave a pretty good response to your previous question on how to extract cycles and plot them. https://www....

5 days ago | 0

| accepted

Answered
Graph only plotting 1 point
The default syntax does not include a marker style. If your plot is only a single point, then you cannot see the line. Just incl...

5 days ago | 1

| accepted

Answered
Porblem in exporting a txt file
Here's how I would load the data using option 1. I'll let you worry about shaping the data to make the table you want. % branch...

5 days ago | 0

Answered
draw a 3d graph with mat function
Your code is correct. You just need to increase the resolution of your mesh. Remember that the colon operator steps by 1 by defa...

6 days ago | 0

| accepted

Answered
why my second stl file is at an angle and not horizontal as first ?
STL files contain vertice coordinates. What you see on the plot is an exact representation of the vertices in the file. If it is...

6 days ago | 0

Load more