Réponse apportée
How can I plot a circle over an interval (range of values)
hL=plot([-1327,0],[0 0],'LineWidth',8,'Color',[1 1 1]*0.5); xlim([-1500 200]); ylim([-20 20]) xticks([]),yticks([]) hold on ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to choose values from vector (150 000x1). When i need first 512 values for x, next 512 values for y and next 512 values for z. And separate vector by this style to the end
XYZ=reshape(V,512,[]); then process by column. Most MATLAB functions operate by column natively; depending upon what you're do...

plus de 4 ans il y a | 0

Réponse apportée
R2017b Compatibility
https://www.mathworks.com/support/requirements/matlab-system-requirements.html?s_tid=srchtitle_MAC%20Monterey_6 indicates R2021b...

plus de 4 ans il y a | 0

Réponse apportée
How do I get my graphs to converge on one ?
... [yob,t,xob] = lsim(syst,r,t,[x0 x0ob]); figure(2); hold on plot(t,xob(:,1)/max(xob(:,1)),'r'); plot(t,xob(:,2)/abs(min(...

plus de 4 ans il y a | 0

Réponse apportée
select folder that also includes subfolders
There is no builtin gui tool that does more than multi-select on files within a single folder; you have to traverse the director...

plus de 4 ans il y a | 0

Question


Compiler Preprocessor Stringizing to Add Quotes
OK, carrying on w/ the idea of linking w/ GFORTRAN, I started with one function to see if could build the C binding. It works t...

plus de 4 ans il y a | 1 réponse | 0

0

réponse

Réponse apportée
Using find for table values
Rik's second comment is the pertinent one here -- you're appying the function to the entire table, not a variable within the tab...

plus de 4 ans il y a | 0

Réponse apportée
How to apply two masks simultaniously for plot
ixBoth=mask2&mask1; plot(x(ixBoth), y(ixBoth, 'g.') Not the place for && short-circuit operator, but the single & for logical ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Converting Intrinsic MATLAB Functions ones(), zeros(), sparse(), diag() to FORTRAN
program testit implicit none real(kind=kind(0.0d0)), allocatable :: A(:,:) integer :: i, j A = zeros(6,4) print...

plus de 4 ans il y a | 2

| A accepté

Réponse apportée
What frustrates you about MATLAB? #2
While I'm now long retired from active consulting where it was a key element, even then the "red-haired stepchild" status of For...

plus de 4 ans il y a | 0

Réponse apportée
Storing For Loop Data For Future Use In A 3D Plot
What you're written seems like awfully peculiar manipulations to perform on the variables, but V=[1:rowsize].'; ...

plus de 4 ans il y a | 1

Réponse apportée
uigetfile doesn't get all files with a certain extension
My old eyes didn't see it first go -- your list of extensions is malformed -- use [f,p] = uigetfile({'*.TXA';'*.txt'}); instea...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Bug or Normal behavior in Table variable Types?
That is behavior I've observed with table from initial inception. I, too, agree that it is not intuitive inside the table and n...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Converting Intrinsic MATLAB Functions ones(), zeros(), sparse(), diag() to FORTRAN
This will depend upon, firstly, the level of the Fortrand Standard to which you are coding; current Fortran includes a great dea...

plus de 4 ans il y a | 1

Réponse apportée
How can I add error bars to my scatter plot if I only have a .fig file.
If the figure is the current one, then hAx=gca; % get handle to current axes hold on ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to connect the point of the plot on Matlab?
%figure('Name','Load vs Time') %Also, how can I fix this line so that my figure has a name and all points will appear on a si...

plus de 4 ans il y a | 0

Réponse apportée
Fortran code in Matlab
Try adding additional switch to handle the backlash edit descriptor James' keen eyes spotted (I used the DEC DVF/CVF compiler fo...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Separating datetime data ('yyyy-MM-dd HHmm:ss' Into 'hh:mm:ss')
See doc timeofday NB: When you have an area of functionality but don't know the function name, the "Functions" link at the to...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How do i get the CDF and ICDF functions to accept a variable instead of just numbers.
K>> load D_obj K>> fieldnames(D_obj) ans = 3×1 cell array {'k'} {'n'} {'w'} K>> The field name is lowerca...

plus de 4 ans il y a | 0

Réponse apportée
for loop question, how to put the for loop answer in new matrix
A number of issues with the above code -- Don't use line as a variable, it's a builtin important plotting function, size(A) re...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
Create a new table by transforming data in existing table with few lines (maybe just one)
The above syntax is for a variable/matrix/array, NOT for a table if a MATLAB table object is, indeed, what you have. We can't t...

plus de 4 ans il y a | 0

Réponse apportée
When debugging in R2021b, the current line is highlighted in light green making it impossible to read the line when the text color is light and background is dark.
Under preferences, "Editor/Debugger" the checkbox "Highlight Current Line" has the option to select the highlight color.

plus de 4 ans il y a | 1

Réponse apportée
interpolate data in timeseries
v=[0.18 3.15 0.18 0.16 0.17 0.58 0.33 ]; % example data % the engine nI=3; ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
regexprep delete parenthesis in a sentence. not working
It's short enough, I'll repost the working code from previous Answer again... txt=textread('bogar.txt','%s','whitespace','','de...

plus de 4 ans il y a | 0

Réponse apportée
delete lines in txt based off phrase
txt=textread('bogar.txt','%s','whitespace','','delimiter',newline); % read file a cellstr array idxHdr=find(contains(txt,'Name'...

plus de 4 ans il y a | 0

Réponse apportée
Add random numbess to matrix
If the desire is a bounded, symmetric, continuous distribution that approximates a normal, consider the beta with, eta,gamma equ...

plus de 4 ans il y a | 1

Réponse apportée
How can I randomize target positions in a Gaussian distribution?
Z=randn(10,1)*40+80; isOK=all(iswithin(Z,0,160)); while ~isOK % regenerate code here depending on what your definition of "...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to count number from database
I don't like struct stuff so didn't try to construct it since can't copy an image...but following should provide enough bread cr...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
How to determine the figure window on which subplots are created?
subplot() doesn't allow a figure handle; use the alternate meaning of figure() to set the figure before calling subplot() figur...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How can I insert NaN value in a matrix?
a(iseven(a))=nan; % iseven() is in Signal Processing TB w/o the SP TB, it's not much more a(~mod(a,2))=nan; These a...

plus de 4 ans il y a | 1

| A accepté

Charger plus