Answered
How do I display numbers enclosed in single quotes from DICOMINFO?
fprintf(fileID,'The date is %s \n ',info1.DateOfLastCalibration); FYI >> double('20121217') ans = ...

8 years ago | 1

| accepted

Answered
How to evaluate a function over a range of inputs
The OP is probably asking for this >> F=@(x) ((1-x/(1+x)))^2 F = function_handle with value: @(x)((1-x/(1+x)...

8 years ago | 0

Answered
Matlab expanding matrix quickly
reshape(repmat(A,X,1),1,[])

8 years ago | 1

| accepted

Answered
How do I find X for a specific Y; there may be more than 1 value of X for a particular Y (not strictly increasing/decreasing)
For min() and max(), you can utilize the second output [Ymax,Imax]=max(Y) Xmax=X(Imax) For zero, you can use the foll...

8 years ago | 1

| accepted

Answered
Financial toolbox license does not work
"ver" command only shows your installation. It has nothing to do with license. You can try license('test','finance') ...

8 years ago | 0

Answered
will the matlab 2012 simulink models open in matlab 2017?
Should have no problem opening Simulink model saved in older version. To be sure, do a upgrade check by clicking menu Analysis, ...

8 years ago | 0

Answered
Simulink Model Forward Compatibility
Should have no problem opening Simulink model saved in older version. To be sure, do a upgrade check by clicking menu Analysis, ...

8 years ago | 0

Answered
interpolation when X does not equal V, lookup function
>> interp1(target,V,X) ans = 2.7500 5.0000 6.5000

8 years ago | 0

| accepted

Answered
Gain block ignored :
The input value to the Gain block is constant zero? Need more info to see the problem.

8 years ago | 0

Answered
How can I generate EEG signal block from workspace to simulink? I attach the (.txt) file and code also.
With your above data calculated in work space, grab a "From Workspace" block, specify the data as [t' EEGsig], you will get tw...

8 years ago | 0

Answered
Programmatically capturing screenshots of Simulink blocks and dialogs
You might want to try Simulink "Web View". In the Simulink model, click menu File, Export model to, Web... A html document is...

8 years ago | 1

Answered
Load certain index .mat file
files=dir('*.mat'); load(files(600).name);

8 years ago | 0

| accepted

Answered
How can I rename character to number in excel *.csv file
I would suggest you do a pre-processing by find-and-replace, either manually or through script, and then do csvread(). File...

8 years ago | 0

| accepted

Answered
convert a 1*16 matrix to a 2*8 matrix
reshape() transpose()

8 years ago | 0

Answered
How do I find the coordinate position of the highest point in the gap under all these curves?
I think it is similar to this question. Regarding "shaping the minimum" and then "finding the maximum" over the plotted data, yo...

8 years ago | 1

Answered
Can you write to an Excel file from Matlab Online using xlswrite?
I just tried it. It created an .csv file. >> xlswrite('book1',magic(5)) Warning: Could not start Excel server for export...

8 years ago | 1

Answered
how to set a range for xlsread command
I would just read the whole sheet and then cut it in MATLAB [~,~,RawData]=xlsread(filename); UsefulData=RawData(8:19,24:...

8 years ago | 0

Answered
add titles above distinct parts of graph
see text(),title(),annotation()

8 years ago | 1

Answered
generating random numbers within a certain range & spacing
randi([200 240],[20,1])/4

8 years ago | 1

| accepted

Answered
How to plot the highest y values for each x value for a figure with multiple plots
I would recommend you saving the data for each line when it is created running the loop. If not possible, you could get the data...

8 years ago | 0

Answered
Convert hex data to string
try A=importdata('file.dat'), you might get what you want in A.textdata

8 years ago | 0

| accepted

Answered
How to assign elements in a matrix in another matrix with order not in sequence?
Not sure how you want to assign between K and K1, but here is an example, just specify the row and column number >> A=magic...

8 years ago | 0

Answered
.exe with inputs
use uigetfile() to allow user to pick a file. use input() to allow user to input a value. After you test out your new prog...

8 years ago | 0

| accepted

Answered
Matlab license based on disk serial number
If you are the license administrator of a group license, you can log in your Mathworks account and assign a license to this user...

8 years ago | 0

Answered
How do I read data from a filename called in code or make the filename a string?
If you select multiple files, "files" is returned as a cell array, you need to use file=files{1}

8 years ago | 0

| accepted

Answered
How to use a figure as 'if condition'?!
Would this work? f1=figure; ... status=close(f1); You can then check the "status" using "if"

8 years ago | 0

| accepted

Answered
How can I create my own parameters or attributes for a block in simulink ?
Option 1: Use the 'UserData' of the block to specify your own properties: vdp; UD.prop1=1; UD.prop2='abc'; set_pa...

8 years ago | 1

| accepted

Answered
inputParser with only a value, not a name-value pair
Yes. You would make that a required argument, not an optional argument. function a = findArea(width,Shape,varargin) .... ...

8 years ago | 0

Answered
How to input a text variable in a plot title?
Is this what you want? title('plot title') TitleText='second plot'; title(TitleText)

8 years ago | 0

| accepted

Load more