回答済み
How do I use single precision numbers in a summation? My result is not coming out as expected.
You are not doing repeated addition. Repeated addition is not the same as multiplication. Also, a and b are scalar, so a*b is a...

10ヶ月 前 | 0

| 採用済み

回答済み
I can not run my function file for zohplot
When you attempt to run a function by pressing the green Run button, MATLAB never, I repeat never searches the calling environme...

10ヶ月 前 | 0

| 採用済み

回答済み
How to Find Duplicate Entries and give popup message in the 50 different Edit Field in MATLAB App Designer ?
[groupnum, group_content] = findgroups(app.YourGUITable.Data.Period); if numel(groupnum) == height(app.YourGUITTable.Data) ...

10ヶ月 前 | 0

| 採用済み

回答済み
Number of values stored are more than the ratio of stop Time/Step size ?
See https://www.mathworks.com/help/simulink/ug/choose-a-solver.html and https://www.mathworks.com/help/simulink/ug/managing-samp...

10ヶ月 前 | 1

回答済み
Error 2, 753 when trying to activate key
First off: if you were installing the license server facilities, then the resulting MATLAB would not need to be activated -- bec...

10ヶ月 前 | 0

回答済み
error to assign string in field struct's
Compare: Sis(73).Slipp = 'example'; [Sis.SlippSource] = testfun(); function output = testfun() output = 123; end

10ヶ月 前 | 1

| 採用済み

回答済み
Licence manager changes / Activate and manage devices
Notice that the "Option" field is "Total HeadCount". The implication is that the license is not an individual license -- the "Ma...

10ヶ月 前 | 0

回答済み
ascribe zeros to an array
frequencies = linspace(0, 2400, 250); spectrum = rand(size(frequencies)); subplot(2,1,1); plot(frequencies, spectrum); title...

10ヶ月 前 | 0

回答済み
How can I resolve the error in output for a WSN simulation in MATLAB
endToEndDelay = endToEndDelay + (t - transmissionTimes(node)); You never reset endToEndDelay, so it becomes unclear...

10ヶ月 前 | 0

| 採用済み

回答済み
how to use vpasolve to solve the equation sin(x)==0 in the range of (0,5] instead of [0,5]?
vpasolve() does not support open or semi-open intervals. The trick is to use syms x sol = vpasolve(sin(x)==0, x, [1e-63 5]) ...

10ヶ月 前 | 0

回答済み
Subs returns empty sym n-by-0
subs(expr,sol) If sol is a struct output of solve() with returnparameters but there were no auxiliary variables introduced ...

10ヶ月 前 | 0

回答済み
Iterate through a matrix to find specific entry
Reminder: length is defined as: 0 if any dimension of the array is 0 max() of the dimensions of the array otherwise You appea...

10ヶ月 前 | 0

回答済み
Strange limitations on script files?
Not allowing function definitions in the middle of a script file removes ambiguity about whether code after a function definitio...

10ヶ月 前 | 0

回答済み
Why is triplequad not recommended? In my case it works better than integral3
triplequad invokes dblquad which invokes quad . Because quad() requires that the limits are finite, then dlbquad() and triplequ...

10ヶ月 前 | 0

回答済み
What is a simple way to check if a collection of vectors all have the same number of elements
a = rand(3,1); b = rand(3,1); c = rand(4,1); d = rand(3,1); vecs = {a,b,c,d}; n = cellfun(@numel,vecs,'uniform',0); if...

10ヶ月 前 | 0

回答済み
Why isn't my code iterating more than once?
r1_real=me(1,K); r2_real=me(2,K); b1_real=me(3,K); b2_real=me(4,K); Those are all scalars. x=(r1_real(1,K).^2-r2_real(1,K)....

10ヶ月 前 | 0

質問


convert patch structure to graph() object?
Is there an easier / better way to convert a patch() faces / vertices structure to a graph object? %Where S is a struct with fa...

10ヶ月 前 | 3 件の回答 | 0

3

回答

回答済み
how to set y-axis as log scale?
The best way to create that type of axes is to use the semilogy function. Alternatively, you can set the ‘YScale’ property on th...

10ヶ月 前 | 55

| 採用済み

回答済み
calculate volume from iso-surface coordinates (x,y,z).
If you use boundary then it has an optional second output which is the volume. However, I would not expect boundary() to be abl...

10ヶ月 前 | 1

回答済み
Accepting multiple values for a function. I want my function to accept multiple values for beta
U(1,[4 5]) = [ alpha-beta, beta ]; when beta is a vector, then you have a problem: you need different 5 x 5 U matrices for each...

10ヶ月 前 | 0

回答済み
The function textscan is problematic and has serious bug!
You coded if totalNumFigureBad == totalNumFigureGood disp('The textscan is problematic!'); end and if counterBad == cou...

10ヶ月 前 | 0

回答済み
.csv using readtable doesn't make difference between the value 1 and 01
filename = "23_Time Cards_Practice 1.CSV"; opt = detectImportOptions(filename); opt = setvartype(opt, 1, 'string'); opt = ...

10ヶ月 前 | 0

回答済み
Is it possible to code png's similar to a grid?
Would it be possible to take a larger (let's say 100 x 100) png, and turn it into a grid so that a smaller (10 x 10) png can be ...

10ヶ月 前 | 0

回答済み
Does 2023a release allows FMI 3.0 export (creating FMU 3.0)?
R2023a does not support FMU 3.0 R2023b is already released (a week ago), and it does support FMU 3.0; https://www.mathworks.com...

10ヶ月 前 | 2

| 採用済み

回答済み
Failure of dimensional analysis for a rule
I am baffled about what unit (grams ^ 0.35) would be. Should that be interpreted as (grams ^ (35/100) so that the unit would be ...

10ヶ月 前 | 0

回答済み
A problem that appears in the shell commands what should I do?
If you are using MacOS then see https://www.mathworks.com/matlabcentral/answers/488382-switchng-folder-to-desktop-in-catalina-10...

10ヶ月 前 | 0

回答済み
When are previous version of MATLAB at end of life?
https://www.mathworks.com/support/requirements/platform-road-map.html Note: If you have a current subscription to MathWorks So...

10ヶ月 前 | 0

回答済み
How can I modify a list of existing variables programmatically?
Please read http://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamically-eval fo...

10ヶ月 前 | 1

回答済み
Storing a table in a struct in embedded loops
DATA is a struct, so dynamic field names for it must obey the limitations for struct field names. struct field names must be val...

10ヶ月 前 | 0

回答済み
Why does the rand function in the assignment statement within the class's property only work once?
Named variables in MATLAB have a symbol table entry that appears to be a fixed size, and which appear to hold little more than t...

11ヶ月 前 | 1

さらに読み込む