Community Profile

photo

Cris LaPierre

MathWorks

Last seen: Today 2018 이후 활성

Statistics

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

배지보기

Content Feed

보기 기준

답변 있음
plot function not working
You have saved the script containing your code as 'plot.m'. However, that is the same name as the plot function in MATLAB. Give...

약 10시간 전 | 0

답변 있음
Can we rotate the plot(x, y)
You could reverse your x and y inputs. Use -x to make the triangle point up. for w=0.5:0.1:1 l = w; thet = 0:1:60; theta = t...

약 10시간 전 | 0

| 수락됨

답변 있음
Finding the column and row
One feature of a table is that your columns can be different data types (e.g. a double and a cell). In a matrix, all your data ...

2일 전 | 0

답변 있음
How do you capitalize the first and the third letter of each word in a sentence?
There are different ascii codes for lowercase and uppercase letters (https://www.ascii-code.com/, see codes 65-122). I suspect t...

2일 전 | 0

답변 있음
Related to importing a stl file in matlab
You would need to use stlread to load an STL file into MATLAB. Once in, you can use the view function to see specific camera ang...

2일 전 | 0

답변 있음
How to plot quivers only on pixels with an intensity greater than 0?
quiver will not plot nan, so a simple solution may be to replace any value of 0 with nan. U(U==0)=nan; V(V==0)=nan; quiver(X,...

3일 전 | 1

| 수락됨

답변 있음
what function should I use in order for the matlab to evaluate the entered number if it is proper fraction, improper fraction, or Whole number?
You appear to be using MATLAB Grader, which does not support user interactions like input. You will need to find a different way...

3일 전 | 0

답변 있음
I am getting an error Index exceeds the number of array elements in the following code. Kindly help me out with this problem.
We don't have enough information to tell you which variable is causing the problem. However, one of your variables has less than...

4일 전 | 0

답변 있음
Convert list of indices to array
You should be able to use the reshape command on the 4th column % Setup your matrix syms e31 e15 e32 e24 e33 a= [1, 1, 1, 0...

4일 전 | 1

| 수락됨

답변 있음
Parse Error, usage might be invalid MATLAB Syntax
All functions must be at the bottom of your script. See here: https://www.mathworks.com/help/matlab/matlab_prog/create-function...

4일 전 | 0

답변 있음
changing values in an array
See Ch 5 of MATLAB Onramp (Indexing into and Modifying Arrays). You will also find Ch 12 (Logical arrays) helpful for what you ...

4일 전 | 0

| 수락됨

답변 있음
Unable to Rename Columns of Table
The reason the first one isn't working is because you have a typo. Look at how you spell eclipses ecplises = ... eclipses.Prop...

5일 전 | 1

| 수락됨

답변 있음
creating line plot with different marker color and legends
Your data is a row vector (1xn) but you are indexing it like it is a column vector (mx1). Since it is a vector, perhaps it is be...

6일 전 | 0

| 수락됨

답변 있음
set axes limit manual
Ah, you actually meant 11x11 and 20x20. I had figured that was just a typo based on the question. imagesc is going to use row nu...

6일 전 | 0

답변 있음
set axes limit manual
Can you share your code? It sounds like you are not providing an x input to your plot command. If not, MATLAB is using the index...

6일 전 | 0

답변 있음
Grader says answer Verified in Reference Solution is wrong
It doesn't appear that you've shared all your code, as I get an error about n being undefined. Obviously, that will be true for ...

6일 전 | 0

답변 있음
If values are given then how we used in loop one by one .
Ch 13 of MATLAB Onramp explains how to create and use for loops in MATLAB. You can also find some examples here. Basically, p...

6일 전 | 0

답변 있음
how to solve the error "Unrecognized function or variable ".
The error suggests your code either can't find a function you use (it is not in the current folder or on the MATLAB path), or yo...

7일 전 | 0

| 수락됨

답변 있음
Re-write a Data from File (Readtable, Readmatrix, etc) with a replacing rule for a specific data number(s)
If you are already using readtable, look into the TreatAsMissing name-value pair input argument. You might also consider the st...

7일 전 | 0

| 수락됨

답변 있음
Not enough Input Argument error
CountryData is a class. I believe you need to create an instance of your object and then use that when calling your method. See ...

7일 전 | 0

답변 있음
How to divide a vector by a constant?
You need to use elementwise division everywhere in your equation for y c=3*10^8; speeds=(.1*c:.9*c/8:.9*c); % v y=1./sqrt(1...

7일 전 | 1

답변 있음
how to use if option
See Ch 13 (Programming) of MATLAB Onramp

8일 전 | 0

답변 있음
Convert table sequence to csv
Have you tried writetable? seqTable = load('matlab.mat'); writetable(seqTable,'test.csv');

8일 전 | 0

답변 있음
Storing results of variables into arrays in App Designer
Make your variables properties of the app. See this page: https://www.mathworks.com/help/matlab/creating_guis/share-data-across...

9일 전 | 0

답변 있음
Getting error as array indices must be positive integers or logical values in slope calculation.
I suspect the error is in your column index for R: ji-1 When ji=1, the result is 0, which is not a valid index in MATLAB. Not...

9일 전 | 0

| 수락됨

답변 있음
How to open the DDS Blockset app?
Do you have the DDS Blockset installed? Type ver in the command window to see. If not and you have access to it through your l...

9일 전 | 0

| 수락됨

답변 있음
MATLAB Fundamentals course erased all progress
Progress is tied to the course release. It is possible you are now accessing a different release version. Try changing your rele...

9일 전 | 1

답변 있음
Displaying an image in app designer
Use the following syntax: imagesc(ax,___) where ax is your target axes (app.UIAxes). You connect it to your button by placing ...

9일 전 | 0

| 수락됨

답변 있음
Using a Checkbox to add/ remove Text in contourplot in Appdesigner
You need to use the handle to your contour plot to set the property of ShowText to on or off. [x,y,z] = peaks; [C,h] = contour...

9일 전 | 1

| 수락됨

답변 있음
How to plot power lines on the motor torque and speed graph
Do you know about hold? If so, I'm not sure I understand why you can't plot them. Your x vector is the speeds, and your y vector...

9일 전 | 0

더로드