Respondida
Create Loop to convert DICOM to Tiff
Do you mean something like: for i = 600:1400 I = dicomread(sprintf('1255-%i.dcm',i)); imwrite(I, sprintf('1255-%i.tif...

alrededor de 2 años hace | 0

Respondida
Comparison Using a Tolerance
Test cases isequal_tol(1,5,1e-3) % false isequal_tol(1,1,1e-3) % true isequal_tol(pi,3.141593,1e-3) % true isequal_tol funct...

alrededor de 2 años hace | 0

Respondida
Highlight multiple segments in plot and save indices
Is this what you're after? You can select multiple segments by simply holding the Shift key, from the documentation:

alrededor de 2 años hace | 2

| aceptada

Respondida
Extracting Specific Rows From xlsx or txt File
I think you edited your question from what you had initially quite a bit (you should have just made a new question). Since I spe...

alrededor de 2 años hace | 0

| aceptada

Respondida
code for this type of GROUP bar graph?
This isn't exactly the same as your plot, but I hope it helps. If you want a patterned fill on your bars, you can check out Hatc...

alrededor de 2 años hace | 1

| aceptada

Respondida
How to fully display y-axis labels if they do not fit inside of the figure window when specifying a figure size and using subsubplot?
This is happening due to this line, which makes the figure window smaller than the default axis size: figure('units','inches','...

alrededor de 2 años hace | 1

| aceptada

Respondida
How to remove border from figure
The way I go about this is first saving the figure as a PDF (so that it is vectorised): f = figure(1); % OR f = gcf exportgrap...

alrededor de 2 años hace | 1

Respondida
Why do I receive License Manager Error -8?
Have you looked this up online? MathWorks has already answered this exact (word-for-word!) question: Why do I receive License Ma...

más de 2 años hace | 0

Respondida
Adding labels to plots with LaTeX syntax
Take a look at the text function with the latex interpreter. Here's a working example: plot(0:.1:pi,sin(0:.1:pi)) text(pi/2,.9...

más de 2 años hace | 1

Pregunta


Mandelbrot Set with CUDA
I am attempting to work through the three methods to compute the Mandelbrot Set outlined on this page. I am stuck on the third m...

más de 2 años hace | 1 respuesta | 0

1

respuesta

Respondida
Applying a mask to 3D Data
nbins = 20; mask = mask==1; selected_voxels = fw(mask); % ? counts = histcounts(selected_voxels, nbins); range = linspace(0,...

más de 2 años hace | 0

Respondida
How can I fit a scatter plot?
If you want to fit a line to the data as a whole, I think this should work: t = 1:7; Lac = randi(10,[7,24]); scatter(t,Lac) ...

casi 3 años hace | 0

Respondida
Saving results of a for loop in a cell array
It is hard to run your code without your data, but a potential source of error may be when you use 'for iAnimal = 1:size(DataFra...

casi 3 años hace | 1

Respondida
low quality figure problem when saving as svg or pdf ( using fill function)
This issue occurs when the figure is quite complex, like your second one. One solution is to force a vectorised export by going ...

casi 3 años hace | 6

| aceptada

Respondida
Convert Pictures into Array
You can use imread to import the images to MATLAB and then use save to save them as a .mat file

casi 3 años hace | 0

Respondida
solve equation for a variable
This works for me (you were also missing an * in your equation): v = 2.42; si_f235 = 577E-24; N_235 = 780.63E18; phi = 3E13;...

casi 3 años hace | 2

| aceptada

Respondida
Why this piece of code gives error?
Your multiplications in Line 19 give a 2 by 13 matrix in the numerator and a 2 by 2 matrix in the demoninator. To perform matri...

casi 3 años hace | 0

Respondida
It disconnects when I press on "Get Matlab"
Maybe try logging in on a private/incognito window, and go straight to this link: https://mathworks.com/downloads/

casi 3 años hace | 1

Respondida
How do I launch the Radar Toolbox from within Matlab?
Here is the documentation for the Radar Toolbox. You can find more information about the apps under the 'Apps' tab at the top an...

casi 3 años hace | 1

Respondida
Unrecognized function or variable 'calculate_energy' and 'move_monomer'. how to solve the issue?
Your two functions have to be saved in the same directory as the script you are running, and with the name of the file being the...

casi 3 años hace | 0

Respondida
(question)How does the arguments syntax apply multiple optional type restrictions to one of the input arguments?
function out = myFcn(inImage) mustBeA(inImage,["uint8","logical","double"]) end

casi 3 años hace | 0

| aceptada

Respondida
How do I export an animated figure to some video format for use in a presentation?
Documentation for recording animations: https://mathworks.com/help/matlab/creating_plots/record-animation-for-playback.html and...

casi 3 años hace | 0

Respondida
product between doubles 200*200
I assume you mean element by element multiplication: prob1 = rand(200,200); prob2 = rand(200,200); prob3 = rand(200,200); F ...

casi 3 años hace | 0

Respondida
The color of the defined axis changes when I print the figure to PDF
Instead of using the print function, you can use exportgraphics: exportgraphics(fig,[printfolder,print_name,'.png']); exportgr...

casi 3 años hace | 0

| aceptada

Respondida
Matlab will not read this webpage using webread(). What am I doing wrong?
This page is likely protected against automated access (see https://mathworks.com/matlabcentral/answers/365957-why-do-i-get-this...

casi 3 años hace | 1

Respondida
Please direct me to tutorial or best learning course for ThingSpeak Visualizations Functions
Here is the visualisation documentation for Thingspeak, hopefully it points you in the write direction! https://mathworks.com/h...

casi 3 años hace | 0

Respondida
how do i download apps Sonar Equation Calculator for R2021b?
It looks like the Sonar Equation Calculator is part of the Phased Array System Toolbox. To install this on MATLAB desktop, go t...

casi 3 años hace | 0

Respondida
why estimating 3 values takes longer time than estimating 4 values?
I am not exactly an 'expert', but the times I get depend on: the order that you run them (like 3, then 2, then 1). From my basi...

casi 3 años hace | 0

| aceptada

Resuelto


Matrix indexing with two vectors of indices
Given a matrix M and two index vectors a and b, return a row vector x where x(i) = M(a(i),b(i)).

alrededor de 3 años hace

Resuelto


Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

alrededor de 3 años hace

Cargar más