help > Stop: Design Matrix not found or inconsistent
May 26, 2025  12:05 PM | jianan zhao
Stop: Design Matrix not found or inconsistent
Dear all,

I am encountering a "Stop: Design Matrix not found or inconsistent" error while using NBS Toolbox 1.2 with MATLAB 2023b for data analysis. Despite following the guidelines and sample codes from the official documentation, the issue persists, and I am reaching out for your assistance.

Problem Description:


I have defined and saved the design matrix as required. The code generates design matrices for different groups and saves them as ASCII - formatted text files. Here are the details of the design matrix file:


  • File Path: D:\RawDataPreEnd\Dose\NBS\designMatrix.txt



  • File Content:



  • 1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    1 0
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1
    0 1





Even though the design matrix file appears to be correctly formatted and its content meets the requirements, the NBS Toolbox still reports an error. I have tried various solutions, such as verifying the file path, resaving the file, and checking the matrix dimensions and content, but none have resolved the issue.


Specific Issues:




  1. Error Message: Stop: Design Matrix not found or inconsistent



  2. Design Matrix File Path: D:\RawDataPreEnd\Dose\NBS\designMatrix.txt



  3. Design Matrix File Content: The file is in standard ASCII format with two columns representing indicator variables for two groups of samples.



Attachments:


I have attached the relevant files and code for your reference, including:



  • Design matrix file designMatrix.txt

    Request:


    I would appreciate any advice or guidance you can provide to resolve this issue. Please let me know if you need more detailed information or additional context.

    Thank you for your support!

    Yours sincerely,

    Jianan Zhao







Attachment: designMatrix.txt

Threaded View

TitleAuthorDate
Stop: Design Matrix not found or inconsistent
jianan zhao May 26, 2025
Andrew Zalesky May 27, 2025
jianan zhao May 27, 2025