Answered
閾値以上の点のプロット
Use logical indexing - Find Array Elements That Meet a Condition

2 years ago | 1

Answered
how to convert pixel value to 0 and 1 only or (0 and 255) only?
Use the binary images obtained via imbinarize as the input to jaccard - im2 = imread('Label7027_157.png'); im_gray2 = rgb2gra...

2 years ago | 0

| accepted

Answered
I have error, its said the expression canno't assigned to multiple values.
I believe you have applied KCL at nodes v1 and v2. I have corrected your code - syms v1 v2 eqn1 = v1/10 + v1/5 + 6 + (v1-v...

2 years ago | 1

| accepted

Answered
I WANT TO EXTEND MY X-AXIS
Provide the bit stream values individually i.e. digit-by-digit - %% example: 10111010 %Like this b = [1 0 1 1 1 0 1 0]; ...

2 years ago | 0

Answered
Can't write isosurface to stl file
I am not familiar with the extractIsosurface function or the Medical Imaging Toolbox the function is part of, so I can not provi...

2 years ago | 0

| accepted

Answered
[META] Code doesn't run in MATLAB Answers Live Editor
@Rena Berman @Star Strider @Adam Danz I would like to update that the issue is resolved now - y = 1 z = magic(5) However, t...

2 years ago | 0

Answered
solve() "Unable to find explicit solution"
solve() expects the 2nd input to be an array of symbolic variable(s), where as you have defined Y as a symbolic function. If yo...

2 years ago | 0

| accepted

Answered
How can I delete Columns containing Zeros without deleting small decimals in a table?
Assuming, the task is to delete columns where all entries are 0. This might be one of rare cases where comparing floating point...

2 years ago | 1

| accepted

Answered
How to mark points at 1-5 on the x-axis in the plot
Okay, you want to create data-tips. Data-tips can be added using datatip - Ld=(0:0.00005:0.005); w=0.001; L=0.007; P=4*0.00...

2 years ago | 0

Answered
matlabでcategoricalを数値に変換したい
Presuming all the data you have is numerical, use double() to convert the categorical arrays to numeric arrays.

2 years ago | 1

| accepted

Question


[META] Code doesn't run in MATLAB Answers Live Editor
The Live Editor in MATLAB Answers does not give output when I run any code, the prompt/message-box saying Executing in R2023b sh...

2 years ago | 1 answer | 0

1

answer

Answered
Solve in a loop - Unable to perform assignment because the indices on the left side are not compatible with the size of the right side
It is most likely that there are multiple solutions or no solutions for equations, which can't be stored in a single placeholder...

2 years ago | 0

| accepted

Answered
2D plot for polynomial
Use fplot

2 years ago | 1

| accepted

Answered
Plotting an increasing real sequence
"I think there is an issue when I call n(s)" You are right. When t == 1, s = t-1 == 0. And as you are using s as an index, it g...

2 years ago | 0

| accepted

Answered
Why only scatter function is not working?
You have named your script after a built-in MATLAB function i.e. error. It's not a good idea to name variables or scripts or us...

2 years ago | 0

| accepted

Answered
f(x) = sin^2*(x) - cos^2(x)
That is not the correct syntax to use in MATLAB. For numeric vaules, the correct syntax is - x = [0 pi/4 pi/2 pi]; f = sin(x)...

2 years ago | 1

Answered
動画ファイルから画像ファイルに変換する方法
%% Create object to read video files %Replace the file-name accordingly v = VideoReader("filename.extension"); %% Read all ...

2 years ago | 2

Answered
How to get numerical equation for my code?
Convert the function to use numeric functions and operations - %Random input in=rand; %Output corresponding to the input Ou...

2 years ago | 1

| accepted

Answered
How to plot a "Bean-shaped" object in MatLab please? (preferably a parametric equation)
Change the equation as per requirement - a = 3.6; f = @(x,y) (a*x+x.^2+y.^2).^2 - a^2*y; fimplicit3(f) Experiment with view...

2 years ago | 0

| accepted

Answered
Overwriteing select values in multidimensional array
tmp1 = (rand(5,5,5)-.5)*10; tmp2 = (rand(5,5,5)-.5)*10; loc1 = tmp1 > 0; %This is a shortcut way of logical indexing val =...

2 years ago | 0

| accepted

Answered
[ABSOLUTE BEGINENR] char(inputdlg) or just inputdlg same result? why?
"I still get the same outcome." They might look same but the outputs are different. "is it required?" That depends on what is...

2 years ago | 0

Answered
Write filename as the name of input file with append
I assume you have to do this for multiple excel files, and all the files are stored in the same folder (and the folder only cont...

2 years ago | 0

| accepted

Answered
error using + matrix dimension must agree
Without the data, we can only guess. And the most probable guess is that y1 is a 2D array and using length() with non-vector arr...

2 years ago | 1

Answered
Set default font settings for Simulink annotation (comments)
Changing the Font properties of the axes works for objects related to the axes (title, labels, etc). However, for text objects ...

2 years ago | 0

Answered
prime or not prime
Not all numbers can be exactly represented in double precision (which is the default numeric data type in MATLAB). The largest c...

2 years ago | 1

| accepted

Answered
How to insert a break in my y axis?
For this particular task, FEX submissions are very handful - Breakaxis - http://www.mathworks.com/matlabcentral/fileexchange/36...

2 years ago | 0

| accepted

Answered
hash function giving error
The function keyHash was introduced in R2022b. And since you are working with R2020b, the function does not exist in your MATLAB...

2 years ago | 0

Answered
Find existence of values in the certain range
If you want to find some particular values, use ismembertol. If you want to find numbers which appear in the whole range, use l...

2 years ago | 1

| accepted

Answered
Need data points in 'plot' filled with the same color as the line.
From the documentation of plot, sub-section MarkerFaceColor - "The "auto" option uses the same color as the Color property of t...

2 years ago | 0

| accepted

Answered
Why colororder function does not work with ylim?
Note that in using ylim([0 25]) for the left yaxis, the upper cap of an errorbar data point is not visible. Adjust according to ...

2 years ago | 0

| accepted

Load more