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

ungefär 9 timmar 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, ...

ungefär 9 timmar ago | 0

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

ungefär 10 timmar 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...

ungefär 23 timmar 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 ...

ungefär 23 timmar 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...

en dag 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....

en dag 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...

en dag ago | 0

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

en dag 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...

2 dagar 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...

2 dagar ago | 0

Answered
how to calculate mean value in each row of data?
Use mean and specify the dimension (1=down rows, 2=across columns) M = mean(A,dim)

2 dagar ago | 0

| accepted

Answered
Analyzing Rainfall data and sorting the data appropriately
Look into timetables, groupsummary and perhaps grpstats.

2 dagar ago | 0

Answered
Saving workspace via command
save(filename)

2 dagar ago | 0

Answered
How to combine multiple plots using subplot?
New to MATLAB = MATLAB Onramp (Ch 9 introduces plotting) I think the issue is that you are inconsistent with your subplot numbe...

2 dagar ago | 0

| accepted

Answered
Change number of drop downs based on spinner value using matlab app designer?
It's possible. See this page. You may find this blog post instightful as well. The hard part is going to be dynamically coming ...

2 dagar ago | 0

Answered
The graph wasnt showing the appropiate answer
You have specificed a sample frequency of 10 Hz (Ts=0.1). Therefore, according the Nyquist criterion, the highest frequency you ...

2 dagar ago | 0

Answered
Matalb App inputs dont work unless pressed?
This sounds like an issue with how you process your data. Inspect what the code in your checkbox callback functions is doing to ...

2 dagar ago | 0

Answered
Export data to a new raw of an existing Excel
I would use writetable with the 'WriteMode' set to 'Append'. 'Overwrite' is the default. See this example.

2 dagar ago | 0

Answered
Make an Histogram with 24 bars
Check out the documentation for histogram. You likely want to use one of these syntaxes. histogram(X,nbins) histogram(X,edges)...

2 dagar ago | 0

Answered
Simplify Matrix decimal to integers
It's likely going to take two functions: one to convert your symbolic expressions to numeric, and a second to round. I would pr...

3 dagar ago | 0

Answered
Why am I getting this error : "Warning: Imaginary parts of complex X and/or Y arguments ignored " .
Because you are trying to plot complex values on cartesian axes. You create cx and cy as complex numbers % ...

3 dagar ago | 0

Answered
Number of points inside polygon is returning 0 but should be a bigger number
In line 114 of the code you have shared, you have reversed your lat (you name it Y) and lon (you name it X) data. Flip those, an...

3 dagar ago | 0

| accepted

Answered
How do I select specific rows in a 1x15 matrix?
See Ch 5 of MATLAB Onramp (indexing into and modifying arrays)

3 dagar ago | 0

Answered
Fractional expression to decimal expression in symbolic function
See this answer Summary: use vpa(x,d) or use digits

3 dagar ago | 0

| accepted

Answered
How do I watch demo video without flash player on my company PC?
The getting started with MATLAB content has moved oniine. The main getting started page for MATLAB (similar to your screenshot) ...

3 dagar ago | 0

| accepted

Answered
Unrecognized function or variable
You start your script with 'clear all', so no variables exist in your workspace. Then in your 5th line of code, you try to use y...

3 dagar ago | 0

Answered
How to perform Double Sum with the help of loops?
See the nested for loop example on the for documentation page. BTW, if i+j=3, then there is no double summing necessary, right?...

3 dagar ago | 0

Answered
"Array indices must be positive integers or logical values." - a new problem
What are your input values for First and Last? What are the values for vlength1 and vlength2? The error means you are trying to...

3 dagar ago | 0

Answered
Only the final iteration in the loop is saved. How to save all the iterations ? * Note: all are displayed, but not saved except the last *
You need to use indexing to assign your angles to a different element of Angles each loop. Right now, you overwrite Angles every...

3 dagar ago | 1

| accepted

Load more