Answered
Unrecognized method, property, or field 'value' for class 'matlab.graphics.chart.primitive.Bar'.
It looks like the code shared here is not the same code that created that error. Can you check that you copied the correct code?...

5 years ago | 0

| accepted

Answered
Update elements in matrix with condition
Use logical arrays (Ch 12 of MATLAB Onramp). Perhaps something like this (untested) P(P(:,5)==0,3)=sum(P(P(:,5)==0,[1,3],2)); ...

5 years ago | 1

| accepted

Answered
get the position of each number
Not sure of a single function solution, but this works. load msg_mmsi_selected ind = ~cellfun("isempty",Msg_mmsi_selected); V...

5 years ago | 0

Answered
"All elements of matrix lower than x" translated into code?
See Ch 12 of MATLAB Onramp (logical arrays). You may also be interested in the all function. if all(A<x) ... end

5 years ago | 0

| accepted

Answered
How can another person use my student licence?
No. That violates the license terms.

5 years ago | 1

| accepted

Answered
How to use fscatter3
fscatter3 is not a MathWorks-created function. It is available on the File Exchange. From the help for this function, it appear...

5 years ago | 0

Answered
why do i recive Index in position 2 is invalid. Array indices must be positive integers or logical values
This error means that you are not using integer values to index your array. Position 2 indicates it is your column index that is...

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 2

| accepted

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

5 years 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

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

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

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

5 years 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)

5 years 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'...

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

5 years 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)

5 years 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,...

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

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

5 years ago | 0

| accepted

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

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

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

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

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

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

5 years 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, ...

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

5 years 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 years ago | 0

| accepted

Load more