Risposto
When I use “regressionLayer”, how to replace the default “lossfunction” of matlab, namely MSE
You can try creating your own custom regression layer. An example can be found here https://www.mathworks.com/help/deeplearnin...

quasi 6 anni fa | 1

| accettato

Risposto
How to sort a struct
You can try like this. % a = somestruct; [~,index] = sortrows([a.Var3].'); a = a(index);

quasi 6 anni fa | 0

| accettato

Risposto
Can anyone explain how to do concatenation of flatten outputs from CNN with the outputs from DNN?
Try using the concatenation Layer, introduced since R2019a. https://www.mathworks.com/help/releases/R2020a/deeplearning/ref/nne...

quasi 6 anni fa | 0

Risposto
Java Static Libraries defined in javaclasspath.txt are not loaded in the parallel pool
After some search on the forum. It seems that if javaclasspath.txt is located in the "preference directory" it will be loaded co...

quasi 6 anni fa | 0

| accettato

Domanda


Java Static Libraries defined in javaclasspath.txt are not loaded in the parallel pool
I have placed the file javaclasspath.txt file in my Matlab working folder. User\Documents\MATLAB\javaclasspath.txt This loads t...

quasi 6 anni fa | 1 risposta | 0

1

risposta

Risposto
Plotting graph from table using app designer
First in your app in the design view, you will need to add an UIAxes to the app. Thereafter you can plot on it. Add a callback ...

quasi 6 anni fa | 0

| accettato

Risposto
Text reader to numbers
Assuming the pattern shown in your picture. Ignore line 1, line 2& line 3 form a repeating pattern. I would suggest read the en...

quasi 6 anni fa | 0

Risposto
Changing data headers in a table (looped)
What is discouraged is dynamic evaluation of a commands which is a security risk. (Risk of code injection) Dynamic referencing ...

quasi 6 anni fa | 0

| accettato

Risposto
Is it possible to accelerate the speed of saving data into files with parallel way?
Is there a reason why you want to use a for loop to write this ? You can write the entire matrix to file in one go using writem...

quasi 6 anni fa | 0

Risposto
select/save part of database into another database
I assume you are able to read the excel directly using the readtable function. % excelfilepath = 'C:\...'; % DBA = readtable(e...

quasi 6 anni fa | 0

| accettato

Risposto
Train images using DNN using Label as CSV file
From your question it seems like you want to do transfer learning. Matlab documentation provide a detailed guide on how to do tr...

quasi 6 anni fa | 0

Risposto
Find string corresponding to another string within a text file
Station name is a char / string. however you are using str2double. This will ofcourse give you a nan output. You can remove the...

quasi 6 anni fa | 1

| accettato

Risposto
calling python function from Matlab
Moved to answer According to the docs, a missing string value will translate to none in python. https://www.mathworks.com/help...

quasi 6 anni fa | 1

| accettato

Risposto
Changing the format of mat file
If you have a 3D matrix, you can use the function permute to move the dimensions. edc = rand([3 4 5]); cde = permute(edc,[3 2 ...

quasi 6 anni fa | 0

| accettato

Risposto
APP DESIGNER. How can I use a variable generated by one function in another funcion?
You need to create an app property dicom_files to store the values in. Change to code view, click the property button, click p...

quasi 6 anni fa | 1

| accettato

Risposto
Error when using convolution2dLayer between connected maxPooling2dLayer and maxUnpooling2dLayer
You convolution layer is changing the number of channels in the output after the max pooling. This causes the input size mismat...

quasi 6 anni fa | 0

| accettato

Risposto
3D plot from tables in timeline
Based on my understanding each file 'data1.txt' is from one particular time Different number of rows means, you are missing cer...

quasi 6 anni fa | 0

| accettato

Risposto
Filling out an empty column in an existing table based on conditions matching other columns
% t1 = yourtable logic1 = startsWith(t1.column3varname,'fast') & startsWith(t1.column4varname,{'boat' 'car' 'airplane'}); logi...

quasi 6 anni fa | 0

| accettato

Risposto
How do I convert this for loop in to while loop with same sequence of number.
x = 0; while x <= 50 disp(x); x = x + 2; end

quasi 6 anni fa | 0

Risposto
Why the user was asked to install Matlab runtime for my standalone application?
You may have distributed the compiled exe rather then the installer. When compiling an App three directories are generated. for...

quasi 6 anni fa | 0

| accettato

Risposto
how to do normalization of a matrix
You can use the function normalize and specify which dimension you want to normalize. From the documentation "N = normalize(A...

quasi 6 anni fa | 0

| accettato

Risposto
How to rename multiple files in a folder with variable names depending on their names in another folder?
You dont need the *. you can do as follows. match = regexp(oldnames,'3\d{3}','match');

quasi 6 anni fa | 0

| accettato

Risposto
How to turn on the grids of axes upon start?
Use the function grid to turn off the grid. You can do this in the startup function as Rik mentioned grid(handles.axes1,'off');...

circa 6 anni fa | 0

Risposto
Fastest way to replace multipe substrings with a single new string?
After some experimentations I think that if you tokenize your sentences, you can use a hashmap to lookup the words to replace. ...

circa 6 anni fa | 0

Risposto
Referring to specific input in loop
If you want to have variable number of arguments, perhaps you want to use varargin instead in your function signature. function...

circa 6 anni fa | 0

| accettato

Risposto
Example of MatLab code that can read XGMML (.gr.gz) extension file?
This file appears to be a text file which gzip compressed. You can extract the file with function gunzip and then perhaps load ...

circa 6 anni fa | 0

| accettato

Risposto
How to alternatively cut a signal into segments of different sizes
You can use reshape to extract the signals % Incorrect : prb2 = reshape(prb,14*2048,2,[]); % Correction prb2 = reshape(prb,14...

circa 6 anni fa | 0

| accettato

Risposto
How to generate 500 random string keys in matlab?
You can use the randi function to generate integers corresponding to the ascii values you want to allow in your random string. ...

circa 6 anni fa | 2

Risposto
How to make an Edit Text Field box in App Designer to recognize a vector input
The text field are designed to take in string inputs. It will return you whatever data is entered as string. If you want to int...

circa 6 anni fa | 0

| accettato

Risposto
calling a c function with calllib doesn't work with pointers
It will not return you 3 different values, it will return you pointer to an array containing 3 double values. Also you need to ...

circa 6 anni fa | 1

| accettato

Carica altro